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

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

Issue 2659883002: Use entities in BackendClasses (Closed)
Patch Set: Created 3 years, 10 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 BackendImpact get lazyField { 391 BackendImpact get lazyField {
392 return _lazyField ??= 392 return _lazyField ??=
393 new BackendImpact(staticUses: [helpers.cyclicThrowHelper]); 393 new BackendImpact(staticUses: [helpers.cyclicThrowHelper]);
394 } 394 }
395 395
396 BackendImpact _typeLiteral; 396 BackendImpact _typeLiteral;
397 397
398 BackendImpact get typeLiteral { 398 BackendImpact get typeLiteral {
399 return _typeLiteral ??= new BackendImpact( 399 return _typeLiteral ??= new BackendImpact(
400 instantiatedClasses: [backend.backendClasses.typeImplementation], 400 instantiatedClasses: [backend.backendClasses.typeClass],
401 staticUses: [helpers.createRuntimeType]); 401 staticUses: [helpers.createRuntimeType]);
402 } 402 }
403 403
404 BackendImpact _stackTraceInCatch; 404 BackendImpact _stackTraceInCatch;
405 405
406 BackendImpact get stackTraceInCatch { 406 BackendImpact get stackTraceInCatch {
407 return _stackTraceInCatch ??= new BackendImpact( 407 return _stackTraceInCatch ??= new BackendImpact(
408 instantiatedClasses: [helpers.stackTraceClass], 408 instantiatedClasses: [helpers.stackTraceClass],
409 staticUses: [helpers.traceFromException]); 409 staticUses: [helpers.traceFromException]);
410 } 410 }
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 BackendImpact _staticClosure; 730 BackendImpact _staticClosure;
731 731
732 /// Backend impact for performing closurization of a top-level or static 732 /// Backend impact for performing closurization of a top-level or static
733 /// function. 733 /// function.
734 BackendImpact get staticClosure { 734 BackendImpact get staticClosure {
735 return _staticClosure ??= 735 return _staticClosure ??=
736 new BackendImpact(globalClasses: [helpers.closureClass]); 736 new BackendImpact(globalClasses: [helpers.closureClass]);
737 } 737 }
738 } 738 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698