Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1085)

Unified Diff: runtime/vm/ast.cc

Issue 1737693003: - Remove Isolate::Flags structure and store flags directly in isolate. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.cc
diff --git a/runtime/vm/ast.cc b/runtime/vm/ast.cc
index d1cd87779af320925fe9863d43ecfbf023ceef59..0390198e14b2038fac7988a136853b63ba2f50d8 100644
--- a/runtime/vm/ast.cc
+++ b/runtime/vm/ast.cc
@@ -575,7 +575,7 @@ AstNode* LoadStaticFieldNode::MakeAssignmentNode(AstNode* rhs) {
if (field().is_final()) {
return NULL;
}
- if (Isolate::Current()->flags().type_checks()) {
+ if (Isolate::Current()->type_checks()) {
rhs = new AssignableNode(
field().token_pos(),
rhs,
@@ -663,7 +663,7 @@ AstNode* StaticGetterNode::MakeAssignmentNode(AstNode* rhs) {
if (obj.IsField()) {
const Field& field = Field::ZoneHandle(zone, Field::Cast(obj).raw());
if (!field.is_final()) {
- if (isolate->flags().type_checks()) {
+ if (isolate->type_checks()) {
rhs = new AssignableNode(field.token_pos(),
rhs,
AbstractType::ZoneHandle(zone, field.type()),
@@ -698,7 +698,7 @@ AstNode* StaticGetterNode::MakeAssignmentNode(AstNode* rhs) {
if (obj.IsField()) {
const Field& field = Field::ZoneHandle(zone, Field::Cast(obj).raw());
if (!field.is_final()) {
- if (isolate->flags().type_checks()) {
+ if (isolate->type_checks()) {
rhs = new AssignableNode(field.token_pos(),
rhs,
AbstractType::ZoneHandle(zone, field.type()),
@@ -754,7 +754,7 @@ AstNode* StaticGetterNode::MakeAssignmentNode(AstNode* rhs) {
ASSERT(!getter.IsNull() &&
(getter.kind() == RawFunction::kImplicitStaticFinalGetter));
#endif
- if (isolate->flags().type_checks()) {
+ if (isolate->type_checks()) {
rhs = new AssignableNode(
field.token_pos(),
rhs,
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698