diff options
Diffstat (limited to 'deps/v8/include/v8-wasm.h')
-rw-r--r-- | deps/v8/include/v8-wasm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/include/v8-wasm.h b/deps/v8/include/v8-wasm.h index 612ed2fae4..59b2a69b12 100644 --- a/deps/v8/include/v8-wasm.h +++ b/deps/v8/include/v8-wasm.h @@ -103,6 +103,12 @@ class V8_EXPORT WasmModuleObject : public Object { */ CompiledWasmModule GetCompiledModule(); + /** + * Compile a Wasm module from the provided uncompiled bytes. + */ + static MaybeLocal<WasmModuleObject> Compile( + Isolate* isolate, MemorySpan<const uint8_t> wire_bytes); + V8_INLINE static WasmModuleObject* Cast(Value* value) { #ifdef V8_ENABLE_CHECKS CheckCast(value); |