Index: src/crankshaft/mips64/lithium-codegen-mips64.h |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.h b/src/crankshaft/mips64/lithium-codegen-mips64.h |
index 2f1cefae76878591abc1fdfa82cc648c991b0ba6..efadb0f26bcebf485d4a39f9257bb3a6415e7f04 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.h |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.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(); |
@@ -153,13 +155,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()); } |