diff options
Diffstat (limited to 'deps/v8/src/codegen/background-merge-task.h')
-rw-r--r-- | deps/v8/src/codegen/background-merge-task.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/v8/src/codegen/background-merge-task.h b/deps/v8/src/codegen/background-merge-task.h index c80624cd59..ad90ed36a3 100644 --- a/deps/v8/src/codegen/background-merge-task.h +++ b/deps/v8/src/codegen/background-merge-task.h @@ -25,14 +25,17 @@ struct ScriptDetails; // compilation cache. class V8_EXPORT_PRIVATE BackgroundMergeTask { public: - ~BackgroundMergeTask(); - // Step 1: on the main thread, check whether the Isolate compilation cache // contains the script. void SetUpOnMainThread(Isolate* isolate, Handle<String> source_text, const ScriptDetails& script_details, LanguageMode language_mode); + // Alternative step 1: on the main thread, if the caller has already looked up + // the script in the Isolate compilation cache, set up the necessary + // persistent data for the background merge. + void SetUpOnMainThread(Isolate* isolate, Handle<Script> cached_script); + // Step 2: on the background thread, update pointers in the new Script's // object graph to point to corresponding objects from the cached Script where // appropriate. May only be called if HasPendingBackgroundWork returned true. |