Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 244363367165d9b9056492c5f56f4d7d55653cb1..5ff00315547e661b147deddc7d1b7b6a646a2651 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -168,11 +168,11 @@ void LCodeGen::DoPrologue(LPrologue* instr) { |
Comment(";;; Prologue begin"); |
// Possibly allocate a local context. |
- if (info_->num_heap_slots() > 0) { |
+ if (info_->scope()->num_heap_slots() > 0) { |
Comment(";;; Allocate local context"); |
bool need_write_barrier = true; |
// Argument to NewContext is the function, which is still in rdi. |
- int slots = info_->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; |
+ int slots = info_->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; |
Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; |
if (info()->scope()->is_script_scope()) { |
__ Push(rdi); |