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

Unified Diff: src/frames.cc

Issue 2493823003: [wasm] Allocate a single script per wasm 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 | « src/debug/debug.js ('k') | src/inspector/v8-debugger.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 6efe1f0c440b9e92ffe04986d5080d70805d00d7..3b730278dbfc607d1ce0f5c61073eee688009328 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1517,11 +1517,7 @@ uint32_t WasmFrame::function_index() const {
Script* WasmFrame::script() const {
Handle<JSObject> instance(JSObject::cast(wasm_instance()), isolate());
- if (wasm::WasmIsAsmJs(*instance, isolate())) {
- return *wasm::GetAsmWasmScript(instance);
- }
- Handle<WasmDebugInfo> debug_info = wasm::GetDebugInfo(instance);
- return WasmDebugInfo::GetFunctionScript(debug_info, function_index());
+ return *wasm::GetScript(instance);
}
int WasmFrame::position() const {
« no previous file with comments | « src/debug/debug.js ('k') | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698