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

#include <background-merge-task.h>

Collaboration diagram for v8::internal::BackgroundMergeTask:

Classes

struct  NewCompiledDataForCachedSfi
 

Public Member Functions

void SetUpOnMainThread (Isolate *isolate, Handle< String > source_text, const ScriptDetails &script_details, LanguageMode language_mode)
 
void SetUpOnMainThread (Isolate *isolate, DirectHandle< Script > cached_script)
 
void BeginMergeInBackground (LocalIsolate *isolate, DirectHandle< Script > new_script)
 
Handle< SharedFunctionInfoCompleteMergeInForeground (Isolate *isolate, DirectHandle< Script > new_script)
 
bool HasPendingBackgroundWork () const
 
bool HasPendingForegroundWork () const
 

Static Public Member Functions

static void ForceGCDuringNextMergeForTesting ()
 

Private Types

enum  State { kNotStarted , kPendingBackgroundWork , kPendingForegroundWork , kDone }
 

Private Attributes

std::unique_ptr< PersistentHandlespersistent_handles_
 
MaybeHandle< Scriptcached_script_
 
MaybeHandle< SharedFunctionInfotoplevel_sfi_from_cached_script_
 
std::vector< Handle< SharedFunctionInfo > > used_new_sfis_
 
std::vector< NewCompiledDataForCachedSfinew_compiled_data_for_cached_sfis_
 
State state_ = kNotStarted
 

Detailed Description

Definition at line 26 of file background-merge-task.h.

Member Enumeration Documentation

◆ State

Enumerator
kNotStarted 
kPendingBackgroundWork 
kPendingForegroundWork 
kDone 

Definition at line 92 of file background-merge-task.h.

Member Function Documentation

◆ BeginMergeInBackground()

void v8::internal::BackgroundMergeTask::BeginMergeInBackground ( LocalIsolate * isolate,
DirectHandle< Script > new_script )

Definition at line 2395 of file compiler.cc.

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

◆ CompleteMergeInForeground()

Handle< SharedFunctionInfo > v8::internal::BackgroundMergeTask::CompleteMergeInForeground ( Isolate * isolate,
DirectHandle< Script > new_script )

Definition at line 2511 of file compiler.cc.

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

◆ ForceGCDuringNextMergeForTesting()

void v8::internal::BackgroundMergeTask::ForceGCDuringNextMergeForTesting ( )
static

Definition at line 2391 of file compiler.cc.

◆ HasPendingBackgroundWork()

bool v8::internal::BackgroundMergeTask::HasPendingBackgroundWork ( ) const
inline

Definition at line 52 of file background-merge-task.h.

Here is the caller graph for this function:

◆ HasPendingForegroundWork()

bool v8::internal::BackgroundMergeTask::HasPendingForegroundWork ( ) const
inline

Definition at line 55 of file background-merge-task.h.

Here is the caller graph for this function:

◆ SetUpOnMainThread() [1/2]

void v8::internal::BackgroundMergeTask::SetUpOnMainThread ( Isolate * isolate,
DirectHandle< Script > cached_script )

Definition at line 2373 of file compiler.cc.

◆ SetUpOnMainThread() [2/2]

void v8::internal::BackgroundMergeTask::SetUpOnMainThread ( Isolate * isolate,
Handle< String > source_text,
const ScriptDetails & script_details,
LanguageMode language_mode )

Definition at line 2278 of file compiler.cc.

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

Member Data Documentation

◆ cached_script_

MaybeHandle<Script> v8::internal::BackgroundMergeTask::cached_script_
private

Definition at line 66 of file background-merge-task.h.

◆ new_compiled_data_for_cached_sfis_

std::vector<NewCompiledDataForCachedSfi> v8::internal::BackgroundMergeTask::new_compiled_data_for_cached_sfis_
private

Definition at line 90 of file background-merge-task.h.

◆ persistent_handles_

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

Definition at line 62 of file background-merge-task.h.

◆ state_

State v8::internal::BackgroundMergeTask::state_ = kNotStarted
private

Definition at line 98 of file background-merge-task.h.

◆ toplevel_sfi_from_cached_script_

MaybeHandle<SharedFunctionInfo> v8::internal::BackgroundMergeTask::toplevel_sfi_from_cached_script_
private

Definition at line 72 of file background-merge-task.h.

◆ used_new_sfis_

std::vector<Handle<SharedFunctionInfo> > v8::internal::BackgroundMergeTask::used_new_sfis_
private

Definition at line 79 of file background-merge-task.h.


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