v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::BaseConsumedPreparseData< Data > Class Template Referenceabstract

#include <preparse-data-impl.h>

Inheritance diagram for v8::internal::BaseConsumedPreparseData< Data >:
Collaboration diagram for v8::internal::BaseConsumedPreparseData< Data >:

Classes

class  ByteData
 

Public Member Functions

 BaseConsumedPreparseData ()
 
 BaseConsumedPreparseData (const BaseConsumedPreparseData &)=delete
 
BaseConsumedPreparseDataoperator= (const BaseConsumedPreparseData &)=delete
 
virtual Data GetScopeData ()=0
 
virtual ProducedPreparseDataGetChildData (Zone *zone, int child_index)=0
 
ProducedPreparseDataGetDataForSkippableFunction (Zone *zone, int start_position, int *end_position, int *num_parameters, int *function_length, int *num_inner_functions, bool *uses_super_property, LanguageMode *language_mode) final
 
void RestoreScopeAllocationData (DeclarationScope *scope, AstValueFactory *ast_value_factory, Zone *zone) final
 
- Public Member Functions inherited from v8::internal::ConsumedPreparseData
virtual ~ConsumedPreparseData ()=default
 
 ConsumedPreparseData (const ConsumedPreparseData &)=delete
 
ConsumedPreparseDataoperator= (const ConsumedPreparseData &)=delete
 

Private Member Functions

void RestoreDataForScope (Scope *scope, AstValueFactory *ast_value_factory, Zone *zone)
 
void RestoreDataForVariable (Variable *var)
 
void RestoreDataForInnerScopes (Scope *scope, AstValueFactory *ast_value_factory, Zone *zone)
 

Private Attributes

std::unique_ptr< ByteDatascope_data_
 
int child_index_
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::internal::ConsumedPreparseData
static V8_EXPORT_PRIVATE std::unique_ptr< ConsumedPreparseDataFor (Isolate *isolate, Handle< PreparseData > data)
 
static V8_EXPORT_PRIVATE std::unique_ptr< ConsumedPreparseDataFor (LocalIsolate *isolate, Handle< PreparseData > data)
 
static std::unique_ptr< ConsumedPreparseDataFor (Zone *zone, ZonePreparseData *data)
 
- Protected Member Functions inherited from v8::internal::ConsumedPreparseData
 ConsumedPreparseData ()=default
 

Detailed Description

template<class Data>
class v8::internal::BaseConsumedPreparseData< Data >

Definition at line 45 of file preparse-data-impl.h.

Constructor & Destructor Documentation

◆ BaseConsumedPreparseData() [1/2]

template<class Data >
v8::internal::BaseConsumedPreparseData< Data >::BaseConsumedPreparseData ( )
inline

Definition at line 156 of file preparse-data-impl.h.

◆ BaseConsumedPreparseData() [2/2]

template<class Data >
v8::internal::BaseConsumedPreparseData< Data >::BaseConsumedPreparseData ( const BaseConsumedPreparseData< Data > & )
delete

Member Function Documentation

◆ GetChildData()

template<class Data >
virtual ProducedPreparseData * v8::internal::BaseConsumedPreparseData< Data >::GetChildData ( Zone * zone,
int child_index )
pure virtual

◆ GetDataForSkippableFunction()

template<class Data >
ProducedPreparseData * v8::internal::BaseConsumedPreparseData< Data >::GetDataForSkippableFunction ( Zone * zone,
int start_position,
int * end_position,
int * num_parameters,
int * function_length,
int * num_inner_functions,
bool * uses_super_property,
LanguageMode * language_mode )
finalvirtual

Implements v8::internal::ConsumedPreparseData.

Definition at line 586 of file preparse-data.cc.

◆ GetScopeData()

template<class Data >
virtual Data v8::internal::BaseConsumedPreparseData< Data >::GetScopeData ( )
pure virtual

◆ operator=()

◆ RestoreDataForInnerScopes()

template<typename Data >
void v8::internal::BaseConsumedPreparseData< Data >::RestoreDataForInnerScopes ( Scope * scope,
AstValueFactory * ast_value_factory,
Zone * zone )
private

Definition at line 744 of file preparse-data.cc.

Here is the call graph for this function:

◆ RestoreDataForScope()

template<typename Data >
void v8::internal::BaseConsumedPreparseData< Data >::RestoreDataForScope ( Scope * scope,
AstValueFactory * ast_value_factory,
Zone * zone )
private

Definition at line 649 of file preparse-data.cc.

Here is the call graph for this function:

◆ RestoreDataForVariable()

template<typename Data >
void v8::internal::BaseConsumedPreparseData< Data >::RestoreDataForVariable ( Variable * var)
private

Definition at line 709 of file preparse-data.cc.

Here is the call graph for this function:

◆ RestoreScopeAllocationData()

template<class Data >
void v8::internal::BaseConsumedPreparseData< Data >::RestoreScopeAllocationData ( DeclarationScope * scope,
AstValueFactory * ast_value_factory,
Zone * zone )
finalvirtual

Implements v8::internal::ConsumedPreparseData.

Definition at line 626 of file preparse-data.cc.

Here is the call graph for this function:

Member Data Documentation

◆ child_index_

template<class Data >
int v8::internal::BaseConsumedPreparseData< Data >::child_index_
private

Definition at line 188 of file preparse-data-impl.h.

◆ scope_data_

template<class Data >
std::unique_ptr<ByteData> v8::internal::BaseConsumedPreparseData< Data >::scope_data_
private

Definition at line 185 of file preparse-data-impl.h.


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