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

Unified Diff: runtime/vm/parser.cc

Issue 22851003: Initial support for length guards on final fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 247fbc7f70c8acc5bb4ed2b4059c983d954c397c..eac5db37bd63c773e523edc10ff2b2e142f0dc8f 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -2087,6 +2087,7 @@ void Parser::CheckConstFieldsInitialized(const Class& cls) {
String::Handle(field.name()).ToCString());
} else {
field.UpdateCid(kNullCid);
+ field.UpdateLength(Field::kNoFixedLength);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698