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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_impact.dart

Issue 2621433002: dart2js-kernel: handle top-level / static unresolved methods / getters / setters (Closed)
Patch Set: remove print Created 3 years, 11 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 4
5 library dart2js.js_helpers.impact; 5 library dart2js.js_helpers.impact;
6 6
7 import '../common/names.dart'; 7 import '../common/names.dart';
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../core_types.dart' show CommonElements; 9 import '../core_types.dart' show CommonElements;
10 import '../elements/resolution_types.dart' show ResolutionInterfaceType; 10 import '../elements/resolution_types.dart' show ResolutionInterfaceType;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return _throwNoSuchMethod ??= new BackendImpact( 163 return _throwNoSuchMethod ??= new BackendImpact(
164 instantiatedClasses: compiler.options.useKernel 164 instantiatedClasses: compiler.options.useKernel
165 ? [ 165 ? [
166 commonElements.symbolClass, 166 commonElements.symbolClass,
167 ] 167 ]
168 : [], 168 : [],
169 staticUses: compiler.options.useKernel 169 staticUses: compiler.options.useKernel
170 ? [ 170 ? [
171 helpers.genericNoSuchMethod, 171 helpers.genericNoSuchMethod,
172 helpers.unresolvedConstructorError, 172 helpers.unresolvedConstructorError,
173 helpers.unresolvedStaticMethodError,
174 helpers.unresolvedStaticGetterError,
175 helpers.unresolvedStaticSetterError,
176 helpers.unresolvedTopLevelMethodError,
177 helpers.unresolvedTopLevelGetterError,
178 helpers.unresolvedTopLevelSetterError,
173 commonElements.symbolConstructor.declaration, 179 commonElements.symbolConstructor.declaration,
174 ] 180 ]
175 : [ 181 : [
176 helpers.throwNoSuchMethod, 182 helpers.throwNoSuchMethod,
177 ], 183 ],
178 otherImpacts: [ 184 otherImpacts: [
179 // Also register the types of the arguments passed to this method. 185 // Also register the types of the arguments passed to this method.
180 _needsList( 186 _needsList(
181 'Needed to encode the arguments for throw NoSuchMethodError.'), 187 'Needed to encode the arguments for throw NoSuchMethodError.'),
182 _needsString('Needed to encode the name for throw NoSuchMethodError.') 188 _needsString('Needed to encode the name for throw NoSuchMethodError.')
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 729
724 BackendImpact _staticClosure; 730 BackendImpact _staticClosure;
725 731
726 /// Backend impact for performing closurization of a top-level or static 732 /// Backend impact for performing closurization of a top-level or static
727 /// function. 733 /// function.
728 BackendImpact get staticClosure { 734 BackendImpact get staticClosure {
729 return _staticClosure ??= 735 return _staticClosure ??=
730 new BackendImpact(globalClasses: [helpers.closureClass]); 736 new BackendImpact(globalClasses: [helpers.closureClass]);
731 } 737 }
732 } 738 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698