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

#include <parse-info.h>

Collaboration diagram for v8::internal::ParseInfo:

Public Member Functions

 ParseInfo (Isolate *isolate, const UnoptimizedCompileFlags flags, UnoptimizedCompileState *state, ReusableUnoptimizedCompileState *reusable_state)
 
 ParseInfo (LocalIsolate *isolate, const UnoptimizedCompileFlags flags, UnoptimizedCompileState *state, ReusableUnoptimizedCompileState *reusable_state, uintptr_t stack_limit)
 
 ~ParseInfo ()
 
template<typename IsolateT >
Handle< ScriptCreateScript (IsolateT *isolate, DirectHandle< String > source, MaybeDirectHandle< FixedArray > maybe_wrapped_arguments, ScriptOriginOptions origin_options, NativesFlag natives=NOT_NATIVES_CODE)
 
Zonezone () const
 
const UnoptimizedCompileFlagsflags () const
 
uint64_t hash_seed () const
 
AccountingAllocatorallocator () const
 
const AstStringConstantsast_string_constants () const
 
V8FileLoggerv8_file_logger () const
 
LazyCompileDispatcherdispatcher () const
 
const UnoptimizedCompileStatestate () const
 
PendingCompilationErrorHandlerpending_error_handler ()
 
uintptr_t stack_limit () const
 
RuntimeCallStatsruntime_call_stats () const
 
bool allow_eval_cache () const
 
void set_allow_eval_cache (bool value)
 
LanguageMode language_mode () const
 
void set_language_mode (LanguageMode value)
 
Utf16CharacterStreamcharacter_stream () const
 
void set_character_stream (std::unique_ptr< Utf16CharacterStream > character_stream)
 
void ResetCharacterStream ()
 
v8::Extensionextension () const
 
void set_extension (v8::Extension *extension)
 
void set_consumed_preparse_data (std::unique_ptr< ConsumedPreparseData > data)
 
ConsumedPreparseDataconsumed_preparse_data ()
 
DeclarationScopescript_scope () const
 
void set_script_scope (DeclarationScope *script_scope)
 
AstValueFactoryast_value_factory () const
 
const AstRawStringfunction_name () const
 
void set_function_name (const AstRawString *function_name)
 
FunctionLiteralliteral () const
 
void set_literal (FunctionLiteral *literal)
 
DeclarationScopescope () const
 
int parameters_end_pos () const
 
void set_parameters_end_pos (int parameters_end_pos)
 
bool is_wrapped_as_function () const
 
int max_info_id () const
 
void set_max_info_id (int max_info_id)
 
void AllocateSourceRangeMap ()
 
SourceRangeMapsource_range_map () const
 
void set_source_range_map (SourceRangeMap *source_range_map)
 
void CheckFlagsForFunctionFromScript (Tagged< Script > script)
 
bool is_background_compilation () const
 
void set_is_background_compilation ()
 
bool is_streaming_compilation () const
 
void set_is_streaming_compilation ()
 
bool has_module_in_scope_chain () const
 
void set_has_module_in_scope_chain ()
 
void SetCompileHintCallbackAndData (CompileHintCallback callback, void *data)
 
CompileHintCallback compile_hint_callback () const
 
void * compile_hint_callback_data () const
 

Private Member Functions

 ParseInfo (const UnoptimizedCompileFlags flags, UnoptimizedCompileState *state, ReusableUnoptimizedCompileState *reusable_state, uintptr_t stack_limit, RuntimeCallStats *runtime_call_stats)
 
void CheckFlagsForToplevelCompileFromScript (Tagged< Script > script)
 

Private Attributes

const UnoptimizedCompileFlags flags_
 
UnoptimizedCompileStatestate_
 
ReusableUnoptimizedCompileStatereusable_state_
 
v8::Extensionextension_
 
DeclarationScopescript_scope_
 
uintptr_t stack_limit_
 
int parameters_end_pos_
 
int max_info_id_
 
v8::CompileHintCallback compile_hint_callback_ = nullptr
 
void * compile_hint_callback_data_ = nullptr
 
std::unique_ptr< Utf16CharacterStreamcharacter_stream_
 
std::unique_ptr< ConsumedPreparseDataconsumed_preparse_data_
 
const AstRawStringfunction_name_
 
RuntimeCallStatsruntime_call_stats_
 
SourceRangeMapsource_range_map_
 
FunctionLiteralliteral_
 
bool allow_eval_cache_: 1
 
LanguageMode language_mode_: 1
 
bool is_background_compilation_: 1
 
bool is_streaming_compilation_: 1
 
bool has_module_in_scope_chain_: 1
 

Detailed Description

Definition at line 227 of file parse-info.h.

Constructor & Destructor Documentation

◆ ParseInfo() [1/3]

v8::internal::ParseInfo::ParseInfo ( Isolate * isolate,
const UnoptimizedCompileFlags flags,
UnoptimizedCompileState * state,
ReusableUnoptimizedCompileState * reusable_state )

Definition at line 220 of file parse-info.cc.

◆ ParseInfo() [2/3]

v8::internal::ParseInfo::ParseInfo ( LocalIsolate * isolate,
const UnoptimizedCompileFlags flags,
UnoptimizedCompileState * state,
ReusableUnoptimizedCompileState * reusable_state,
uintptr_t stack_limit )

Definition at line 227 of file parse-info.cc.

◆ ~ParseInfo()

v8::internal::ParseInfo::~ParseInfo ( )

Definition at line 234 of file parse-info.cc.

Here is the call graph for this function:

◆ ParseInfo() [3/3]

v8::internal::ParseInfo::ParseInfo ( const UnoptimizedCompileFlags flags,
UnoptimizedCompileState * state,
ReusableUnoptimizedCompileState * reusable_state,
uintptr_t stack_limit,
RuntimeCallStats * runtime_call_stats )
private

Definition at line 189 of file parse-info.cc.

Member Function Documentation

◆ AllocateSourceRangeMap()

void v8::internal::ParseInfo::AllocateSourceRangeMap ( )

◆ allocator()

AccountingAllocator * v8::internal::ParseInfo::allocator ( ) const
inline

Definition at line 253 of file parse-info.h.

Here is the caller graph for this function:

◆ allow_eval_cache()

bool v8::internal::ParseInfo::allow_eval_cache ( ) const
inline

Definition at line 277 of file parse-info.h.

Here is the caller graph for this function:

◆ ast_string_constants()

const AstStringConstants * v8::internal::ParseInfo::ast_string_constants ( ) const
inline

Definition at line 256 of file parse-info.h.

◆ ast_value_factory()

AstValueFactory * v8::internal::ParseInfo::ast_value_factory ( ) const
inline

Definition at line 310 of file parse-info.h.

Here is the caller graph for this function:

◆ character_stream()

Utf16CharacterStream * v8::internal::ParseInfo::character_stream ( ) const
inline

Definition at line 288 of file parse-info.h.

Here is the caller graph for this function:

◆ CheckFlagsForFunctionFromScript()

void v8::internal::ParseInfo::CheckFlagsForFunctionFromScript ( Tagged< Script > script)

Definition at line 318 of file parse-info.cc.

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

◆ CheckFlagsForToplevelCompileFromScript()

void v8::internal::ParseInfo::CheckFlagsForToplevelCompileFromScript ( Tagged< Script > script)
private

Definition at line 308 of file parse-info.cc.

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

◆ compile_hint_callback()

CompileHintCallback v8::internal::ParseInfo::compile_hint_callback ( ) const
inline

Definition at line 362 of file parse-info.h.

◆ compile_hint_callback_data()

void * v8::internal::ParseInfo::compile_hint_callback_data ( ) const
inline

Definition at line 366 of file parse-info.h.

◆ consumed_preparse_data()

ConsumedPreparseData * v8::internal::ParseInfo::consumed_preparse_data ( )
inline

Definition at line 301 of file parse-info.h.

◆ CreateScript()

template<typename IsolateT >
Handle< Script > v8::internal::ParseInfo::CreateScript ( IsolateT * isolate,
DirectHandle< String > source,
MaybeDirectHandle< FixedArray > maybe_wrapped_arguments,
ScriptOriginOptions origin_options,
NativesFlag natives = NOT_NATIVES_CODE )

Definition at line 239 of file parse-info.cc.

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

◆ dispatcher()

LazyCompileDispatcher * v8::internal::ParseInfo::dispatcher ( ) const
inline

Definition at line 262 of file parse-info.h.

Here is the caller graph for this function:

◆ extension()

v8::Extension * v8::internal::ParseInfo::extension ( ) const
inline

Definition at line 295 of file parse-info.h.

◆ flags()

const UnoptimizedCompileFlags & v8::internal::ParseInfo::flags ( ) const
inline

Definition at line 249 of file parse-info.h.

Here is the caller graph for this function:

◆ function_name()

const AstRawString * v8::internal::ParseInfo::function_name ( ) const
inline

Definition at line 314 of file parse-info.h.

◆ has_module_in_scope_chain()

bool v8::internal::ParseInfo::has_module_in_scope_chain ( ) const
inline

Definition at line 352 of file parse-info.h.

◆ hash_seed()

uint64_t v8::internal::ParseInfo::hash_seed ( ) const
inline

Definition at line 252 of file parse-info.h.

◆ is_background_compilation()

bool v8::internal::ParseInfo::is_background_compilation ( ) const
inline

Definition at line 344 of file parse-info.h.

Here is the caller graph for this function:

◆ is_streaming_compilation()

bool v8::internal::ParseInfo::is_streaming_compilation ( ) const
inline

Definition at line 348 of file parse-info.h.

Here is the caller graph for this function:

◆ is_wrapped_as_function()

bool v8::internal::ParseInfo::is_wrapped_as_function ( ) const
inline

Definition at line 329 of file parse-info.h.

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

◆ language_mode()

LanguageMode v8::internal::ParseInfo::language_mode ( ) const
inline

Definition at line 285 of file parse-info.h.

◆ literal()

FunctionLiteral * v8::internal::ParseInfo::literal ( ) const
inline

Definition at line 319 of file parse-info.h.

Here is the caller graph for this function:

◆ max_info_id()

int v8::internal::ParseInfo::max_info_id ( ) const
inline

Definition at line 333 of file parse-info.h.

Here is the caller graph for this function:

◆ parameters_end_pos()

int v8::internal::ParseInfo::parameters_end_pos ( ) const
inline

Definition at line 324 of file parse-info.h.

◆ pending_error_handler()

PendingCompilationErrorHandler * v8::internal::ParseInfo::pending_error_handler ( )
inline

Definition at line 268 of file parse-info.h.

Here is the caller graph for this function:

◆ ResetCharacterStream()

void v8::internal::ParseInfo::ResetCharacterStream ( )

Definition at line 300 of file parse-info.cc.

Here is the caller graph for this function:

◆ runtime_call_stats()

RuntimeCallStats * v8::internal::ParseInfo::runtime_call_stats ( ) const
inline

Definition at line 274 of file parse-info.h.

◆ scope()

DeclarationScope * v8::internal::ParseInfo::scope ( ) const

Definition at line 236 of file parse-info.cc.

Here is the call graph for this function:

◆ script_scope()

DeclarationScope * v8::internal::ParseInfo::script_scope ( ) const
inline

Definition at line 305 of file parse-info.h.

Here is the caller graph for this function:

◆ set_allow_eval_cache()

void v8::internal::ParseInfo::set_allow_eval_cache ( bool value)
inline

Definition at line 278 of file parse-info.h.

◆ set_character_stream()

void v8::internal::ParseInfo::set_character_stream ( std::unique_ptr< Utf16CharacterStream > character_stream)

Definition at line 302 of file parse-info.cc.

Here is the call graph for this function:

◆ set_consumed_preparse_data()

void v8::internal::ParseInfo::set_consumed_preparse_data ( std::unique_ptr< ConsumedPreparseData > data)
inline

Definition at line 298 of file parse-info.h.

Here is the caller graph for this function:

◆ set_extension()

void v8::internal::ParseInfo::set_extension ( v8::Extension * extension)
inline

Definition at line 296 of file parse-info.h.

◆ set_function_name()

void v8::internal::ParseInfo::set_function_name ( const AstRawString * function_name)
inline

Definition at line 315 of file parse-info.h.

◆ set_has_module_in_scope_chain()

void v8::internal::ParseInfo::set_has_module_in_scope_chain ( )
inline

Definition at line 353 of file parse-info.h.

Here is the caller graph for this function:

◆ set_is_background_compilation()

void v8::internal::ParseInfo::set_is_background_compilation ( )
inline

Definition at line 346 of file parse-info.h.

◆ set_is_streaming_compilation()

void v8::internal::ParseInfo::set_is_streaming_compilation ( )
inline

Definition at line 350 of file parse-info.h.

◆ set_language_mode()

void v8::internal::ParseInfo::set_language_mode ( LanguageMode value)
inline

Definition at line 286 of file parse-info.h.

◆ set_literal()

void v8::internal::ParseInfo::set_literal ( FunctionLiteral * literal)
inline

Definition at line 320 of file parse-info.h.

◆ set_max_info_id()

void v8::internal::ParseInfo::set_max_info_id ( int max_info_id)
inline

Definition at line 334 of file parse-info.h.

◆ set_parameters_end_pos()

void v8::internal::ParseInfo::set_parameters_end_pos ( int parameters_end_pos)
inline

Definition at line 325 of file parse-info.h.

Here is the caller graph for this function:

