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

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

Issue 2918623004: Use backend targets to run Kernel transformations in Fasta (Closed)
Patch Set: Adjust to the recent changes in master 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/lib/target/targets.dart ('k') | pkg/kernel/lib/target/vm_fasta.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « pkg/kernel/lib/target/targets.dart ('k') | pkg/kernel/lib/target/vm_fasta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698