diff --git a/include/v8.h b/include/v8.h index 2a9b1e95f6..d32b4e09b5 100644 --- a/include/v8.h +++ b/include/v8.h @@ -4672,29 +4672,6 @@ class V8_EXPORT WasmModuleObject : public Object { public: WasmModuleObject() = delete; - /** - * An opaque, native heap object for transferring wasm modules. It - * supports move semantics, and does not support copy semantics. - */ - using TransferrableModule V8_DEPRECATED("Use CompiledWasmModule directly") = - CompiledWasmModule; - - /** - * Get an in-memory, non-persistable, and context-independent (meaning, - * suitable for transfer to another Isolate and Context) representation - * of this wasm compiled module. - */ - V8_DEPRECATED("Use GetCompiledModule") - TransferrableModule GetTransferrableModule(); - - /** - * Efficiently re-create a WasmModuleObject, without recompiling, from - * a TransferrableModule. - */ - V8_DEPRECATED("Use FromCompiledModule") - static MaybeLocal FromTransferrableModule( - Isolate* isolate, const TransferrableModule&); - /** * Efficiently re-create a WasmModuleObject, without recompiling, from * a CompiledWasmModule. diff --git a/src/api/api.cc b/src/api/api.cc index 0f463ed36b..f64538ec1c 100644 --- a/src/api/api.cc +++ b/src/api/api.cc @@ -7191,23 +7191,12 @@ MemorySpan CompiledWasmModule::GetWireBytesRef() { return {bytes_vec.begin(), bytes_vec.size()}; } -WasmModuleObject::TransferrableModule -WasmModuleObject::GetTransferrableModule() { - return GetCompiledModule(); -} - CompiledWasmModule WasmModuleObject::GetCompiledModule() { i::Handle obj = i::Handle::cast(Utils::OpenHandle(this)); return Utils::Convert(obj->shared_native_module()); } -MaybeLocal WasmModuleObject::FromTransferrableModule( - Isolate* isolate, - const WasmModuleObject::TransferrableModule& transferrable_module) { - return FromCompiledModule(isolate, transferrable_module); -} - MaybeLocal WasmModuleObject::FromCompiledModule( Isolate* isolate, const CompiledWasmModule& compiled_module) { i::Isolate* i_isolate = reinterpret_cast(isolate);