| 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 18856da15489056f49ae43bab074efbd02ececc2..cf7de10394e01940752493c32fb875d4d98f59dc 100644
|
| --- a/src/crankshaft/arm64/lithium-codegen-arm64.h
|
| +++ b/src/crankshaft/arm64/lithium-codegen-arm64.h
|
| @@ -49,10 +49,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();
|
| @@ -253,7 +251,13 @@ class LCodeGen: public LCodeGenBase {
|
| void RegisterEnvironmentForDeoptimization(LEnvironment* environment,
|
| Safepoint::DeoptMode mode);
|
|
|
| - 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()); }
|
|
|
|
|