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

Side by Side Diff: pkg/kernel/lib/target/vm_fasta.dart

Issue 2918623004: Use backend targets to run Kernel transformations in Fasta (Closed)
Patch Set: Remove some overrides of performModularTransformationsOnProgram Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4 library kernel.target.vm_fasta;
5
6 import '../ast.dart' show Program, Library;
7 import '../core_types.dart' show CoreTypes;
8
9 import '../transformations/mixin_full_resolution.dart' as transformMixins
10 show transformLibraries;
11 import '../transformations/continuation.dart' as transformAsync
12 show transformLibraries;
13 import '../transformations/erasure.dart' as tranformErasure
14 show transformLibraries;
15
16 import 'targets.dart' show TargetFlags;
17 import 'vm.dart' as vm_target;
18
19 class VmFastaTarget extends vm_target.VmTarget {
20 VmFastaTarget(TargetFlags flags) : super(flags);
21
22 String get name => "vm_fasta";
23
24 void performModularTransformationsOnLibraries(
25 CoreTypes coreTypes, List<Library> libraries,
26 {void logger(String msg)}) {
27 transformMixins.transformLibraries(this, coreTypes, libraries);
28 logger?.call("Transformed mixin applications");
29
30 // TODO(ahe): Don't generate type variables in the first place.
31 if (!strongMode) {
32 tranformErasure.transformLibraries(coreTypes, libraries);
33 logger?.call("Erased type variables in generic methods");
34 }
35
36 // TODO(kmillikin): Make this run on a per-method basis.
37 transformAsync.transformLibraries(coreTypes, libraries);
38 logger?.call("Transformed async methods");
39 }
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698