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

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

Issue 2918623004: Use backend targets to run Kernel transformations in Fasta (Closed)
Patch Set: Remove some overrides of performModularTransformationsOnProgram 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
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.flutter; 4 library kernel.target.flutter;
5 5
6 import '../ast.dart'; 6 import '../ast.dart';
7 import '../core_types.dart'; 7 import '../core_types.dart';
8 import '../transformations/continuation.dart' as cont; 8 import '../transformations/continuation.dart' as cont;
9 import '../transformations/erasure.dart'; 9 import '../transformations/erasure.dart';
10 import '../transformations/mixin_full_resolution.dart' as mix; 10 import '../transformations/mixin_full_resolution.dart' as mix;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 'dart:_vmservice', 43 'dart:_vmservice',
44 'dart:_builtin', 44 'dart:_builtin',
45 'dart:nativewrappers', 45 'dart:nativewrappers',
46 'dart:io', 46 'dart:io',
47 47
48 // Required for flutter. 48 // Required for flutter.
49 'dart:ui', 49 'dart:ui',
50 'dart:vmservice_sky', 50 'dart:vmservice_sky',
51 ]; 51 ];
52 52
53 void performModularTransformations(CoreTypes coreTypes, Program program) { 53 void performModularTransformationsOnLibraries(
54 mix.transformLibraries(this, coreTypes, program.libraries); 54 CoreTypes coreTypes, List<Library> libraries,
55 {void logger(String msg)}) {
56 mix.transformLibraries(this, coreTypes, libraries);
55 } 57 }
56 58
57 void performGlobalTransformations(CoreTypes coreTypes, Program program) { 59 void performGlobalTransformations(CoreTypes coreTypes, Program program,
60 {void logger(String msg)}) {
58 cont.transformProgram(coreTypes, program); 61 cont.transformProgram(coreTypes, program);
59 62
60 // Repair `_getMainClosure()` function in dart:{_builtin,ui} libraries. 63 // Repair `_getMainClosure()` function in dart:{_builtin,ui} libraries.
61 setup_builtin_library.transformProgram(program); 64 setup_builtin_library.transformProgram(program);
62 setup_builtin_library.transformProgram(program, libraryUri: 'dart:ui'); 65 setup_builtin_library.transformProgram(program, libraryUri: 'dart:ui');
63 66
64 if (strongMode) { 67 if (strongMode) {
65 new Erasure().transform(program); 68 new Erasure().transform(program);
66 } 69 }
67 70
68 new SanitizeForVM().transform(program); 71 new SanitizeForVM().transform(program);
69 } 72 }
70 73
71 @override 74 @override
72 Expression instantiateInvocation(Member target, Expression receiver, 75 Expression instantiateInvocation(Member target, Expression receiver,
73 String name, Arguments arguments, int offset, bool isSuper) { 76 String name, Arguments arguments, int offset, bool isSuper) {
74 // TODO(ahe): This should probably return the same as VmTarget does. 77 // TODO(ahe): This should probably return the same as VmTarget does.
75 return new InvalidExpression(); 78 return new InvalidExpression();
76 } 79 }
77 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698