Index: runtime/vm/flow_graph_optimizer.cc |
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc |
index c51d95235459050703779b2154213b14c5bcb81b..2db078f4b423afbaee61bad65e8a6e18f191df67 100644 |
--- a/runtime/vm/flow_graph_optimizer.cc |
+++ b/runtime/vm/flow_graph_optimizer.cc |
@@ -1231,7 +1231,7 @@ bool FlowGraphOptimizer::InlineSetIndexed( |
call->GetBlock()->try_index()); |
(*entry)->InheritDeoptTarget(Z, call); |
Instruction* cursor = *entry; |
- if (I->TypeChecksEnabled()) { |
+ if (I->flags().type_checks()) { |
// Only type check for the value. A type check for the index is not |
// needed here because we insert a deoptimizing smi-check for the case |
// the index is not a smi. |
@@ -4570,7 +4570,7 @@ bool FlowGraphOptimizer::TryInlineInstanceSetter(InstanceCallInstr* instr, |
const ICData& unary_ic_data) { |
ASSERT((unary_ic_data.NumberOfChecks() > 0) && |
(unary_ic_data.NumArgsTested() == 1)); |
- if (I->TypeChecksEnabled()) { |
+ if (I->flags().type_checks()) { |
// Checked mode setters are inlined like normal methods by conventional |
// inlining. |
return false; |