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

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

Issue 2671653003: Split the Kernel transformations into modular and global ones (Closed)
Patch Set: Revert inadvertent change Created 3 years, 11 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 | « no previous file | pkg/kernel/lib/target/flutter.dart » ('j') | pkg/kernel/lib/target/flutter.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/bin/dartk.dart
diff --git a/pkg/kernel/bin/dartk.dart b/pkg/kernel/bin/dartk.dart
index b8666a43c45b26b7c20d994cfb14075b23e8981e..d14dbaa2cc92a6952c1e98c1e61c458f9f672d9a 100755
--- a/pkg/kernel/bin/dartk.dart
+++ b/pkg/kernel/bin/dartk.dart
@@ -362,9 +362,13 @@ Future<CompilerOutcome> batchMain(
}
// Apply target-specific transformations.
- if (target != null && options['link'] && canContinueCompilation) {
- target.transformProgram(program);
+ if (target != null && canContinueCompilation) {
+ target.performModularTransformations(program);
runVerifier();
+ if (options['link']) {
+ target.performGlobalTransformations(program);
+ runVerifier();
+ }
}
if (options['no-output']) {
« no previous file with comments | « no previous file | pkg/kernel/lib/target/flutter.dart » ('j') | pkg/kernel/lib/target/flutter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698