![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <background-merge-task.h>
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< SharedFunctionInfo > | CompleteMergeInForeground (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< PersistentHandles > | persistent_handles_ |
MaybeHandle< Script > | cached_script_ |
MaybeHandle< SharedFunctionInfo > | toplevel_sfi_from_cached_script_ |
std::vector< Handle< SharedFunctionInfo > > | used_new_sfis_ |
std::vector< NewCompiledDataForCachedSfi > | new_compiled_data_for_cached_sfis_ |
State | state_ = kNotStarted |
Definition at line 26 of file background-merge-task.h.
|
private |
Enumerator | |
---|---|
kNotStarted | |
kPendingBackgroundWork | |
kPendingForegroundWork | |
kDone |
Definition at line 92 of file background-merge-task.h.
void v8::internal::BackgroundMergeTask::BeginMergeInBackground | ( | LocalIsolate * | isolate, |
DirectHandle< Script > | new_script ) |
Definition at line 2395 of file compiler.cc.
Handle< SharedFunctionInfo > v8::internal::BackgroundMergeTask::CompleteMergeInForeground | ( | Isolate * | isolate, |
DirectHandle< Script > | new_script ) |
Definition at line 2511 of file compiler.cc.
|
static |
Definition at line 2391 of file compiler.cc.
|
inline |
|
inline |
void v8::internal::BackgroundMergeTask::SetUpOnMainThread | ( | Isolate * | isolate, |
DirectHandle< Script > | cached_script ) |
Definition at line 2373 of file compiler.cc.
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.
|
private |
Definition at line 66 of file background-merge-task.h.
|
private |
Definition at line 90 of file background-merge-task.h.
|
private |
Definition at line 62 of file background-merge-task.h.
|
private |
Definition at line 98 of file background-merge-task.h.
|
private |
Definition at line 72 of file background-merge-task.h.
|
private |
Definition at line 79 of file background-merge-task.h.