Commit 2282dd09 authored by mtrofin's avatar mtrofin Committed by Commit bot

[wasm] remove deprecated deserialization API

We don't need the Deserialize API taking in a SerializedData anymore.

BUG=

Review-Url: https://chromiumcodereview.appspot.com/2436543004
Cr-Commit-Position: refs/heads/master@{#40473}
parent d2784b98
......@@ -3906,10 +3906,6 @@ class V8_EXPORT WasmCompiledModule : public Object {
// uncompiled bytes.
SerializedModule Serialize();
// TODO(mtrofin): Back-compat. Move to private once change lands in Chrome.
// The resulting wasm setup won't have its uncompiled bytes available.
static MaybeLocal<WasmCompiledModule> Deserialize(
Isolate* isolate, const SerializedModule& serialized_module);
// If possible, deserialize the module, otherwise compile it from the provided
// uncompiled bytes.
static MaybeLocal<WasmCompiledModule> DeserializeOrCompile(
......
......@@ -7213,13 +7213,6 @@ WasmCompiledModule::SerializedModule WasmCompiledModule::Serialize() {
return {std::unique_ptr<const uint8_t[]>(script_data->data()), size};
}
MaybeLocal<WasmCompiledModule> WasmCompiledModule::Deserialize(
Isolate* isolate,
const WasmCompiledModule::SerializedModule& serialized_module) {
return Deserialize(isolate,
{serialized_module.first.get(), serialized_module.second});
}
MaybeLocal<WasmCompiledModule> WasmCompiledModule::Deserialize(
Isolate* isolate,
const WasmCompiledModule::CallerOwnedBuffer& serialized_module) {
......
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