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

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

Issue 2671653003: Split the Kernel transformations into modular and global ones (Closed)
Patch Set: Revert inadvertent change Created 3 years, 10 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698