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

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

Issue 2912503003: Perform MixinFullResolution only for source libraries. (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
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.vm; 4 library kernel.target.vm;
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 'dart:vmservice_io', 50 'dart:vmservice_io',
51 'dart:_vmservice', 51 'dart:_vmservice',
52 'dart:_builtin', 52 'dart:_builtin',
53 'dart:nativewrappers', 53 'dart:nativewrappers',
54 'dart:io', 54 'dart:io',
55 ]; 55 ];
56 56
57 ClassHierarchy _hierarchy; 57 ClassHierarchy _hierarchy;
58 58
59 void performModularTransformations(Program program) { 59 void performModularTransformations(Program program) {
60 var mixins = new mix.MixinFullResolution(this)..transform(program); 60 var mixins = new mix.MixinFullResolution(this)
61 ..transform(program.libraries);
61 62
62 _hierarchy = mixins.hierarchy; 63 _hierarchy = mixins.hierarchy;
63 } 64 }
64 65
65 void performGlobalTransformations(Program program) { 66 void performGlobalTransformations(Program program) {
66 var coreTypes = new CoreTypes(program); 67 var coreTypes = new CoreTypes(program);
67 68
68 if (strongMode) { 69 if (strongMode) {
69 new InsertTypeChecks(hierarchy: _hierarchy, coreTypes: coreTypes) 70 new InsertTypeChecks(hierarchy: _hierarchy, coreTypes: coreTypes)
70 .transformProgram(program); 71 .transformProgram(program);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // this is currently only used in (statically resolved) no-such-method 158 // this is currently only used in (statically resolved) no-such-method
158 // handling, the current approach seems sufficient. 159 // handling, the current approach seems sufficient.
159 return new MethodInvocation( 160 return new MethodInvocation(
160 new ListLiteral(elements)..fileOffset = charOffset, 161 new ListLiteral(elements)..fileOffset = charOffset,
161 new Name("toList"), 162 new Name("toList"),
162 new Arguments(<Expression>[], named: <NamedExpression>[ 163 new Arguments(<Expression>[], named: <NamedExpression>[
163 new NamedExpression("growable", new BoolLiteral(false)) 164 new NamedExpression("growable", new BoolLiteral(false))
164 ])); 165 ]));
165 } 166 }
166 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698