Index: src/crankshaft/ia32/lithium-codegen-ia32.h |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.h b/src/crankshaft/ia32/lithium-codegen-ia32.h |
index 06a3e10bf2668b0304a347f230087c153b2274f0..589ef2e05e557aa0b34f292a6b43af94d409fed3 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.h |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.h |
@@ -47,10 +47,8 @@ class LCodeGen: public LCodeGenBase { |
} |
bool NeedsEagerFrame() const { |
- return GetStackSlotCount() > 0 || |
- info()->is_non_deferred_calling() || |
- !info()->IsStub() || |
- info()->requires_frame(); |
+ return HasAllocatedStackSlots() || info()->is_non_deferred_calling() || |
+ !info()->IsStub() || info()->requires_frame(); |
} |
bool NeedsDeferredFrame() const { |
return !NeedsEagerFrame() && info()->is_deferred_calling(); |
@@ -132,7 +130,13 @@ class LCodeGen: public LCodeGenBase { |
Register temporary, |
Register temporary2); |
- int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
+ bool HasAllocatedStackSlots() const { |
+ return chunk()->HasAllocatedStackSlots(); |
+ } |
+ int GetStackSlotCount() const { return chunk()->GetSpillSlotCount(); } |
+ int GetTotalFrameSlotCount() const { |
+ return chunk()->GetTotalFrameSlotCount(); |
+ } |
void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |