Index: src/crankshaft/arm/lithium-codegen-arm.h |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.h b/src/crankshaft/arm/lithium-codegen-arm.h |
index 67925ccdf63c0c5ac6aef4d3c8d026733c19e6c3..24a083ff2f201f6a64d44520dfa4b06aa34d19f4 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.h |
+++ b/src/crankshaft/arm/lithium-codegen-arm.h |
@@ -44,8 +44,10 @@ |
} |
bool NeedsEagerFrame() const { |
- return HasAllocatedStackSlots() || info()->is_non_deferred_calling() || |
- !info()->IsStub() || info()->requires_frame(); |
+ return GetStackSlotCount() > 0 || |
+ info()->is_non_deferred_calling() || |
+ !info()->IsStub() || |
+ info()->requires_frame(); |
} |
bool NeedsDeferredFrame() const { |
return !NeedsEagerFrame() && info()->is_deferred_calling(); |
@@ -151,13 +153,7 @@ |
Register temporary, |
Register temporary2); |
- bool HasAllocatedStackSlots() const { |
- return chunk()->HasAllocatedStackSlots(); |
- } |
- int GetStackSlotCount() const { return chunk()->GetSpillSlotCount(); } |
- int GetTotalFrameSlotCount() const { |
- return chunk()->GetTotalFrameSlotCount(); |
- } |
+ int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |