diff options
Diffstat (limited to 'chromium/v8/src/wasm/wasm-engine.h')
-rw-r--r-- | chromium/v8/src/wasm/wasm-engine.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/v8/src/wasm/wasm-engine.h b/chromium/v8/src/wasm/wasm-engine.h index 2ae3e813685..69e6cdae6e6 100644 --- a/chromium/v8/src/wasm/wasm-engine.h +++ b/chromium/v8/src/wasm/wasm-engine.h @@ -62,7 +62,7 @@ class V8_EXPORT_PRIVATE WasmEngine { MaybeHandle<AsmWasmData> SyncCompileTranslatedAsmJs( Isolate* isolate, ErrorThrower* thrower, const ModuleWireBytes& bytes, Vector<const byte> asm_js_offset_table_bytes, - Handle<HeapNumber> uses_bitset); + Handle<HeapNumber> uses_bitset, LanguageMode language_mode); Handle<WasmModuleObject> FinalizeTranslatedAsmJs( Isolate* isolate, Handle<AsmWasmData> asm_wasm_data, Handle<Script> script); @@ -140,6 +140,11 @@ class V8_EXPORT_PRIVATE WasmEngine { // Isolate is currently running. bool HasRunningCompileJob(Isolate* isolate); + // Deletes all AsyncCompileJobs that belong to the given context. All + // compilation is aborted, no more callbacks will be triggered. This is used + // when a context is disposed, e.g. because of browser navigation. + void DeleteCompileJobsOnContext(Handle<Context> context); + // Deletes all AsyncCompileJobs that belong to the given Isolate. All // compilation is aborted, no more callbacks will be triggered. This is used // for tearing down an isolate, or to clean it up to be reused. |