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

Unified Diff: src/debug/mirrors.js

Issue 2413693003: [wasm] Stack inspection support for asm.js frames (Closed)
Patch Set: Created 4 years, 2 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 | « src/debug/debug-frames.cc ('k') | src/frames.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index 165e1724492f106896475d3153227c9a1a4bf748..e5801a46beac853d33e69b75a3a3d965cb595f64 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -1878,6 +1878,15 @@ FrameMirror.prototype.func = function() {
};
+FrameMirror.prototype.script = function() {
+ if (!this.script_) {
+ this.script_ = MakeMirror(this.details_.script());
+ }
+
+ return this.script_;
+}
+
+
FrameMirror.prototype.receiver = function() {
return MakeMirror(this.details_.receiver());
};
@@ -1954,12 +1963,9 @@ FrameMirror.prototype.sourcePosition = function() {
FrameMirror.prototype.sourceLocation = function() {
- var func = this.func();
- if (func.resolved()) {
- var script = func.script();
- if (script) {
- return script.locationFromPosition(this.sourcePosition(), true);
- }
+ var script = this.script();
+ if (script) {
+ return script.locationFromPosition(this.sourcePosition(), true);
}
};
« no previous file with comments | « src/debug/debug-frames.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698