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

Unified Diff: src/mirror-debugger.js

Issue 203463011: Add option to run ScopeIterator faster giving up nested scope chain. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: debug test was failing Created 6 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/runtime.h » ('j') | src/runtime.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mirror-debugger.js
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js
index f288123bcafad8ea3ea01b9f626ebe8a7c612d32..b07d1fef7a369e92b149f5ff7c72e2ab3c47ee71 100644
--- a/src/mirror-debugger.js
+++ b/src/mirror-debugger.js
@@ -1692,10 +1692,11 @@ FrameMirror.prototype.scope = function(index) {
};
-FrameMirror.prototype.allScopes = function() {
+FrameMirror.prototype.allScopes = function(opt_ignore_nested_scopes) {
var scopeDetails = %GetAllScopesDetails(this.break_id_,
this.details_.frameId(),
- this.details_.inlinedFrameIndex());
+ this.details_.inlinedFrameIndex(),
+ !!opt_ignore_nested_scopes);
var result = [];
for (var i = 0; i < scopeDetails.length; ++i) {
result.push(new ScopeMirror(this, UNDEFINED, i, scopeDetails[i]));
« no previous file with comments | « no previous file | src/runtime.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698