| Index: runtime/vm/aot_optimizer.cc
|
| diff --git a/runtime/vm/aot_optimizer.cc b/runtime/vm/aot_optimizer.cc
|
| index 025784e6fb74c927addba3d9e8c984b203d0dc8b..62e2cdc058fd6ca79a9484b3ee55394b84d89f2e 100644
|
| --- a/runtime/vm/aot_optimizer.cc
|
| +++ b/runtime/vm/aot_optimizer.cc
|
| @@ -1631,6 +1631,7 @@ bool AotOptimizer::TryInlineInstanceGetter(InstanceCallInstr* call) {
|
|
|
| bool AotOptimizer::TryReplaceInstanceCallWithInline(
|
| InstanceCallInstr* call) {
|
| + if (!IsAllowedForInlining(call->deopt_id())) return false;
|
| Function& target = Function::Handle(Z);
|
| GrowableArray<intptr_t> class_ids;
|
| call->ic_data()->GetCheckAt(0, &class_ids, &target);
|
| @@ -2347,6 +2348,10 @@ void AotOptimizer::VisitInstanceCall(InstanceCallInstr* instr) {
|
| TryReplaceWithUnaryOp(instr, op_kind)) {
|
| return;
|
| }
|
| +
|
| + if (TryInlineInstanceMethod(instr)) {
|
| + return;
|
| + }
|
| }
|
|
|
| bool has_one_target =
|
|
|