v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
js-heap-broker-inl.h
Go to the documentation of this file.
1// Copyright 2023 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_COMPILER_JS_HEAP_BROKER_INL_H_
6#define V8_COMPILER_JS_HEAP_BROKER_INL_H_
7
9// Include the non-inl header before the rest of the headers.
10
12
13namespace v8::internal::compiler {
14
17 LocalIsolate* local_isolate, base::Mutex* mutex, int* mutex_depth_address)
18 : mutex_depth_address_(mutex_depth_address),
19 initial_mutex_depth_(*mutex_depth_address_),
20 mutex_guard_(local_isolate, mutex, initial_mutex_depth_ == 0) {
21 (*mutex_depth_address_)++;
22}
23
29
36
37} // namespace v8::internal::compiler
38
39#endif // V8_COMPILER_JS_HEAP_BROKER_INL_H_
V8_INLINE RecursiveMutexGuardIfNeeded(LocalIsolate *local_isolate, base::Mutex *mutex, int *mutex_depth_address)
LocalIsolate * local_isolate_or_isolate() const
JSHeapBroker * broker
base::Mutex mutex
#define V8_INLINE
Definition v8config.h:500