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 '../transformations/closure_conversion.dart' as cc show transformProgram; | 7 import '../transformations/closure_conversion.dart' as cc show transformProgram; |
8 | 8 |
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 transformProgram(Program program) { | 19 void performGlobalTransformations(Program program) { |
20 super.transformProgram(program); | 20 super.performGlobalTransformations(program); |
21 cc.transformProgram(program); | 21 cc.transformProgram(program); |
22 } | 22 } |
23 } | 23 } |
OLD | NEW |