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

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

Issue 12380058: Remove HBoundedPotentialPrimitiveArray type. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months 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 | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_combination_test.dart
diff --git a/tests/compiler/dart2js/type_combination_test.dart b/tests/compiler/dart2js/type_combination_test.dart
index 5112fed1fa5c6ec223e3fd0f99cda2c049e3ef51..fb16be48c4f7ddba91908b7300e130d3f757446e 100644
--- a/tests/compiler/dart2js/type_combination_test.dart
+++ b/tests/compiler/dart2js/type_combination_test.dart
@@ -2033,17 +2033,25 @@ void testRegressions(MockCompiler compiler) {
void main() {
MockCompiler compiler = new MockCompiler();
+ compiler.interceptorsLibrary.forEachLocalMember((Element element) {
+ if (element.isClass()) {
+ compiler.enqueuer.resolution.registerInstantiatedClass(element);
+ }
+ });
+ compiler.world.populate();
+
nonPrimitive1 = new HType.nonNullSubtype(
compiler.mapClass.computeType(compiler), compiler);
nonPrimitive2 = new HType.nonNullSubtype(
compiler.functionClass.computeType(compiler), compiler);
- potentialArray = new HBoundedPotentialPrimitiveArray(
+ potentialArray = new HBoundedType(
new TypeMask.subtype(compiler.listClass.computeType(compiler)));
potentialString = new HBoundedPotentialPrimitiveString(
new TypeMask.subtype(compiler.stringClass.computeType(compiler)));
jsArrayOrNull = new HType.fromMask(
new TypeMask.exact(compiler.backend.jsArrayClass.computeType(compiler)),
compiler);
+
testUnion(compiler);
testIntersection(compiler);
testRegressions(compiler);
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698