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

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 a63642dde91cc00bf71ce6a3d219739aa01d58c9..6f92f123bf587b04aff3d11904c91116410a6408 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::kNoLength);
}
}
}
« runtime/vm/object.h ('K') | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698