Chromium Code Reviews| 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.flutter_fasta; | 4 library kernel.target.flutter_fasta; |
| 5 | 5 |
| 6 import '../ast.dart' show Program, Library; | 6 import '../ast.dart' show Program, Library; |
| 7 import '../core_types.dart' show CoreTypes; | 7 import '../core_types.dart' show CoreTypes; |
| 8 import '../class_hierarchy.dart' show ClassHierarchy; | 8 import '../class_hierarchy.dart' show ClassHierarchy; |
| 9 | 9 |
| 10 import '../transformations/mixin_full_resolution.dart' as transformMixins | 10 import '../transformations/mixin_full_resolution.dart' as transformMixins |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 } | 35 } |
| 36 | 36 |
| 37 // TODO(kmillikin): Make this run on a per-method basis. | 37 // TODO(kmillikin): Make this run on a per-method basis. |
| 38 transformAsync.transformLibraries(coreTypes, libraries); | 38 transformAsync.transformLibraries(coreTypes, libraries); |
| 39 logger?.call("Transformed async methods"); | 39 logger?.call("Transformed async methods"); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void performGlobalTransformations(CoreTypes coreTypes, Program program, | 42 void performGlobalTransformations(CoreTypes coreTypes, Program program, |
| 43 {void logger(String msg)}) {} | 43 {void logger(String msg)}) {} |
| 44 } | 44 } |
| 45 | |
| 46 class FlutterFastaReleaseTarget extends FlutterFastaTarget { | |
| 47 FlutterFastaReleaseTarget(TargetFlags flags) : super(flags) { | |
|
ahe
2017/07/10 13:19:02
super(flags, includeVmService: false);
aam
2017/07/10 22:11:37
I tried doing something like that but got stuck wi
| |
| 48 // Release target should not have vmservice because it should not have | |
| 49 // observatory debugging or profiling functionality available. | |
| 50 includeVMService = false; | |
| 51 } | |
| 52 } | |
| OLD | NEW |