Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index df459fc23f0d1e8bd9d8c68aca212fadf2dc4628..fceb16353a5815b13f3abcd72dfd284e35c5960c 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -165,11 +165,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 edi. |
- 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(edi); |