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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 11348133: Add JSNull, JSBool and JSFunction, and move toString into the new interceptor scheme. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 15139)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -443,6 +443,10 @@
type = HType.INTEGER;
} else if (cls == builder.backend.jsDoubleClass) {
type = HType.DOUBLE;
+ } else if (cls == builder.backend.jsNullClass) {
+ type = HType.NULL;
+ } else if (cls == builder.backend.jsBoolClass) {
+ type = HType.BOOLEAN;
}
value.guaranteedType = type;
}

Powered by Google App Engine
This is Rietveld 408576698