| OLD | NEW |
| 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 | 4 |
| 5 library dart2js.mirrors_handler; | 5 library dart2js.mirrors_handler; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart'; | 8 import '../common/resolution.dart'; |
| 9 import '../compiler.dart'; | 9 import '../compiler.dart'; |
| 10 import '../constants/values.dart'; | 10 import '../constants/values.dart'; |
| 11 import '../diagnostics/diagnostic_listener.dart'; | 11 import '../diagnostics/diagnostic_listener.dart'; |
| 12 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; |
| 13 import '../elements/entities.dart'; | 13 import '../elements/entities.dart'; |
| 14 import '../elements/names.dart'; |
| 14 import '../enqueue.dart'; | 15 import '../enqueue.dart'; |
| 15 import '../universe/selector.dart'; | 16 import '../universe/selector.dart'; |
| 16 import '../universe/use.dart'; | 17 import '../universe/use.dart'; |
| 17 import '../universe/world_impact.dart'; | 18 import '../universe/world_impact.dart'; |
| 18 import 'backend.dart'; | 19 import 'backend.dart'; |
| 19 import 'constant_handler_javascript.dart'; | 20 import 'constant_handler_javascript.dart'; |
| 20 import 'mirrors_data.dart'; | 21 import 'mirrors_data.dart'; |
| 21 | 22 |
| 22 abstract class MirrorsResolutionAnalysis { | 23 abstract class MirrorsResolutionAnalysis { |
| 23 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses); | 24 void onQueueEmpty(Enqueuer enqueuer, Iterable<ClassEntity> recentClasses); |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 | 476 |
| 476 /// Records that [constant] is used by the element behind [registry]. | 477 /// Records that [constant] is used by the element behind [registry]. |
| 477 class Dependency { | 478 class Dependency { |
| 478 final ConstantValue constant; | 479 final ConstantValue constant; |
| 479 final Element annotatedElement; | 480 final Element annotatedElement; |
| 480 | 481 |
| 481 const Dependency(this.constant, this.annotatedElement); | 482 const Dependency(this.constant, this.annotatedElement); |
| 482 | 483 |
| 483 String toString() => '$annotatedElement:${constant.toStructuredText()}'; | 484 String toString() => '$annotatedElement:${constant.toStructuredText()}'; |
| 484 } | 485 } |
| OLD | NEW |