Index: runtime/vm/flow_graph_type_propagator.cc |
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc |
index 92a4d78ae6827d40867f056abe5b192822238939..7e727ebd4831a51365a07d8513c742fba41e790f 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -297,7 +297,7 @@ void FlowGraphTypePropagator::VisitInstanceCall(InstanceCallInstr* instr) { |
void FlowGraphTypePropagator::VisitPolymorphicInstanceCall( |
PolymorphicInstanceCallInstr* instr) { |
if (instr->instance_call()->has_unique_selector()) { |
- SetCid(instr->ArgumentAt(0), instr->ic_data().GetReceiverClassIdAt(0)); |
+ SetCid(instr->ArgumentAt(0), instr->targets().MonomorphicReceiverCid()); |
return; |
} |
CheckNonNullSelector(instr, instr->ArgumentAt(0), |
@@ -1024,8 +1024,8 @@ CompileType AllocateUninitializedContextInstr::ComputeType() const { |
CompileType PolymorphicInstanceCallInstr::ComputeType() const { |
- if (!HasSingleRecognizedTarget()) return CompileType::Dynamic(); |
- const Function& target = Function::Handle(ic_data().GetTargetAt(0)); |
+ if (!targets().HasSingleRecognizedTarget()) return CompileType::Dynamic(); |
+ const Function& target = *targets_[0].target; |
return (target.recognized_kind() != MethodRecognizer::kUnknown) |
? CompileType::FromCid(MethodRecognizer::ResultCid(target)) |
: CompileType::Dynamic(); |