Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: src/wasm/wasm-module.h

Issue 2205973003: [wasm] Serialization/Deserialization of compiled module (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix silly bug Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/wasm/wasm-module.h
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
index 376a2448fc32819e024b7bf1405dbac0331c13b2..21409c1b4fee23c478145a4d0d00b3c9b484844e 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -9,6 +9,8 @@
#include "src/api.h"
#include "src/handles.h"
+#include "src/parsing/preparse-data.h"
+
#include "src/wasm/wasm-opcodes.h"
#include "src/wasm/wasm-result.h"
@@ -395,6 +397,14 @@ Handle<FixedArray> BuildFunctionTable(Isolate* isolate, uint32_t index,
void PopulateFunctionTable(Handle<FixedArray> table, uint32_t table_size,
const std::vector<Handle<Code>>* code_table);
+ScriptData* SerializeWasmCompiledModule(Isolate* isolate,
+ Handle<FixedArray> compiled_module);
+
+MaybeHandle<FixedArray> DeserializeWasmCompiledModule(Isolate* isolate,
+ ScriptData* data);
+Handle<JSObject> CreateCompiledModuleObject(Isolate* isolate,
+ Handle<FixedArray> compiled_module);
+
namespace testing {
// Decode, verify, and run the function labeled "main" in the

Powered by Google App Engine
This is Rietveld 408576698