v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
object-lock-inl.h
Go to the documentation of this file.
1// Copyright 2024 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_HEAP_OBJECT_LOCK_INL_H_
6#define V8_HEAP_OBJECT_LOCK_INL_H_
7
9// Include the non-inl header before the rest of the headers.
10
12
13namespace v8 {
14namespace internal {
15
16// static
20
21// static
25
27 : raw_object_(object) {
28 ObjectLock::Lock(object);
29}
30
32
33} // namespace internal
34} // namespace v8
35
36#endif // V8_HEAP_OBJECT_LOCK_INL_H_
void Unlock()
Definition mutex.cc:67
void Lock()
Definition mutex.cc:62
static V8_INLINE MutablePageMetadata * FromHeapObject(Tagged< HeapObject > o)
V8_INLINE ObjectLockGuard(Tagged< HeapObject > object)
Tagged< HeapObject > raw_object_
Definition object-lock.h:25
static V8_INLINE void Lock(Tagged< HeapObject > heap_object)
static V8_INLINE void Unlock(Tagged< HeapObject > heap_object)