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

Unified Diff: src/frames.cc

Issue 2522953002: [wasm] Move asm.js offset table to compiled module (Closed)
Patch Set: rebase Created 4 years, 1 month 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/messages.cc » ('j') | no next file with comments »
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 5ecffaf7b10f1b8e6dcba021a98c901e3460c6d4..b8abe823f53a946bd5c64d4f86d363d778957930 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1532,9 +1532,12 @@ Script* WasmFrame::script() const {
int WasmFrame::position() const {
int position = StandardFrame::position();
if (wasm::WasmIsAsmJs(wasm_instance(), isolate())) {
- Handle<JSObject> instance(JSObject::cast(wasm_instance()), isolate());
- position =
- wasm::GetAsmWasmSourcePosition(instance, function_index(), position);
+ Handle<WasmCompiledModule> compiled_module(
+ WasmInstanceObject::cast(wasm_instance())->get_compiled_module(),
+ isolate());
+ DCHECK_LE(0, position);
+ position = WasmCompiledModule::GetAsmJsSourcePosition(
+ compiled_module, function_index(), static_cast<uint32_t>(position));
}
return position;
}
« no previous file with comments | « no previous file | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698