Index: tests/compiler/dart2js/type_representation_test.dart |
diff --git a/tests/compiler/dart2js/type_representation_test.dart b/tests/compiler/dart2js/type_representation_test.dart |
index 632a82c1c3ccfa2d083a522908831ce7e4cd0541..8dccc47e71f22c26c59763edc9d20e298d5709f9 100644 |
--- a/tests/compiler/dart2js/type_representation_test.dart |
+++ b/tests/compiler/dart2js/type_representation_test.dart |
@@ -12,6 +12,8 @@ import 'package:compiler/src/js/js.dart'; |
import 'package:compiler/src/elements/elements.dart' show Element, ClassElement; |
import 'package:compiler/src/js_backend/js_backend.dart' |
show JavaScriptBackend, TypeRepresentationGenerator; |
+import 'package:compiler/src/types/types.dart'; |
+import 'package:compiler/src/universe/world_builder.dart'; |
void main() { |
testTypeRepresentations(); |
@@ -41,8 +43,11 @@ void testTypeRepresentations() { |
m9(int a, String b, {List<int> c, d}) {} |
m10(void f(int a, [b])) {} |
""").then((env) { |
- var closedWorld = env.compiler.closeResolution(); |
- env.compiler.backend.onCodegenStart(closedWorld); |
+ var closedWorldRefiner = env.compiler.closeResolution(); |
+ env.compiler.backend.onCodegenStart( |
+ closedWorldRefiner.closedWorld, |
+ new CodegenWorldBuilderImpl( |
+ env.compiler.backend, const TypeMaskStrategy())); |
TypeRepresentationGenerator typeRepresentation = |
new TypeRepresentationGenerator( |
env.compiler.backend.namer, env.compiler.backend.emitter); |