OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 js_backend.backend; | 5 library js_backend.backend; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/backend_api.dart' | 8 import '../common/backend_api.dart' |
9 show ForeignResolver, NativeRegistry, ImpactTransformer; | 9 show ForeignResolver, NativeRegistry, ImpactTransformer; |
10 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem; | 10 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem; |
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 compiler.elementEnvironment, | 886 compiler.elementEnvironment, |
887 commonElements, | 887 commonElements, |
888 compiler.frontEndStrategy.dartTypes, | 888 compiler.frontEndStrategy.dartTypes, |
889 emitter, | 889 emitter, |
890 _nativeResolutionEnqueuer, | 890 _nativeResolutionEnqueuer, |
891 closedWorld.nativeData); | 891 closedWorld.nativeData); |
892 return new CodegenEnqueuer( | 892 return new CodegenEnqueuer( |
893 task, | 893 task, |
894 compiler.options, | 894 compiler.options, |
895 const TreeShakingEnqueuerStrategy(), | 895 const TreeShakingEnqueuerStrategy(), |
896 new CodegenWorldBuilderImpl( | 896 compiler.backendStrategy.createCodegenWorldBuilder( |
897 nativeBasicData, closedWorld, constants, const TypeMaskStrategy()), | 897 nativeBasicData, closedWorld, const TypeMaskStrategy()), |
898 new CodegenWorkItemBuilder(this, closedWorld, compiler.options), | 898 compiler.backendStrategy.createCodegenWorkItemBuilder(closedWorld), |
899 new CodegenEnqueuerListener( | 899 new CodegenEnqueuerListener( |
900 compiler.elementEnvironment, | 900 compiler.elementEnvironment, |
901 commonElements, | 901 commonElements, |
902 impacts, | 902 impacts, |
903 closedWorld.backendUsage, | 903 closedWorld.backendUsage, |
904 rtiNeed, | 904 rtiNeed, |
905 customElementsCodegenAnalysis, | 905 customElementsCodegenAnalysis, |
906 typeVariableCodegenAnalysis, | 906 typeVariableCodegenAnalysis, |
907 lookupMapAnalysis, | 907 lookupMapAnalysis, |
908 mirrorsCodegenAnalysis, | 908 mirrorsCodegenAnalysis, |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 | 1432 |
1433 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { | 1433 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { |
1434 return !selector.isGetter; | 1434 return !selector.isGetter; |
1435 } | 1435 } |
1436 | 1436 |
1437 /// Returns `true` if [member] is called from a subclass via `super`. | 1437 /// Returns `true` if [member] is called from a subclass via `super`. |
1438 bool isAliasedSuperMember(MemberEntity member) { | 1438 bool isAliasedSuperMember(MemberEntity member) { |
1439 return _aliasedSuperMembers.contains(member); | 1439 return _aliasedSuperMembers.contains(member); |
1440 } | 1440 } |
1441 } | 1441 } |
OLD | NEW |