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

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

Issue 2008043006: [wasm] separate snapshot-able stages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@refactoring
Patch Set: Created 4 years, 7 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 8fb1198787eed07352d54922400bcc03e9ea1cd9..71cbc3bd143245fa4b45af064b88f0161d7361a0 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -231,7 +231,11 @@ struct WasmModuleInstance {
byte* globals_start; // start of the globals area.
explicit WasmModuleInstance(const WasmModule* m)
- : module(m), mem_start(nullptr), mem_size(0), globals_start(nullptr) {}
+ : module(m),
+ function_code(m->functions.size()),
+ mem_start(nullptr),
+ mem_size(0),
+ globals_start(nullptr) {}
};
// forward declaration.
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-module.cc » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698