v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
read-only-heap-inl.h
Go to the documentation of this file.
1// Copyright 2019 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_READ_ONLY_HEAP_INL_H_
6#define V8_HEAP_READ_ONLY_HEAP_INL_H_
7
9// Include the non-inl header before the rest of the headers.
10
12#include "src/roots/roots-inl.h"
13
14namespace v8 {
15namespace internal {
16
17// static
19 ReadOnlyHeap* shared_ro_heap =
21 if (shared_ro_heap && shared_ro_heap->roots_init_complete()) {
22 return ReadOnlyRoots(shared_ro_heap->read_only_roots_);
23 }
25}
26
27} // namespace internal
28} // namespace v8
29
30#endif // V8_HEAP_READ_ONLY_HEAP_INL_H_
static IsolateGroup * current()
ReadOnlyHeap * shared_read_only_heap() const
Address read_only_roots_[kEntriesCount]
static V8_EXPORT_PRIVATE ReadOnlyRoots EarlyGetReadOnlyRoots(Tagged< HeapObject > object)
V8_INLINE Heap * GetHeapFromWritableObject(Tagged< HeapObject > object)