Index: src/crankshaft/x87/lithium-codegen-x87.h |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.h b/src/crankshaft/x87/lithium-codegen-x87.h |
index 634634488366f842daa19c9a6ac09b4b7c40863a..0cfbf7038891e4918e88b5d94c242030b034aa02 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.h |
+++ b/src/crankshaft/x87/lithium-codegen-x87.h |
@@ -50,10 +50,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(); |
@@ -165,7 +163,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()); } |