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

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

Issue 2918923003: Revert "Use backend targets to run Kernel transformations in Fasta" (Closed)
Patch Set: 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
« no previous file with comments | « pkg/front_end/tool/fasta_perf.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 '../class_hierarchy.dart'; 7 import '../class_hierarchy.dart';
8 import '../core_types.dart'; 8 import '../core_types.dart';
9 import '../transformations/continuation.dart' as cont; 9 import '../transformations/continuation.dart' as cont;
10 import '../transformations/erasure.dart'; 10 import '../transformations/erasure.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 'dart:_vmservice', 44 'dart:_vmservice',
45 'dart:_builtin', 45 'dart:_builtin',
46 'dart:nativewrappers', 46 'dart:nativewrappers',
47 'dart:io', 47 'dart:io',
48 48
49 // Required for flutter. 49 // Required for flutter.
50 'dart:ui', 50 'dart:ui',
51 'dart:vmservice_sky', 51 'dart:vmservice_sky',
52 ]; 52 ];
53 53
54 void performModularTransformationsOnLibraries( 54 void performModularTransformations(
55 CoreTypes coreTypes, ClassHierarchy hierarchy, List<Library> libraries, 55 CoreTypes coreTypes, ClassHierarchy hierarchy, Program program) {
56 {void logger(String msg)}) { 56 mix.transformLibraries(this, coreTypes, hierarchy, program.libraries);
57 mix.transformLibraries(this, coreTypes, hierarchy, libraries);
58 } 57 }
59 58
60 void performGlobalTransformations(CoreTypes coreTypes, Program program, 59 void performGlobalTransformations(CoreTypes coreTypes, Program program) {
61 {void logger(String msg)}) {
62 cont.transformProgram(coreTypes, program); 60 cont.transformProgram(coreTypes, program);
63 61
64 // Repair `_getMainClosure()` function in dart:{_builtin,ui} libraries. 62 // Repair `_getMainClosure()` function in dart:{_builtin,ui} libraries.
65 setup_builtin_library.transformProgram(program); 63 setup_builtin_library.transformProgram(program);
66 setup_builtin_library.transformProgram(program, libraryUri: 'dart:ui'); 64 setup_builtin_library.transformProgram(program, libraryUri: 'dart:ui');
67 65
68 if (strongMode) { 66 if (strongMode) {
69 new Erasure().transform(program); 67 new Erasure().transform(program);
70 } 68 }
71 69
72 new SanitizeForVM().transform(program); 70 new SanitizeForVM().transform(program);
73 } 71 }
74 72
75 @override 73 @override
76 Expression instantiateInvocation(Member target, Expression receiver, 74 Expression instantiateInvocation(Member target, Expression receiver,
77 String name, Arguments arguments, int offset, bool isSuper) { 75 String name, Arguments arguments, int offset, bool isSuper) {
78 // TODO(ahe): This should probably return the same as VmTarget does. 76 // TODO(ahe): This should probably return the same as VmTarget does.
79 return new InvalidExpression(); 77 return new InvalidExpression();
80 } 78 }
81 } 79 }
OLDNEW
« no previous file with comments | « pkg/front_end/tool/fasta_perf.dart ('k') | pkg/kernel/lib/target/targets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698