v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ReadOnlyRoots Class Reference

#include <roots.h>

Collaboration diagram for v8::internal::ReadOnlyRoots:

Public Member Functions

V8_INLINE ReadOnlyRoots (Heap *heap)
 
V8_INLINE ReadOnlyRoots (const Isolate *isolate)
 
V8_INLINE ReadOnlyRoots (LocalIsolate *isolate)
 
MapWord one_pointer_filler_map_word ()
 
V8_INLINE bool IsNameForProtector (Tagged< HeapObject > object) const
 
V8_INLINE void VerifyNameForProtectorsPages () const
 
V8_INLINE Tagged< Booleanboolean_value (bool value) const
 
V8_INLINE Address address_at (RootIndex root_index) const
 
V8_INLINE Tagged< Objectobject_at (RootIndex root_index) const
 
V8_INLINE bool is_initialized (RootIndex root_index) const
 
void Iterate (RootVisitor *visitor)
 
void InitFromStaticRootsTable (Address cage_base)
 

Static Public Attributes

static constexpr size_t kEntriesCount
 

Private Member Functions

V8_INLINE Address first_name_for_protector () const
 
V8_INLINE Address last_name_for_protector () const
 
V8_INLINE ReadOnlyRoots (Address *ro_roots)
 

Private Attributes

Addressread_only_roots_
 

Friends

class ReadOnlyHeap
 
class DeserializerAllocator
 
class ReadOnlyHeapImageDeserializer
 
ReadOnlyRoots GetReadOnlyRoots ()
 

Detailed Description

Definition at line 709 of file roots.h.

Constructor & Destructor Documentation

◆ ReadOnlyRoots() [1/4]

v8::internal::ReadOnlyRoots::ReadOnlyRoots ( Heap * heap)
explicit

Definition at line 95 of file roots-inl.h.

◆ ReadOnlyRoots() [2/4]

v8::internal::ReadOnlyRoots::ReadOnlyRoots ( const Isolate * isolate)
explicit

Definition at line 98 of file roots-inl.h.

◆ ReadOnlyRoots() [3/4]

v8::internal::ReadOnlyRoots::ReadOnlyRoots ( LocalIsolate * isolate)
explicit

Definition at line 102 of file roots-inl.h.

◆ ReadOnlyRoots() [4/4]

V8_INLINE v8::internal::ReadOnlyRoots::ReadOnlyRoots ( Address * ro_roots)
inlineexplicitprivate

Definition at line 758 of file roots.h.

Member Function Documentation

◆ address_at()

Address v8::internal::ReadOnlyRoots::address_at ( RootIndex root_index) const

Definition at line 147 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ boolean_value()

Tagged< Boolean > v8::internal::ReadOnlyRoots::boolean_value ( bool value) const

Definition at line 119 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ first_name_for_protector()

Address v8::internal::ReadOnlyRoots::first_name_for_protector ( ) const
private

Definition at line 123 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitFromStaticRootsTable()

void v8::internal::ReadOnlyRoots::InitFromStaticRootsTable ( Address cage_base)

Definition at line 115 of file roots.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_initialized()

bool v8::internal::ReadOnlyRoots::is_initialized ( RootIndex root_index) const

Definition at line 163 of file roots-inl.h.

Here is the caller graph for this function:

◆ IsNameForProtector()

bool v8::internal::ReadOnlyRoots::IsNameForProtector ( Tagged< HeapObject > object) const

Definition at line 131 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Iterate()

void v8::internal::ReadOnlyRoots::Iterate ( RootVisitor * visitor)

Definition at line 54 of file roots.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ last_name_for_protector()

Address v8::internal::ReadOnlyRoots::last_name_for_protector ( ) const
private

Definition at line 127 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ object_at()

Tagged< Object > v8::internal::ReadOnlyRoots::object_at ( RootIndex root_index) const

Definition at line 143 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ one_pointer_filler_map_word()

MapWord v8::internal::ReadOnlyRoots::one_pointer_filler_map_word ( )

Definition at line 50 of file roots.cc.

Here is the call graph for this function:

◆ VerifyNameForProtectorsPages()

void v8::internal::ReadOnlyRoots::VerifyNameForProtectorsPages ( ) const

Definition at line 136 of file roots-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ DeserializerAllocator

friend class DeserializerAllocator
friend

Definition at line 764 of file roots.h.

◆ GetReadOnlyRoots

ReadOnlyRoots GetReadOnlyRoots ( )
friend

Definition at line 86 of file roots-inl.h.

◆ ReadOnlyHeap

friend class ReadOnlyHeap
friend

Definition at line 763 of file roots.h.

◆ ReadOnlyHeapImageDeserializer

friend class ReadOnlyHeapImageDeserializer
friend

Definition at line 765 of file roots.h.

Member Data Documentation

◆ kEntriesCount

size_t v8::internal::ReadOnlyRoots::kEntriesCount
staticconstexpr
Initial value:

Definition at line 711 of file roots.h.

◆ read_only_roots_

Address* v8::internal::ReadOnlyRoots::read_only_roots_
private

Definition at line 761 of file roots.h.


The documentation for this class was generated from the following files: