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

#include <compiler.h>

Collaboration diagram for v8::internal::BackgroundCompileTask:

Public Member Functions

 BackgroundCompileTask (ScriptStreamingData *data, Isolate *isolate, v8::ScriptType type, ScriptCompiler::CompileOptions options, ScriptCompiler::CompilationDetails *compilation_details, CompileHintCallback compile_hint_callback=nullptr, void *compile_hint_callback_data=nullptr)
 
 BackgroundCompileTask (const BackgroundCompileTask &)=delete
 
BackgroundCompileTaskoperator= (const BackgroundCompileTask &)=delete
 
 ~BackgroundCompileTask ()
 
 BackgroundCompileTask (Isolate *isolate, Handle< SharedFunctionInfo > shared_info, std::unique_ptr< Utf16CharacterStream > character_stream, WorkerThreadRuntimeCallStats *worker_thread_runtime_stats, TimedHistogram *timer, int max_stack_size)
 
void Run ()
 
void RunOnMainThread (Isolate *isolate)
 
void Run (LocalIsolate *isolate, ReusableUnoptimizedCompileState *reusable_state)
 
MaybeHandle< SharedFunctionInfoFinalizeScript (Isolate *isolate, DirectHandle< String > source, const ScriptDetails &script_details, MaybeDirectHandle< Script > maybe_cached_script)
 
bool FinalizeFunction (Isolate *isolate, Compiler::ClearExceptionFlag flag)
 
void AbortFunction ()
 
UnoptimizedCompileFlags flags () const
 

Private Member Functions

void ReportStatistics (Isolate *isolate)
 
void ClearFunctionJobPointer ()
 
bool is_streaming_compilation () const
 

Private Attributes

Isolateisolate_for_local_isolate_
 
UnoptimizedCompileFlags flags_
 
UnoptimizedCompileState compile_state_
 
std::unique_ptr< Utf16CharacterStreamcharacter_stream_
 
int stack_size_
 
WorkerThreadRuntimeCallStatsworker_thread_runtime_call_stats_
 
TimedHistogramtimer_
 
ScriptCompiler::CompilationDetailscompilation_details_
 
std::unique_ptr< PersistentHandlespersistent_handles_
 
MaybeIndirectHandle< SharedFunctionInfoouter_function_sfi_
 
IndirectHandle< Scriptscript_
 
IsCompiledScope is_compiled_scope_
 
FinalizeUnoptimizedCompilationDataList finalize_unoptimized_compilation_data_
 
DeferredFinalizationJobDataList jobs_to_retry_finalization_on_main_thread_
 
base::SmallVector< v8::Isolate::UseCounterFeature, 8 > use_counts_
 
int total_preparse_skipped_ = 0
 
MaybeIndirectHandle< SharedFunctionInfoinput_shared_info_
 
int start_position_
 
int end_position_
 
int function_literal_id_
 
CompileHintCallback compile_hint_callback_ = nullptr
 
void * compile_hint_callback_data_ = nullptr
 

Detailed Description

Definition at line 585 of file compiler.h.

Constructor & Destructor Documentation

◆ BackgroundCompileTask() [1/3]

v8::internal::BackgroundCompileTask::BackgroundCompileTask ( ScriptStreamingData * data,
Isolate * isolate,
v8::ScriptType type,
ScriptCompiler::CompileOptions options,
ScriptCompiler::CompilationDetails * compilation_details,
CompileHintCallback compile_hint_callback = nullptr,
void * compile_hint_callback_data = nullptr )

Definition at line 1690 of file compiler.cc.

Here is the call graph for this function:

◆ BackgroundCompileTask() [2/3]

v8::internal::BackgroundCompileTask::BackgroundCompileTask ( const BackgroundCompileTask & )
delete

◆ ~BackgroundCompileTask()

v8::internal::BackgroundCompileTask::~BackgroundCompileTask ( )
default

◆ BackgroundCompileTask() [3/3]

v8::internal::BackgroundCompileTask::BackgroundCompileTask ( Isolate * isolate,
Handle< SharedFunctionInfo > shared_info,
std::unique_ptr< Utf16CharacterStream > character_stream,
WorkerThreadRuntimeCallStats * worker_thread_runtime_stats,
TimedHistogram * timer,
int max_stack_size )

Definition at line 1732 of file compiler.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AbortFunction()

void v8::internal::BackgroundCompileTask::AbortFunction ( )

Definition at line 2714 of file compiler.cc.

◆ ClearFunctionJobPointer()

void v8::internal::BackgroundCompileTask::ClearFunctionJobPointer ( )
private

◆ FinalizeFunction()

bool v8::internal::BackgroundCompileTask::FinalizeFunction ( Isolate * isolate,
Compiler::ClearExceptionFlag flag )

Definition at line 2673 of file compiler.cc.

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

◆ FinalizeScript()

MaybeHandle< SharedFunctionInfo > v8::internal::BackgroundCompileTask::FinalizeScript ( Isolate * isolate,
DirectHandle< String > source,
const ScriptDetails & script_details,
MaybeDirectHandle< Script > maybe_cached_script )

Definition at line 2605 of file compiler.cc.

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

◆ flags()

UnoptimizedCompileFlags v8::internal::BackgroundCompileTask::flags ( ) const
inline

Definition at line 623 of file compiler.h.

Here is the caller graph for this function:

◆ is_streaming_compilation()

bool v8::internal::BackgroundCompileTask::is_streaming_compilation ( ) const
private

Definition at line 1927 of file compiler.cc.

Here is the caller graph for this function:

◆ operator=()

BackgroundCompileTask & v8::internal::BackgroundCompileTask::operator= ( const BackgroundCompileTask & )
delete

◆ ReportStatistics()

void v8::internal::BackgroundCompileTask::ReportStatistics ( Isolate * isolate)
private

Definition at line 2723 of file compiler.cc.

Here is the caller graph for this function:

◆ Run() [1/2]

void v8::internal::BackgroundCompileTask::Run ( )

Definition at line 1931 of file compiler.cc.

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

◆ Run() [2/2]

void v8::internal::BackgroundCompileTask::Run ( LocalIsolate * isolate,
ReusableUnoptimizedCompileState * reusable_state )

Definition at line 1948 of file compiler.cc.

Here is the call graph for this function:

◆ RunOnMainThread()

void v8::internal::BackgroundCompileTask::RunOnMainThread ( Isolate * isolate)

Definition at line 1942 of file compiler.cc.

Here is the call graph for this function:

Member Data Documentation

◆ character_stream_

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

Definition at line 637 of file compiler.h.

◆ compilation_details_

ScriptCompiler::CompilationDetails* v8::internal::BackgroundCompileTask::compilation_details_
private

Definition at line 641 of file compiler.h.

◆ compile_hint_callback_

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

Definition at line 659 of file compiler.h.

◆ compile_hint_callback_data_

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

Definition at line 660 of file compiler.h.

◆ compile_state_

UnoptimizedCompileState v8::internal::BackgroundCompileTask::compile_state_
private

Definition at line 636 of file compiler.h.

◆ end_position_

int v8::internal::BackgroundCompileTask::end_position_
private

Definition at line 656 of file compiler.h.

◆ finalize_unoptimized_compilation_data_

FinalizeUnoptimizedCompilationDataList v8::internal::BackgroundCompileTask::finalize_unoptimized_compilation_data_
private

Definition at line 648 of file compiler.h.

◆ flags_

UnoptimizedCompileFlags v8::internal::BackgroundCompileTask::flags_
private

Definition at line 635 of file compiler.h.

◆ function_literal_id_

int v8::internal::BackgroundCompileTask::function_literal_id_
private

Definition at line 657 of file compiler.h.

◆ input_shared_info_

MaybeIndirectHandle<SharedFunctionInfo> v8::internal::BackgroundCompileTask::input_shared_info_
private

Definition at line 654 of file compiler.h.

◆ is_compiled_scope_

IsCompiledScope v8::internal::BackgroundCompileTask::is_compiled_scope_
private

Definition at line 647 of file compiler.h.

◆ isolate_for_local_isolate_

Isolate* v8::internal::BackgroundCompileTask::isolate_for_local_isolate_
private

Definition at line 634 of file compiler.h.

◆ jobs_to_retry_finalization_on_main_thread_

DeferredFinalizationJobDataList v8::internal::BackgroundCompileTask::jobs_to_retry_finalization_on_main_thread_
private

Definition at line 649 of file compiler.h.

◆ outer_function_sfi_

MaybeIndirectHandle<SharedFunctionInfo> v8::internal::BackgroundCompileTask::outer_function_sfi_
private

Definition at line 645 of file compiler.h.

◆ persistent_handles_

std::unique_ptr<PersistentHandles> v8::internal::BackgroundCompileTask::persistent_handles_
private

Definition at line 644 of file compiler.h.

◆ script_

IndirectHandle<Script> v8::internal::BackgroundCompileTask::script_
private

Definition at line 646 of file compiler.h.

◆ stack_size_

int v8::internal::BackgroundCompileTask::stack_size_
private

Definition at line 638 of file compiler.h.

◆ start_position_

int v8::internal::BackgroundCompileTask::start_position_
private

Definition at line 655 of file compiler.h.

◆ timer_

TimedHistogram* v8::internal::BackgroundCompileTask::timer_
private

Definition at line 640 of file compiler.h.

◆ total_preparse_skipped_

int v8::internal::BackgroundCompileTask::total_preparse_skipped_ = 0
private

Definition at line 651 of file compiler.h.

◆ use_counts_

base::SmallVector<v8::Isolate::UseCounterFeature, 8> v8::internal::BackgroundCompileTask::use_counts_
private

Definition at line 650 of file compiler.h.

◆ worker_thread_runtime_call_stats_

WorkerThreadRuntimeCallStats* v8::internal::BackgroundCompileTask::worker_thread_runtime_call_stats_
private

Definition at line 639 of file compiler.h.


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