Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 3b4bd90120e9bb845ce03c6227adb0c8e3c5ee70..e9e1956e55a4d98b04eff49e2b970c719f4b8244 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -176,7 +176,7 @@ void FullCodeGenerator::Generate() { |
bool function_in_register_a1 = true; |
// Possibly allocate a local context. |
- if (info->scope()->num_heap_slots() > 0) { |
+ if (info->scope()->NeedsContext()) { |
Comment cmnt(masm_, "[ Allocate context"); |
// Argument to NewContext is the function, which is still in a1. |
bool need_write_barrier = true; |
@@ -1208,7 +1208,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, |
Register temp = a4; |
for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { |
- if (s->num_heap_slots() > 0) { |
+ if (s->NeedsContext()) { |
if (s->calls_sloppy_eval()) { |
// Check that extension is "the hole". |
__ ld(temp, ContextMemOperand(context, Context::EXTENSION_INDEX)); |