OLD | NEW |
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 } |
OLD | NEW |