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

Public Member Functions

bool StateExists (const void *key) const
 
StateBaseGetExistingState (const void *key) const
 
StateGetExistingState (const HeapObjectHeader &header) const
 
StateGetOrCreateState (const HeapObjectHeader &header)
 
RootStateCreateRootState (EmbedderRootNode *root_node)
 
template<typename Callback >
void ForAllStates (Callback callback)
 

Private Attributes

std::unordered_map< const void *, std::unique_ptr< StateBase > > states_
 
size_t state_count_ = 0
 

Detailed Description

Definition at line 334 of file cpp-snapshot.cc.

Member Function Documentation

◆ CreateRootState()

RootState & v8::internal::StateStorage::CreateRootState ( EmbedderRootNode * root_node)
inline

Definition at line 359 of file cpp-snapshot.cc.

◆ ForAllStates()

template<typename Callback >
void v8::internal::StateStorage::ForAllStates ( Callback callback)
inline

Definition at line 369 of file cpp-snapshot.cc.

◆ GetExistingState() [1/2]

State & v8::internal::StateStorage::GetExistingState ( const HeapObjectHeader & header) const
inline

Definition at line 345 of file cpp-snapshot.cc.

◆ GetExistingState() [2/2]

StateBase & v8::internal::StateStorage::GetExistingState ( const void * key) const
inline

Definition at line 340 of file cpp-snapshot.cc.

◆ GetOrCreateState()

State & v8::internal::StateStorage::GetOrCreateState ( const HeapObjectHeader & header)
inline

Definition at line 349 of file cpp-snapshot.cc.

◆ StateExists()

bool v8::internal::StateStorage::StateExists ( const void * key) const
inline

Definition at line 336 of file cpp-snapshot.cc.

Member Data Documentation

◆ state_count_

size_t v8::internal::StateStorage::state_count_ = 0
private

Definition at line 377 of file cpp-snapshot.cc.

◆ states_

std::unordered_map<const void*, std::unique_ptr<StateBase> > v8::internal::StateStorage::states_
private

Definition at line 376 of file cpp-snapshot.cc.


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