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

Side by Side Diff: tests/compiler/dart2js/list_tracer_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 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 import 7 import
8 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' 8 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'
9 show ContainerTypeMask, TypeMask; 9 show ContainerTypeMask, TypeMask;
10 10
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 checkType('listUsedWithCascade', typesTask.numType); 207 checkType('listUsedWithCascade', typesTask.numType);
208 checkType('listUsedInClosure', typesTask.numType); 208 checkType('listUsedInClosure', typesTask.numType);
209 checkType('listPassedToSelector', typesTask.numType); 209 checkType('listPassedToSelector', typesTask.numType);
210 checkType('listReturnedFromSelector', typesTask.numType); 210 checkType('listReturnedFromSelector', typesTask.numType);
211 checkType('listUsedWithAddAndInsert', typesTask.numType); 211 checkType('listUsedWithAddAndInsert', typesTask.numType);
212 checkType('listUsedWithConstraint', typesTask.intType); 212 checkType('listUsedWithConstraint', typesTask.intType);
213 checkType('listEscapingFromSetter', typesTask.numType); 213 checkType('listEscapingFromSetter', typesTask.numType);
214 checkType('listUsedInLocal', typesTask.numType); 214 checkType('listUsedInLocal', typesTask.numType);
215 checkType('listEscapingInSetterValue', typesTask.numType); 215 checkType('listEscapingInSetterValue', typesTask.numType);
216 checkType('listEscapingInIndex', typesTask.numType); 216 checkType('listEscapingInIndex', typesTask.numType);
217 checkType('listEscapingInIndexSet', typesTask.intType); 217 checkType('listEscapingInIndexSet', typesTask.uint31Type);
218 checkType('listEscapingTwiceInIndexSet', typesTask.numType); 218 checkType('listEscapingTwiceInIndexSet', typesTask.numType);
219 checkType('listSetInNonFinalField', typesTask.numType); 219 checkType('listSetInNonFinalField', typesTask.numType);
220 checkType('listWithChangedLength', typesTask.intType.nullable()); 220 checkType('listWithChangedLength', typesTask.uint31Type.nullable());
221 221
222 checkType('listPassedToClosure', typesTask.dynamicType); 222 checkType('listPassedToClosure', typesTask.dynamicType);
223 checkType('listReturnedFromClosure', typesTask.dynamicType); 223 checkType('listReturnedFromClosure', typesTask.dynamicType);
224 checkType('listUsedWithNonOkSelector', typesTask.dynamicType); 224 checkType('listUsedWithNonOkSelector', typesTask.dynamicType);
225 checkType('listPassedAsOptionalParameter', typesTask.numType); 225 checkType('listPassedAsOptionalParameter', typesTask.numType);
226 checkType('listPassedAsNamedParameter', typesTask.numType); 226 checkType('listPassedAsNamedParameter', typesTask.numType);
227 227
228 if (!allocation.contains('filled')) { 228 if (!allocation.contains('filled')) {
229 checkType('listUnset', new TypeMask.nonNullEmpty()); 229 checkType('listUnset', new TypeMask.nonNullEmpty());
230 // TODO(ngeoffray): Re-enable this test. 230 checkType('listOnlySetWithConstraint', new TypeMask.nonNullEmpty());
231 // checkType('listOnlySetWithConstraint', new TypeMask.nonNullEmpty());
232 } 231 }
233 })); 232 }));
234 } 233 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/list_tracer2_test.dart ('k') | tests/compiler/dart2js/mirror_final_field_inferrer2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698