| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 | 824 |
| 825 ResolutionEnqueuer createResolutionEnqueuer( | 825 ResolutionEnqueuer createResolutionEnqueuer( |
| 826 CompilerTask task, Compiler compiler) { | 826 CompilerTask task, Compiler compiler) { |
| 827 _nativeBasicData = | 827 _nativeBasicData = |
| 828 nativeBasicDataBuilder.close(compiler.elementEnvironment); | 828 nativeBasicDataBuilder.close(compiler.elementEnvironment); |
| 829 _nativeResolutionEnqueuer = new native.NativeResolutionEnqueuer( | 829 _nativeResolutionEnqueuer = new native.NativeResolutionEnqueuer( |
| 830 compiler.options, | 830 compiler.options, |
| 831 compiler.elementEnvironment, | 831 compiler.elementEnvironment, |
| 832 commonElements, | 832 commonElements, |
| 833 backendUsageBuilder, | 833 backendUsageBuilder, |
| 834 new NativeClassResolverImpl( | 834 compiler.frontEndStrategy.createNativeClassResolver(nativeBasicData)); |
| 835 compiler.resolution, reporter, commonElements, nativeBasicData)); | |
| 836 _nativeData = new NativeDataImpl(nativeBasicData); | 835 _nativeData = new NativeDataImpl(nativeBasicData); |
| 837 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis( | 836 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis( |
| 838 compiler.resolution, | 837 compiler.resolution, |
| 839 constantSystem, | 838 constantSystem, |
| 840 commonElements, | 839 commonElements, |
| 841 nativeBasicData, | 840 nativeBasicData, |
| 842 backendUsageBuilder); | 841 backendUsageBuilder); |
| 843 impactTransformer = new JavaScriptImpactTransformer( | 842 impactTransformer = new JavaScriptImpactTransformer( |
| 844 compiler.options, | 843 compiler.options, |
| 845 compiler.elementEnvironment, | 844 compiler.elementEnvironment, |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 | 1451 |
| 1453 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { | 1452 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { |
| 1454 return !selector.isGetter; | 1453 return !selector.isGetter; |
| 1455 } | 1454 } |
| 1456 | 1455 |
| 1457 /// Returns `true` if [member] is called from a subclass via `super`. | 1456 /// Returns `true` if [member] is called from a subclass via `super`. |
| 1458 bool isAliasedSuperMember(MemberEntity member) { | 1457 bool isAliasedSuperMember(MemberEntity member) { |
| 1459 return _aliasedSuperMembers.contains(member); | 1458 return _aliasedSuperMembers.contains(member); |
| 1460 } | 1459 } |
| 1461 } | 1460 } |
| OLD | NEW |