| Index: src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| index 65e922848bc859d09c9499c5409515c9614ffcee..e2381af1446fa1a6689869193390638a3895d019 100644
|
| --- a/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| @@ -147,7 +147,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 a1.
|
|
|