diff options
Diffstat (limited to 'chromium/v8/src/wasm/module-compiler.h')
-rw-r--r-- | chromium/v8/src/wasm/module-compiler.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/chromium/v8/src/wasm/module-compiler.h b/chromium/v8/src/wasm/module-compiler.h index 04f0bd20427..cf5098f6130 100644 --- a/chromium/v8/src/wasm/module-compiler.h +++ b/chromium/v8/src/wasm/module-compiler.h @@ -37,16 +37,11 @@ class NativeModule; class WasmCode; struct WasmModule; -std::unique_ptr<NativeModule> CompileToNativeModule( +std::shared_ptr<NativeModule> CompileToNativeModule( Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower, std::shared_ptr<const WasmModule> module, const ModuleWireBytes& wire_bytes, Handle<FixedArray>* export_wrappers_out); -void CompileNativeModuleWithExplicitBoundsChecks(Isolate* isolate, - ErrorThrower* thrower, - const WasmModule* wasm_module, - NativeModule* native_module); - V8_EXPORT_PRIVATE void CompileJsToWasmWrappers(Isolate* isolate, const WasmModule* module, Handle<FixedArray> export_wrappers); @@ -56,8 +51,7 @@ V8_EXPORT_PRIVATE Handle<Script> CreateWasmScript( const std::string& source_map_url); // Triggered by the WasmCompileLazy builtin. -// Returns the instruction start of the compiled code object. -Address CompileLazy(Isolate*, NativeModule*, uint32_t func_index); +void CompileLazy(Isolate*, NativeModule*, uint32_t func_index); // Encapsulates all the state and steps of an asynchronous compilation. // An asynchronous compile job consists of a number of tasks that are executed @@ -110,7 +104,8 @@ class AsyncCompileJob { void FinishCompile(); - void AsyncCompileFailed(const WasmError&); + void DecodeFailed(const WasmError&); + void AsyncCompileFailed(); void AsyncCompileSucceeded(Handle<WasmModuleObject> result); @@ -155,7 +150,7 @@ class AsyncCompileJob { // Copy of the module wire bytes, moved into the {native_module_} on its // creation. std::unique_ptr<byte[]> bytes_copy_; - // Reference to the wire bytes (hold in {bytes_copy_} or as part of + // Reference to the wire bytes (held in {bytes_copy_} or as part of // {native_module_}). ModuleWireBytes wire_bytes_; Handle<Context> native_context_; |