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

Unified Diff: tests/compiler/dart2js/simple_inferrer_no_such_method_test.dart

Issue 87783003: Add UInt32 and UInt31 types to better infer bit operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: tests/compiler/dart2js/simple_inferrer_no_such_method_test.dart
===================================================================
--- tests/compiler/dart2js/simple_inferrer_no_such_method_test.dart (revision 30666)
+++ tests/compiler/dart2js/simple_inferrer_no_such_method_test.dart (working copy)
@@ -107,10 +107,10 @@
var compiler1 = compilerFor(TEST1, uri);
asyncTest(() => compiler1.runCompiler(uri).then((_) {
- checkReturn(compiler1, 'test1', compiler1.typesTask.intType);
+ checkReturn(compiler1, 'test1', compiler1.typesTask.uint31Type);
checkReturn(compiler1, 'test2',
compiler1.typesTask.dynamicType.nonNullable());
- checkReturn(compiler1, 'test3', compiler1.typesTask.intType);
+ checkReturn(compiler1, 'test3', compiler1.typesTask.uint31Type);
checkReturn(compiler1, 'test4', compiler1.typesTask.mapType);
checkReturn(compiler1, 'test5',
compiler1.typesTask.dynamicType.nonNullable());
@@ -127,9 +127,9 @@
checkReturn(compiler2, 'test5', compiler2.typesTask.mapType);
checkReturn(compiler2, 'test6', compiler2.typesTask.numType);
- checkReturn(compiler2, 'test7', compiler2.typesTask.intType);
- checkReturn(compiler2, 'test8', compiler2.typesTask.intType);
- checkReturn(compiler2, 'test9', compiler2.typesTask.intType);
+ checkReturn(compiler2, 'test7', compiler2.typesTask.uint31Type);
+ checkReturn(compiler2, 'test8', compiler2.typesTask.uint31Type);
+ checkReturn(compiler2, 'test9', compiler2.typesTask.uint31Type);
checkReturn(compiler2, 'test10', compiler2.typesTask.numType);
checkReturn(compiler2, 'test11', compiler2.typesTask.doubleType);
}));
« no previous file with comments | « tests/compiler/dart2js/simple_inferrer_final_field_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698