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

Unified Diff: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart

Issue 11308257: - Parse the return type of JS during resolution to know what can be instantiated there. (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/compile_time_constants.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (revision 15508)
+++ sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (working copy)
@@ -273,14 +273,17 @@
}
Constant visitLiteralBool(LiteralBool node) {
+ registerInstantiatedClass(compiler.boolClass);
return constantSystem.createBool(node.value);
}
Constant visitLiteralDouble(LiteralDouble node) {
+ registerInstantiatedClass(compiler.doubleClass);
return constantSystem.createDouble(node.value);
}
Constant visitLiteralInt(LiteralInt node) {
+ registerInstantiatedClass(compiler.intClass);
return constantSystem.createInt(node.value);
}

Powered by Google App Engine
This is Rietveld 408576698