Index: runtime/vm/intermediate_language_mips.cc |
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc |
index 6446dddda33d0845a21ff4d0e94bdb53e2ca3d3e..f6cf6583333f5e8d18f8b966859bd7cfd989bb87 100644 |
--- a/runtime/vm/intermediate_language_mips.cc |
+++ b/runtime/vm/intermediate_language_mips.cc |
@@ -286,9 +286,11 @@ LocationSummary* ClosureCallInstr::MakeLocationSummary(Zone* zone, |
void ClosureCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
// Load arguments descriptor in S4. |
- int argument_count = ArgumentCount(); |
- const Array& arguments_descriptor = Array::ZoneHandle( |
- ArgumentsDescriptor::New(argument_count, argument_names())); |
+ const intptr_t ta_len = type_args_len(); |
+ const intptr_t argument_count = ArgumentCount(); // Includes type args. |
+ const Array& arguments_descriptor = |
+ Array::ZoneHandle(ArgumentsDescriptor::New( |
+ ta_len, argument_count - (ta_len > 0 ? 1 : 0), argument_names())); |
__ LoadObject(S4, arguments_descriptor); |
// Load closure function code in T2. |
@@ -1135,11 +1137,12 @@ LocationSummary* StringInterpolateInstr::MakeLocationSummary(Zone* zone, |
void StringInterpolateInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
Register array = locs()->in(0).reg(); |
__ Push(array); |
- const int kNumberOfArguments = 1; |
+ const intptr_t kTypeArgsLen = 0; |
+ const intptr_t kNumberOfArguments = 1; |
const Array& kNoArgumentNames = Object::null_array(); |
compiler->GenerateStaticCall(deopt_id(), token_pos(), CallFunction(), |
- kNumberOfArguments, kNoArgumentNames, locs(), |
- ICData::Handle()); |
+ kTypeArgsLen, kNumberOfArguments, |
+ kNoArgumentNames, locs(), ICData::Handle()); |
ASSERT(locs()->out(0).reg() == V0); |
} |
@@ -4682,9 +4685,10 @@ void DoubleToIntegerInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
ASSERT(ic_data.NumberOfChecksIs(1)); |
const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0)); |
+ const intptr_t kTypeArgsLen = 0; |
const intptr_t kNumberOfArguments = 1; |
compiler->GenerateStaticCall(deopt_id(), instance_call()->token_pos(), target, |
- kNumberOfArguments, |
+ kTypeArgsLen, kNumberOfArguments, |
Object::null_array(), // No argument names. |
locs(), ICData::Handle()); |
__ Bind(&done); |