[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}
This commit is contained in:
parent
d2784b985f
commit
2282dd0941
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user