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
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#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 }
23#undef ACCESSOR_INFO_ACCESSOR
24
31
32} // namespace internal
33} // namespace v8
34
35#endif // V8_HEAP_LOCAL_FACTORY_INL_H_
AllocationType allocation_type_for_in_place_internalizable_strings() const
Definition heap.h:2057
AllocationType AllocationTypeForInPlaceInternalizableString()
Heap * AsHeap() const
Definition local-heap.h:123
#define ACCESSOR_INFO_ACCESSOR(Type, name, CamelName)
#define ACCESSOR_INFO_ROOT_LIST(V)
Definition roots.h:465