v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
object-lock.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_HEAP_OBJECT_LOCK_H_
6#define V8_HEAP_OBJECT_LOCK_H_
7
10
11namespace v8::internal {
12
13class ObjectLock final {
14 public:
15 V8_INLINE static void Lock(Tagged<HeapObject> heap_object);
16 V8_INLINE static void Unlock(Tagged<HeapObject> heap_object);
17};
18
19class ObjectLockGuard final {
20 public:
23
24 private:
26};
27
28} // namespace v8::internal
29
30#endif // V8_HEAP_OBJECT_LOCK_H_
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)
#define V8_INLINE
Definition v8config.h:500