Index: src/arm64/lithium-arm64.h |
diff --git a/src/arm64/lithium-arm64.h b/src/arm64/lithium-arm64.h |
index 56b20db5df6c1b9ff8c4d8b58612f4d176f28ce1..4507c075917eba7756a53960499525255952cc37 100644 |
--- a/src/arm64/lithium-arm64.h |
+++ b/src/arm64/lithium-arm64.h |
@@ -1532,8 +1532,12 @@ class LCallWithDescriptor final : public LTemplateResultInstruction<1> { |
LCallWithDescriptor(CallInterfaceDescriptor descriptor, |
const ZoneList<LOperand*>& operands, Zone* zone) |
: descriptor_(descriptor), |
- inputs_(descriptor.GetRegisterParameterCount() + 1, zone) { |
- DCHECK(descriptor.GetRegisterParameterCount() + 1 == operands.length()); |
+ inputs_(descriptor.GetRegisterParameterCount() + |
+ kImplicitRegisterParameterCount, |
+ zone) { |
+ DCHECK(descriptor.GetRegisterParameterCount() + |
+ kImplicitRegisterParameterCount == |
+ operands.length()); |
inputs_.AddAll(operands, zone); |
} |
@@ -1543,6 +1547,10 @@ class LCallWithDescriptor final : public LTemplateResultInstruction<1> { |
DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
+ // The target and context are passed as implicit parameters that are not |
+ // explicitly listed in the descriptor. |
+ static const int kImplicitRegisterParameterCount = 2; |
+ |
private: |
DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |