| Index: runtime/vm/flow_graph_compiler_mips.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_compiler_mips.cc (revision 24431)
|
| +++ runtime/vm/flow_graph_compiler_mips.cc (working copy)
|
| @@ -1409,12 +1409,13 @@
|
| }
|
|
|
|
|
| -void FlowGraphCompiler::EmitStaticCall(const Function& function,
|
| - const Array& arguments_descriptor,
|
| - intptr_t argument_count,
|
| - intptr_t deopt_id,
|
| - intptr_t token_pos,
|
| - LocationSummary* locs) {
|
| +void FlowGraphCompiler::EmitOptimizedStaticCall(
|
| + const Function& function,
|
| + const Array& arguments_descriptor,
|
| + intptr_t argument_count,
|
| + intptr_t deopt_id,
|
| + intptr_t token_pos,
|
| + LocationSummary* locs) {
|
| __ TraceSimMsg("StaticCall");
|
| __ LoadObject(S4, arguments_descriptor);
|
| // Do not use the code from the function, but let the code be patched so that
|
| @@ -1422,7 +1423,7 @@
|
| GenerateDartCall(deopt_id,
|
| token_pos,
|
| &StubCode::CallStaticFunctionLabel(),
|
| - PcDescriptors::kFuncCall,
|
| + PcDescriptors::kOptStaticCall,
|
| locs);
|
| AddStaticCallTarget(function);
|
| __ Drop(argument_count);
|
| @@ -1447,7 +1448,7 @@
|
| GenerateDartCall(deopt_id,
|
| token_pos,
|
| &StubCode::UnoptimizedStaticCallLabel(),
|
| - PcDescriptors::kFuncCall,
|
| + PcDescriptors::kUnoptStaticCall,
|
| locs);
|
| __ Drop(argument_count);
|
| }
|
| @@ -1608,6 +1609,7 @@
|
| intptr_t deopt_id,
|
| intptr_t token_index,
|
| LocationSummary* locs) {
|
| + ASSERT(is_optimizing());
|
| ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0));
|
| Label match_found;
|
| const intptr_t len = ic_data.NumberOfChecks();
|
| @@ -1634,7 +1636,7 @@
|
| GenerateDartCall(deopt_id,
|
| token_index,
|
| &StubCode::CallStaticFunctionLabel(),
|
| - PcDescriptors::kFuncCall,
|
| + PcDescriptors::kOptStaticCall,
|
| locs);
|
| const Function& function = *sorted[i].target;
|
| AddStaticCallTarget(function);
|
|
|