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

Unified Diff: src/scopeinfo.cc

Issue 1369913002: Fix DCHECK in ScopeInfo::Print(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopeinfo.cc
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc
index 75938c355987087b69179a3875014fc62fcc7797..732908a9e64b06dcc2a3920be0a15d74ece82b35 100644
--- a/src/scopeinfo.cc
+++ b/src/scopeinfo.cc
@@ -813,19 +813,15 @@ void ScopeInfo::Print() {
}
PrintF("{");
- PrintList("parameters", 0,
- ParameterEntriesIndex(),
- ParameterEntriesIndex() + ParameterCount(),
- this);
- PrintList("stack slots", 0,
- StackLocalEntriesIndex(),
- StackLocalEntriesIndex() + StackLocalCount(),
- this);
- PrintList("context slots",
- Context::MIN_CONTEXT_SLOTS,
- ContextLocalNameEntriesIndex(),
- ContextLocalNameEntriesIndex() + ContextLocalCount(),
- this);
+ if (length() > 0) {
+ PrintList("parameters", 0, ParameterEntriesIndex(),
+ ParameterEntriesIndex() + ParameterCount(), this);
+ PrintList("stack slots", 0, StackLocalEntriesIndex(),
+ StackLocalEntriesIndex() + StackLocalCount(), this);
+ PrintList("context slots", Context::MIN_CONTEXT_SLOTS,
+ ContextLocalNameEntriesIndex(),
+ ContextLocalNameEntriesIndex() + ContextLocalCount(), this);
+ }
PrintF("}\n");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698