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

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

Issue 2732663002: Late creation of CodegenEnqueuer (Closed)
Patch Set: Updated cf. comment Created 3 years, 9 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 | « pkg/compiler/lib/src/ssa/interceptor_simplifier.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_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);
« no previous file with comments | « pkg/compiler/lib/src/ssa/interceptor_simplifier.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698