| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| index bebd10a8060945cd50ea80c0fc03a08ede221206..16fef9202df3afab80905a0d62db7bab7e04cd87 100644
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -988,6 +988,7 @@ void JavaScriptFrame::Print(StringStream* accumulator,
|
|
|
| // Compute the number of locals and expression stack elements.
|
| int stack_locals_count = info.number_of_stack_slots();
|
| + int first_stack_index = info.first_stack_index();
|
| int heap_locals_count = info.number_of_context_slots();
|
| int expressions_count = ComputeExpressionsCount();
|
|
|
| @@ -999,8 +1000,8 @@ void JavaScriptFrame::Print(StringStream* accumulator,
|
| accumulator->Add(" var ");
|
| accumulator->PrintName(*info.stack_slot_name(i));
|
| accumulator->Add(" = ");
|
| - if (i < expressions_count) {
|
| - accumulator->Add("%o", GetExpression(i));
|
| + if (i + first_stack_index < expressions_count) {
|
| + accumulator->Add("%o", GetExpression(i + first_stack_index));
|
| } else {
|
| accumulator->Add("// no expression found - inconsistent frame?");
|
| }
|
|
|