| Index: src/arm/codegen-arm.cc
|
| diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc
|
| index c5a2b2bbaa461262d80bbd433aa3a8098998ae7a..f76bd358d4c93df8335766f5bd70efc55de6d319 100644
|
| --- a/src/arm/codegen-arm.cc
|
| +++ b/src/arm/codegen-arm.cc
|
| @@ -209,7 +209,7 @@ void CodeGenerator::Generate(CompilationInfo* info) {
|
| frame_->AllocateStackSlots();
|
|
|
| frame_->AssertIsSpilled();
|
| - int heap_slots = scope()->num_heap_slots();
|
| + int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
|
| if (heap_slots > 0) {
|
| // Allocate local context.
|
| // Get outer context and create a new context based on it.
|
|
|