Commit e874579f authored by ben's avatar ben Committed by Commit bot

Fix DCHECK in ScopeInfo::Print().

Review URL: https://codereview.chromium.org/1369913002

Cr-Commit-Position: refs/heads/master@{#30978}
parent 0b48b2a8
...@@ -813,19 +813,15 @@ void ScopeInfo::Print() { ...@@ -813,19 +813,15 @@ void ScopeInfo::Print() {
} }
PrintF("{"); PrintF("{");
PrintList("parameters", 0, if (length() > 0) {
ParameterEntriesIndex(), PrintList("parameters", 0, ParameterEntriesIndex(),
ParameterEntriesIndex() + ParameterCount(), ParameterEntriesIndex() + ParameterCount(), this);
this); PrintList("stack slots", 0, StackLocalEntriesIndex(),
PrintList("stack slots", 0, StackLocalEntriesIndex() + StackLocalCount(), this);
StackLocalEntriesIndex(), PrintList("context slots", Context::MIN_CONTEXT_SLOTS,
StackLocalEntriesIndex() + StackLocalCount(), ContextLocalNameEntriesIndex(),
this); ContextLocalNameEntriesIndex() + ContextLocalCount(), this);
PrintList("context slots", }
Context::MIN_CONTEXT_SLOTS,
ContextLocalNameEntriesIndex(),
ContextLocalNameEntriesIndex() + ContextLocalCount(),
this);
PrintF("}\n"); PrintF("}\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment