| Index: src/crankshaft/arm/lithium-codegen-arm.cc
|
| diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc
|
| index 072215d5fc8b4711e31095bc14d1e996fb41f528..b318169f4950342fe404d4d9b26fa18225e2a966 100644
|
| --- a/src/crankshaft/arm/lithium-codegen-arm.cc
|
| +++ b/src/crankshaft/arm/lithium-codegen-arm.cc
|
| @@ -152,7 +152,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) {
|
| Comment(";;; Prologue begin");
|
|
|
| // Possibly allocate a local context.
|
| - if (info()->scope()->num_heap_slots() > 0) {
|
| + if (info()->scope()->NeedsContext()) {
|
| Comment(";;; Allocate local context");
|
| bool need_write_barrier = true;
|
| // Argument to NewContext is the function, which is in r1.
|
|
|