From 2282dd09414b6b135991184ee379356caa4ff107 Mon Sep 17 00:00:00 2001 From: mtrofin Date: Thu, 20 Oct 2016 07:19:02 -0700 Subject: [PATCH] [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} --- include/v8.h | 4 ---- src/api.cc | 7 ------- 2 files changed, 11 deletions(-) diff --git a/include/v8.h b/include/v8.h index 655da2ab2b..380d64eb8c 100644 --- a/include/v8.h +++ b/include/v8.h @@ -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 Deserialize( - Isolate* isolate, const SerializedModule& serialized_module); // If possible, deserialize the module, otherwise compile it from the provided // uncompiled bytes. static MaybeLocal DeserializeOrCompile( diff --git a/src/api.cc b/src/api.cc index 3a6ff94a9c..55e7c87098 100644 --- a/src/api.cc +++ b/src/api.cc @@ -7213,13 +7213,6 @@ WasmCompiledModule::SerializedModule WasmCompiledModule::Serialize() { return {std::unique_ptr(script_data->data()), size}; } -MaybeLocal WasmCompiledModule::Deserialize( - Isolate* isolate, - const WasmCompiledModule::SerializedModule& serialized_module) { - return Deserialize(isolate, - {serialized_module.first.get(), serialized_module.second}); -} - MaybeLocal WasmCompiledModule::Deserialize( Isolate* isolate, const WasmCompiledModule::CallerOwnedBuffer& serialized_module) {