Index: src/crankshaft/x64/lithium-codegen-x64.h |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.h b/src/crankshaft/x64/lithium-codegen-x64.h |
index 873a3dd1acc51be9df77178fdd9c9b823309927c..6fb918bf84dd33db373a76f16c0781bb9ae02f8a 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.h |
+++ b/src/crankshaft/x64/lithium-codegen-x64.h |
@@ -45,8 +45,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(); |
@@ -126,13 +128,7 @@ |
Register temporary, |
Register scratch); |
- 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()); } |