v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
local-factory-inl.h
Go to the documentation of this file.
1
// Copyright 2020 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_LOCAL_FACTORY_INL_H_
6
#define V8_HEAP_LOCAL_FACTORY_INL_H_
7
8
#include "
src/heap/local-factory.h
"
9
// Include the non-inl header before the rest of the headers.
10
11
#include "
src/heap/factory-base-inl.h
"
12
#include "
src/roots/roots-inl.h
"
13
14
namespace
v8
{
15
namespace
internal
{
16
17
#define ACCESSOR_INFO_ACCESSOR(Type, name, CamelName) \
18
DirectHandle<Type> LocalFactory::name() { \
19
return UncheckedCast<Type>( \
20
isolate()->isolate_->root_handle(RootIndex::k##CamelName)); \
21
}
22
ACCESSOR_INFO_ROOT_LIST
(
ACCESSOR_INFO_ACCESSOR
)
23
#undef ACCESSOR_INFO_ACCESSOR
24
25
AllocationType
LocalFactory::AllocationTypeForInPlaceInternalizableString
() {
26
return
isolate
()
27
->
heap
()
28
->
AsHeap
()
29
->
allocation_type_for_in_place_internalizable_strings
();
30
}
31
32
}
// namespace internal
33
}
// namespace v8
34
35
#endif
// V8_HEAP_LOCAL_FACTORY_INL_H_
v8::internal::Heap::allocation_type_for_in_place_internalizable_strings
AllocationType allocation_type_for_in_place_internalizable_strings() const
Definition
heap.h:2057
v8::internal::LocalFactory::isolate
LocalIsolate * isolate()
Definition
local-factory.h:65
v8::internal::LocalFactory::AllocationTypeForInPlaceInternalizableString
AllocationType AllocationTypeForInPlaceInternalizableString()
Definition
local-factory-inl.h:25
v8::internal::LocalHeap::AsHeap
Heap * AsHeap() const
Definition
local-heap.h:123
v8::internal::LocalIsolate::heap
LocalHeap * heap()
Definition
local-isolate.h:60
factory-base-inl.h
ACCESSOR_INFO_ACCESSOR
#define ACCESSOR_INFO_ACCESSOR(Type, name, CamelName)
Definition
local-factory-inl.h:17
local-factory.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::AllocationType
AllocationType
Definition
globals.h:1384
v8
Definition
api-arguments-inl.h:19
roots-inl.h
ACCESSOR_INFO_ROOT_LIST
#define ACCESSOR_INFO_ROOT_LIST(V)
Definition
roots.h:465
src
heap
local-factory-inl.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0