Index: src/crankshaft/arm64/lithium-codegen-arm64.h |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.h b/src/crankshaft/arm64/lithium-codegen-arm64.h |
index cf7de10394e01940752493c32fb875d4d98f59dc..18856da15489056f49ae43bab074efbd02ececc2 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.h |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.h |
@@ -49,8 +49,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(); |
@@ -251,13 +253,7 @@ |
void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
Safepoint::DeoptMode mode); |
- 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()); } |