Index: src/ppc/lithium-ppc.h |
diff --git a/src/ppc/lithium-ppc.h b/src/ppc/lithium-ppc.h |
index 8f596e2351f1833bd43caf1956cb3d8abba4b034..853a6240d03ed3d7508491a375b542b51e9ae3c5 100644 |
--- a/src/ppc/lithium-ppc.h |
+++ b/src/ppc/lithium-ppc.h |
@@ -1777,8 +1777,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); |
} |
@@ -1788,6 +1792,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") |