v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
heap-utils-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_HEAP_UTILS_INL_H_
6
#define V8_HEAP_HEAP_UTILS_INL_H_
7
8
#include "
src/heap/heap-utils.h
"
9
// Include the non-inl header before the rest of the headers.
10
11
#include "
src/heap/memory-chunk-inl.h
"
12
13
namespace
v8::internal
{
14
15
// static
16
Heap
*
HeapUtils::GetOwnerHeap
(
Tagged<HeapObject>
object
) {
17
return
MemoryChunk::FromHeapObject
(
object
)->
GetHeap
();
18
}
19
20
}
// namespace v8::internal
21
22
#endif
// V8_HEAP_HEAP_UTILS_INL_H_
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::MemoryChunk::GetHeap
V8_INLINE Heap * GetHeap()
Definition
memory-chunk-inl.h:40
v8::internal::MemoryChunk::FromHeapObject
static V8_INLINE MemoryChunk * FromHeapObject(Tagged< HeapObject > object)
Definition
memory-chunk.h:180
v8::internal::Tagged
Definition
waiter-queue-node.h:21
heap-utils.h
memory-chunk-inl.h
v8::internal
Definition
api-arguments-inl.h:20
src
heap
heap-utils-inl.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0