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

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

Issue 94303002: Add another type JSPositiveInt to show a range analysis in the inferrer would be very beneficial :-… (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
« no previous file with comments | « sdk/lib/typed_data/dart2js/typed_data_dart2js.dart ('k') | tests/compiler/dart2js/list_tracer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/field_type_simple_inferer_test.dart
===================================================================
--- tests/compiler/dart2js/field_type_simple_inferer_test.dart (revision 30754)
+++ tests/compiler/dart2js/field_type_simple_inferer_test.dart (working copy)
@@ -555,15 +555,15 @@
'f3': (types) => types.uint31Type.nullable(),
'f4': (types) => types.uint31Type.nullable()});
- runTest(TEST_24, {'f1': (types) => types.intType,
- 'f2': (types) => types.intType,
+ runTest(TEST_24, {'f1': (types) => types.positiveIntType,
+ 'f2': (types) => types.positiveIntType,
'f3': (types) => types.uint31Type,
'f4': (types) => types.uint31Type,
'f5': (types) => types.numType.nullable(),
'f6': (types) => types.stringType.nullable()});
runTest(TEST_25, {'f1': (types) => types.uint31Type });
- runTest(TEST_26, {'f1': (types) => types.intType });
+ runTest(TEST_26, {'f1': (types) => types.positiveIntType });
runTest(TEST_27, {'f1': (types) => types.uint31Type,
'f2': (types) => types.uint31Type.nullable()});
}
« no previous file with comments | « sdk/lib/typed_data/dart2js/typed_data_dart2js.dart ('k') | tests/compiler/dart2js/list_tracer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698