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

Unified Diff: frog/world.dart

Issue 8463027: Optimize boolean asserts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: co19 status Created 9 years, 1 month 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: frog/world.dart
diff --git a/frog/world.dart b/frog/world.dart
index 5b652e45f55af552f62c904b32d4bcb58caf8635..74203297ba0f2867af2688a0ecb94dae37dd5300 100644
--- a/frog/world.dart
+++ b/frog/world.dart
@@ -100,6 +100,8 @@ class World {
DefinedType mapType;
DefinedType functionType;
+ NonNullableType nonNullBool;
+
World(this.files)
: libraries = {}, _todo = [], _members = {}, _topNames = {},
// TODO(jmesserly): these two types don't actually back our Date and
@@ -134,6 +136,8 @@ class World {
listType = _addToCoreLib('List', false);
mapType = _addToCoreLib('Map', false);
functionType = _addToCoreLib('Function', false);
+
+ nonNullBool = new NonNullableType(boolType);
}
_addMember(Member member) {
« frog/value.dart ('K') | « frog/value.dart ('k') | tests/co19/co19-frog.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698