Commit 3bbadd00 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[api] Remove deprecated wasm type and methods

They have been deprecated in v7.9, hence they can be removed in v8.0.

R=ulan@chromium.org
CC=​mstarzinger@chromium.org

Bug: v8:10021
Change-Id: Ic21c5ee5703b548ddcca2ffeba6c583715d3fbd3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1864947
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65237}
parent d03802c6
......@@ -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<WasmModuleObject> FromTransferrableModule(
Isolate* isolate, const TransferrableModule&);
/**
* Efficiently re-create a WasmModuleObject, without recompiling, from
* a CompiledWasmModule.
......
......@@ -7191,23 +7191,12 @@ MemorySpan<const uint8_t> CompiledWasmModule::GetWireBytesRef() {
return {bytes_vec.begin(), bytes_vec.size()};
}
WasmModuleObject::TransferrableModule
WasmModuleObject::GetTransferrableModule() {
return GetCompiledModule();
}
CompiledWasmModule WasmModuleObject::GetCompiledModule() {
i::Handle<i::WasmModuleObject> obj =
i::Handle<i::WasmModuleObject>::cast(Utils::OpenHandle(this));
return Utils::Convert(obj->shared_native_module());
}
MaybeLocal<WasmModuleObject> WasmModuleObject::FromTransferrableModule(
Isolate* isolate,
const WasmModuleObject::TransferrableModule& transferrable_module) {
return FromCompiledModule(isolate, transferrable_module);
}
MaybeLocal<WasmModuleObject> WasmModuleObject::FromCompiledModule(
Isolate* isolate, const CompiledWasmModule& compiled_module) {
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment