Index: runtime/vm/flow_graph_builder.cc |
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc |
index 680ea93f4364c32353ee68b6e6439508dd37b958..23015f4b0140c9767ea4b27208ff09f7d2e4677b 100644 |
--- a/runtime/vm/flow_graph_builder.cc |
+++ b/runtime/vm/flow_graph_builder.cc |
@@ -993,7 +993,7 @@ BlockEntryInstr* TestGraphVisitor::CreateFalseSuccessor() const { |
void TestGraphVisitor::ReturnValue(Value* value) { |
Isolate* isolate = Isolate::Current(); |
- if (isolate->flags().type_checks() || isolate->flags().asserts()) { |
+ if (isolate->type_checks() || isolate->asserts()) { |
value = Bind(new(Z) AssertBooleanInstr(condition_token_pos(), value)); |
} |
Value* constant_true = Bind(new(Z) ConstantInstr(Bool::True())); |
@@ -1028,7 +1028,7 @@ void TestGraphVisitor::MergeBranchWithComparison(ComparisonInstr* comp) { |
false)); // No number check. |
} else { |
branch = new(Z) BranchInstr(comp); |
- branch->set_is_checked(Isolate::Current()->flags().type_checks()); |
+ branch->set_is_checked(Isolate::Current()->type_checks()); |
} |
AddInstruction(branch); |
CloseFragment(); |
@@ -1038,7 +1038,7 @@ void TestGraphVisitor::MergeBranchWithComparison(ComparisonInstr* comp) { |
void TestGraphVisitor::MergeBranchWithNegate(BooleanNegateInstr* neg) { |
- ASSERT(!Isolate::Current()->flags().type_checks()); |
+ ASSERT(!Isolate::Current()->type_checks()); |
Value* constant_true = Bind(new(Z) ConstantInstr(Bool::True())); |
StrictCompareInstr* comp = |
new(Z) StrictCompareInstr(condition_token_pos(), |
@@ -1060,7 +1060,7 @@ void TestGraphVisitor::ReturnDefinition(Definition* definition) { |
MergeBranchWithComparison(comp); |
return; |
} |
- if (!Isolate::Current()->flags().type_checks()) { |
+ if (!Isolate::Current()->type_checks()) { |
BooleanNegateInstr* neg = definition->AsBooleanNegate(); |
if (neg != NULL) { |
MergeBranchWithNegate(neg); |
@@ -1153,7 +1153,7 @@ void EffectGraphVisitor::VisitReturnNode(ReturnNode* node) { |
return_value = Bind(BuildLoadLocal(*temp, node->token_pos())); |
} |
- if (Isolate::Current()->flags().type_checks()) { |
+ if (Isolate::Current()->type_checks()) { |
const bool is_implicit_dynamic_getter = |
(!function.is_static() && |
((function.kind() == RawFunction::kImplicitGetter) || |
@@ -1354,7 +1354,7 @@ void EffectGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) { |
node->left()->Visit(&for_left); |
EffectGraphVisitor empty(owner()); |
Isolate* isolate = Isolate::Current(); |
- if (isolate->flags().type_checks() || isolate->flags().asserts()) { |
+ if (isolate->type_checks() || isolate->asserts()) { |
ValueGraphVisitor for_right(owner()); |
node->right()->Visit(&for_right); |
Value* right_value = for_right.value(); |
@@ -1421,7 +1421,7 @@ void ValueGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) { |
node->right()->Visit(&for_right); |
Value* right_value = for_right.value(); |
Isolate* isolate = Isolate::Current(); |
- if (isolate->flags().type_checks() || isolate->flags().asserts()) { |
+ if (isolate->type_checks() || isolate->asserts()) { |
right_value = |
for_right.Bind(new(Z) AssertBooleanInstr(node->right()->token_pos(), |
right_value)); |
@@ -1800,7 +1800,7 @@ void EffectGraphVisitor::VisitComparisonNode(ComparisonNode* node) { |
owner()->ic_data_array()); |
if (node->kind() == Token::kNE) { |
Isolate* isolate = Isolate::Current(); |
- if (isolate->flags().type_checks() || isolate->flags().asserts()) { |
+ if (isolate->type_checks() || isolate->asserts()) { |
Value* value = Bind(result); |
result = new(Z) AssertBooleanInstr(node->token_pos(), value); |
} |
@@ -1847,7 +1847,7 @@ void EffectGraphVisitor::VisitUnaryOpNode(UnaryOpNode* node) { |
Append(for_value); |
Value* value = for_value.value(); |
Isolate* isolate = Isolate::Current(); |
- if (isolate->flags().type_checks() || isolate->flags().asserts()) { |
+ if (isolate->type_checks() || isolate->asserts()) { |
value = |
Bind(new(Z) AssertBooleanInstr(node->operand()->token_pos(), value)); |
} |
@@ -3642,7 +3642,7 @@ void EffectGraphVisitor::VisitStoreLocalNode(StoreLocalNode* node) { |
node->value()->Visit(&for_value); |
Append(for_value); |
Value* store_value = for_value.value(); |
- if (Isolate::Current()->flags().type_checks()) { |
+ if (Isolate::Current()->type_checks()) { |
store_value = BuildAssignableValue(node->value()->token_pos(), |
store_value, |
node->local().type(), |
@@ -3686,7 +3686,7 @@ void EffectGraphVisitor::VisitStoreInstanceFieldNode( |
node->value()->Visit(&for_value); |
Append(for_value); |
Value* store_value = for_value.value(); |
- if (Isolate::Current()->flags().type_checks()) { |
+ if (Isolate::Current()->type_checks()) { |
const AbstractType& type = |
AbstractType::ZoneHandle(Z, node->field().type()); |
const String& dst_name = String::ZoneHandle(Z, node->field().name()); |
@@ -4116,7 +4116,7 @@ void EffectGraphVisitor::VisitSequenceNode(SequenceNode* node) { |
} |
} |
- if (Isolate::Current()->flags().type_checks() && is_top_level_sequence) { |
+ if (Isolate::Current()->type_checks() && is_top_level_sequence) { |
const int num_params = function.NumParameters(); |
int pos = 0; |
if (function.IsFactory() || |