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

Unified Diff: src/frames.cc

Issue 2284683005: [wasm] Use weak reference for wasm deopt data. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | src/runtime/runtime-wasm.cc » ('j') | src/wasm/wasm-module.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index f0fa58d27bca016dc439e0471e5aa690fe3b535f..117f63ce3f471ee777b933f236e24b6fb1eb9a85 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1461,9 +1461,8 @@ Address WasmFrame::GetCallerStackPointer() const {
}
Object* WasmFrame::wasm_obj() const {
- FixedArray* deopt_data = LookupCode()->deoptimization_data();
- DCHECK(deopt_data->length() == 2);
- return deopt_data->get(0);
+ return wasm::GetOwningWasmInstance(*isolate()->factory()->undefined_value(),
+ LookupCode());
}
uint32_t WasmFrame::function_index() const {
« no previous file with comments | « no previous file | src/runtime/runtime-wasm.cc » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698