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

Unified Diff: pkg/kernel/lib/target/vm.dart

Issue 2919003003: Reapply "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: Follow dartanalyzer suggestions 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
Index: pkg/kernel/lib/target/vm.dart
diff --git a/pkg/kernel/lib/target/vm.dart b/pkg/kernel/lib/target/vm.dart
index eae4b7fbc0ffd8ac52d53bcaeaee40060c979afe..aa943031fe08b16f23934f1cf42efaff724ab890 100644
--- a/pkg/kernel/lib/target/vm.dart
+++ b/pkg/kernel/lib/target/vm.dart
@@ -56,15 +56,17 @@ class VmTarget extends Target {
ClassHierarchy _hierarchy;
- void performModularTransformations(
- CoreTypes coreTypes, ClassHierarchy hierarchy, Program program) {
+ void performModularTransformationsOnLibraries(
+ CoreTypes coreTypes, ClassHierarchy hierarchy, List<Library> libraries,
+ {void logger(String msg)}) {
var mixins = new mix.MixinFullResolution(this, coreTypes, hierarchy)
- ..transform(program.libraries);
+ ..transform(libraries);
_hierarchy = mixins.hierarchy;
}
- void performGlobalTransformations(CoreTypes coreTypes, Program program) {
+ void performGlobalTransformations(CoreTypes coreTypes, Program program,
+ {void logger(String msg)}) {
if (strongMode) {
new InsertTypeChecks(coreTypes, _hierarchy).transformProgram(program);
new InsertCovarianceChecks(coreTypes, _hierarchy)

Powered by Google App Engine
This is Rietveld 408576698