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

Unified Diff: src/wasm/wasm-debug.cc

Issue 2784453002: [wasm] Fix serialization after instantiation (Closed)
Patch Set: feedback Created 3 years, 9 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
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-debug.cc
diff --git a/src/wasm/wasm-debug.cc b/src/wasm/wasm-debug.cc
index 59ad5aaeab5fad6754b1313d3bfa1072a12bacfa..5ff89e1c7977255b506afbb15ed43ed42731aa25 100644
--- a/src/wasm/wasm-debug.cc
+++ b/src/wasm/wasm-debug.cc
@@ -94,10 +94,8 @@ class InterpreterHandle {
}
// Set pointer to globals storage.
- if (instance->has_globals_buffer()) {
- instance_.globals_start =
- reinterpret_cast<byte*>(instance->globals_buffer()->backing_store());
- }
+ instance_.globals_start =
+ debug_info->wasm_instance()->compiled_module()->GetGlobalsStartOrNull();
}
~InterpreterHandle() {
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698