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

Side by Side Diff: pkg/kernel/lib/target/vmcc.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, 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
« no previous file with comments | « pkg/kernel/lib/target/vm_fasta.dart ('k') | pkg/kernel/lib/target/vmreify.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 library kernel.target.vmcc; 4 library kernel.target.vmcc;
5 5
6 import '../ast.dart' show Program; 6 import '../ast.dart' show Program;
7 import '../core_types.dart' show CoreTypes; 7 import '../core_types.dart' show CoreTypes;
8 import '../transformations/closure_conversion.dart' as cc show transformProgram; 8 import '../transformations/closure_conversion.dart' as cc show transformProgram;
9 import 'targets.dart' show TargetFlags; 9 import 'targets.dart' show TargetFlags;
10 import 'vm.dart' as vm_target; 10 import 'vm.dart' as vm_target;
11 11
12 class VmClosureConvertedTarget extends vm_target.VmTarget { 12 class VmClosureConvertedTarget extends vm_target.VmTarget {
13 VmClosureConvertedTarget(TargetFlags flags) : super(flags); 13 VmClosureConvertedTarget(TargetFlags flags) : super(flags);
14 14
15 @override 15 @override
16 String get name => "vmcc"; 16 String get name => "vmcc";
17 17
18 @override 18 @override
19 void performGlobalTransformations(CoreTypes coreTypes, Program program) { 19 void performGlobalTransformations(CoreTypes coreTypes, Program program,
20 {void logger(String msg)}) {
20 super.performGlobalTransformations(coreTypes, program); 21 super.performGlobalTransformations(coreTypes, program);
21 cc.transformProgram(coreTypes, program); 22 cc.transformProgram(coreTypes, program);
22 } 23 }
23 } 24 }
OLDNEW
« no previous file with comments | « pkg/kernel/lib/target/vm_fasta.dart ('k') | pkg/kernel/lib/target/vmreify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698