v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
heap-utils.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_HEAP_UTILS_H_
6
#define V8_HEAP_HEAP_UTILS_H_
7
8
#include "
src/common/globals.h
"
9
#include "
src/objects/tagged.h
"
10
11
namespace
v8::internal
{
12
13
// This class provides heap-internal helper functions to provide
14
// data/information about heap objects.
15
class
HeapUtils
final :
public
AllStatic
{
16
public
:
17
// Returns the Heap (or nullptr) which owns the page of this object.
18
static
V8_INLINE
Heap
*
GetOwnerHeap
(
Tagged<HeapObject>
object
);
19
};
20
21
}
// namespace v8::internal
22
23
#endif
// V8_HEAP_HEAP_UTILS_H_
v8::internal::AllStatic
Definition
globals.h:364
v8::internal::HeapUtils
Definition
heap-utils.h:15
v8::internal::HeapUtils::GetOwnerHeap
static V8_INLINE Heap * GetOwnerHeap(Tagged< HeapObject > object)
Definition
heap-utils-inl.h:16
v8::internal::Heap
Definition
heap.h:195
v8::internal::Tagged
Definition
waiter-queue-node.h:21
globals.h
v8::internal
Definition
api-arguments-inl.h:20
tagged.h
V8_INLINE
#define V8_INLINE
Definition
v8config.h:500
src
heap
heap-utils.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0