Index: src/x87/full-codegen-x87.cc |
diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc |
index cb4173f8039504de5ce752a25ede0fdc465da7a5..5b3f8e0ee7601f45532b9f431f4864c02e08f1df 100644 |
--- a/src/x87/full-codegen-x87.cc |
+++ b/src/x87/full-codegen-x87.cc |
@@ -184,17 +184,17 @@ void FullCodeGenerator::Generate() { |
bool function_in_register = true; |
// Possibly allocate a local context. |
- int heap_slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; |
- if (heap_slots > 0) { |
+ if (info->scope()->num_heap_slots() > 0) { |
Comment cmnt(masm_, "[ Allocate context"); |
bool need_write_barrier = true; |
+ int slots = info->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; |
// Argument to NewContext is the function, which is still in edi. |
if (info->scope()->is_script_scope()) { |
__ push(edi); |
__ Push(info->scope()->GetScopeInfo(info->isolate())); |
__ CallRuntime(Runtime::kNewScriptContext, 2); |
- } else if (heap_slots <= FastNewContextStub::kMaximumSlots) { |
- FastNewContextStub stub(isolate(), heap_slots); |
+ } else if (slots <= FastNewContextStub::kMaximumSlots) { |
+ FastNewContextStub stub(isolate(), slots); |
__ CallStub(&stub); |
// Result of FastNewContextStub is always in new space. |
need_write_barrier = false; |