◆ set_script_scope()

void v8::internal::ParseInfo::set_script_scope ( DeclarationScope * script_scope)
inline

Definition at line 306 of file parse-info.h.

◆ set_source_range_map()

void v8::internal::ParseInfo::set_source_range_map ( SourceRangeMap * source_range_map)
inline

Definition at line 338 of file parse-info.h.

◆ SetCompileHintCallbackAndData()

void v8::internal::ParseInfo::SetCompileHintCallbackAndData ( CompileHintCallback callback,
void * data )
inline

Definition at line 355 of file parse-info.h.

◆ source_range_map()

SourceRangeMap * v8::internal::ParseInfo::source_range_map ( ) const
inline

Definition at line 337 of file parse-info.h.

Here is the caller graph for this function:

◆ stack_limit()

uintptr_t v8::internal::ParseInfo::stack_limit ( ) const
inline

Definition at line 273 of file parse-info.h.

◆ state()

const UnoptimizedCompileState * v8::internal::ParseInfo::state ( ) const
inline

Definition at line 265 of file parse-info.h.

◆ v8_file_logger()

V8FileLogger * v8::internal::ParseInfo::v8_file_logger ( ) const
inline

Definition at line 259 of file parse-info.h.

◆ zone()

Zone * v8::internal::ParseInfo::zone ( ) const
inline

Definition at line 247 of file parse-info.h.

Member Data Documentation

◆ allow_eval_cache_

bool v8::internal::ParseInfo::allow_eval_cache_
private

Definition at line 400 of file parse-info.h.

◆ character_stream_

std::unique_ptr<Utf16CharacterStream> v8::internal::ParseInfo::character_stream_
private

Definition at line 392 of file parse-info.h.

◆ compile_hint_callback_

v8::CompileHintCallback v8::internal::ParseInfo::compile_hint_callback_ = nullptr
private

Definition at line 388 of file parse-info.h.

◆ compile_hint_callback_data_

void* v8::internal::ParseInfo::compile_hint_callback_data_ = nullptr
private

Definition at line 389 of file parse-info.h.

◆ consumed_preparse_data_

std::unique_ptr<ConsumedPreparseData> v8::internal::ParseInfo::consumed_preparse_data_
private

Definition at line 393 of file parse-info.h.

◆ extension_

v8::Extension* v8::internal::ParseInfo::extension_
private

Definition at line 382 of file parse-info.h.

◆ flags_

const UnoptimizedCompileFlags v8::internal::ParseInfo::flags_
private

Definition at line 378 of file parse-info.h.

◆ function_name_

const AstRawString* v8::internal::ParseInfo::function_name_
private

Definition at line 394 of file parse-info.h.

◆ has_module_in_scope_chain_

bool v8::internal::ParseInfo::has_module_in_scope_chain_
private

Definition at line 407 of file parse-info.h.

◆ is_background_compilation_

bool v8::internal::ParseInfo::is_background_compilation_
private

Definition at line 405 of file parse-info.h.

◆ is_streaming_compilation_

bool v8::internal::ParseInfo::is_streaming_compilation_
private

Definition at line 406 of file parse-info.h.

◆ language_mode_

LanguageMode v8::internal::ParseInfo::language_mode_
private

Definition at line 404 of file parse-info.h.

◆ literal_

FunctionLiteral* v8::internal::ParseInfo::literal_
private

Definition at line 399 of file parse-info.h.

◆ max_info_id_

int v8::internal::ParseInfo::max_info_id_
private

Definition at line 386 of file parse-info.h.

◆ parameters_end_pos_

int v8::internal::ParseInfo::parameters_end_pos_
private

Definition at line 385 of file parse-info.h.

◆ reusable_state_

ReusableUnoptimizedCompileState* v8::internal::ParseInfo::reusable_state_
private

Definition at line 380 of file parse-info.h.

◆ runtime_call_stats_

RuntimeCallStats* v8::internal::ParseInfo::runtime_call_stats_
private

Definition at line 395 of file parse-info.h.

◆ script_scope_

DeclarationScope* v8::internal::ParseInfo::script_scope_
private

Definition at line 383 of file parse-info.h.

◆ source_range_map_

SourceRangeMap* v8::internal::ParseInfo::source_range_map_
private

Definition at line 396 of file parse-info.h.

◆ stack_limit_

uintptr_t v8::internal::ParseInfo::stack_limit_
private

Definition at line 384 of file parse-info.h.

◆ state_

UnoptimizedCompileState* v8::internal::ParseInfo::state_
private

Definition at line 379 of file parse-info.h.


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