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

Unified Diff: pkg/kernel/tool/dartk.dart

Issue 2904203003: Don't recreate CoreTypes in transformers. Pass it in. (Closed)
Patch Set: Don't create CoreTypes in createOutlines() on InputError. Created 3 years, 7 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/kernel/test/treeshaker_membench.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/tool/dartk.dart
diff --git a/pkg/kernel/tool/dartk.dart b/pkg/kernel/tool/dartk.dart
index b53a1180687ecda444350991e89244047cc8246e..35d97243d714d6f362e8f07b2f51ef4607111d8a 100755
--- a/pkg/kernel/tool/dartk.dart
+++ b/pkg/kernel/tool/dartk.dart
@@ -12,6 +12,7 @@ import '../bin/util.dart';
import 'package:args/args.dart';
import 'package:analyzer/src/kernel/loader.dart';
import 'package:kernel/application_root.dart';
+import 'package:kernel/core_types.dart';
import 'package:kernel/verifier.dart';
import 'package:kernel/kernel.dart';
import 'package:kernel/log.dart';
@@ -405,10 +406,11 @@ Future<CompilerOutcome> batchMain(
// Apply target-specific transformations.
if (target != null && canContinueCompilation) {
- target.performModularTransformations(program);
+ CoreTypes coreTypes = new CoreTypes(program);
+ target.performModularTransformations(coreTypes, program);
runVerifier();
if (options['link']) {
- target.performGlobalTransformations(program);
+ target.performGlobalTransformations(coreTypes, program);
runVerifier();
}
}
« no previous file with comments | « pkg/kernel/test/treeshaker_membench.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698