| Index: src/mips64/lithium-mips64.h
|
| diff --git a/src/mips64/lithium-mips64.h b/src/mips64/lithium-mips64.h
|
| index ff0e7efa27d0323e39320fff399bd5a8538cfbd6..cb1f56ecc6b08c610d712f3bae8922ab58e269c4 100644
|
| --- a/src/mips64/lithium-mips64.h
|
| +++ b/src/mips64/lithium-mips64.h
|
| @@ -1872,8 +1872,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);
|
| }
|
|
|
| @@ -1883,6 +1887,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")
|
|
|
|
|