Index: src/crankshaft/mips/lithium-codegen-mips.h |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.h b/src/crankshaft/mips/lithium-codegen-mips.h |
index 160ab9a665beec5c1cf3550b1b80c9b774e040ff..df72b2e93cbe97d3ee083d054d2c97964d1c6ec2 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.h |
+++ b/src/crankshaft/mips/lithium-codegen-mips.h |
@@ -44,10 +44,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(); |
@@ -153,7 +151,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()); } |