| Index: runtime/vm/intermediate_language.cc
|
| diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
|
| index 373aa4837298944ff54ad66012e352e8488f9196..e0c705c5dc1ec4059e17e50053ea7000f86ce096 100644
|
| --- a/runtime/vm/intermediate_language.cc
|
| +++ b/runtime/vm/intermediate_language.cc
|
| @@ -24,6 +24,7 @@
|
| #include "vm/scopes.h"
|
| #include "vm/stub_code.h"
|
| #include "vm/symbols.h"
|
| +#include "vm/code_statistics.h"
|
|
|
| #include "vm/il_printer.h"
|
|
|
| @@ -3149,12 +3150,16 @@ bool PolymorphicInstanceCallInstr::HasSingleRecognizedTarget() const {
|
| void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| ASSERT(ic_data().NumArgsTested() == 1);
|
| if (!with_checks()) {
|
| + compiler->SpecialStatsBegin(
|
| + CombinedCodeStatistics::kPolymorphicInstanceCallAsStaticCall);
|
| ASSERT(ic_data().HasOneTarget());
|
| const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
|
| compiler->GenerateStaticCall(deopt_id(), instance_call()->token_pos(),
|
| target, instance_call()->ArgumentCount(),
|
| instance_call()->argument_names(), locs(),
|
| ICData::Handle());
|
| + compiler->SpecialStatsEnd(
|
| + CombinedCodeStatistics::kPolymorphicInstanceCallAsStaticCall);
|
| return;
|
| }
|
|
|
|
|