| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 /// The strategy used for collecting and emitting source information. | 432 /// The strategy used for collecting and emitting source information. |
| 433 SourceInformationStrategy sourceInformationStrategy; | 433 SourceInformationStrategy sourceInformationStrategy; |
| 434 | 434 |
| 435 /// Interface for serialization of backend specific data. | 435 /// Interface for serialization of backend specific data. |
| 436 JavaScriptBackendSerialization serialization; | 436 JavaScriptBackendSerialization serialization; |
| 437 | 437 |
| 438 NativeDataBuilderImpl _nativeDataBuilder; | 438 NativeDataBuilderImpl _nativeDataBuilder; |
| 439 final NativeBasicDataBuilderImpl _nativeBasicDataBuilder = | 439 final NativeBasicDataBuilderImpl _nativeBasicDataBuilder = |
| 440 new NativeBasicDataBuilderImpl(); | 440 new NativeBasicDataBuilderImpl(); |
| 441 NativeBasicDataImpl _nativeBasicData; | 441 NativeBasicDataImpl _nativeBasicData; |
| 442 //NativeData get nativeData => _nativeData; | |
| 443 NativeDataBuilder get nativeDataBuilder => _nativeDataBuilder; | 442 NativeDataBuilder get nativeDataBuilder => _nativeDataBuilder; |
| 444 final NativeDataResolver _nativeDataResolver; | 443 final NativeDataResolver _nativeDataResolver; |
| 445 InterceptorDataBuilder _interceptorDataBuilder; | 444 InterceptorDataBuilder _interceptorDataBuilder; |
| 446 InterceptorData _interceptorData; | 445 InterceptorData _interceptorData; |
| 447 OneShotInterceptorData _oneShotInterceptorData; | 446 OneShotInterceptorData _oneShotInterceptorData; |
| 448 BackendUsage _backendUsage; | 447 BackendUsage _backendUsage; |
| 449 BackendUsageBuilder _backendUsageBuilder; | 448 BackendUsageBuilder _backendUsageBuilder; |
| 450 MirrorsDataImpl _mirrorsData; | 449 MirrorsDataImpl _mirrorsData; |
| 451 CheckedModeHelpers _checkedModeHelpers; | 450 CheckedModeHelpers _checkedModeHelpers; |
| 452 | 451 |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 mirrorsDataBuilder, | 883 mirrorsDataBuilder, |
| 885 noSuchMethodRegistry, | 884 noSuchMethodRegistry, |
| 886 customElementsResolutionAnalysis, | 885 customElementsResolutionAnalysis, |
| 887 lookupMapResolutionAnalysis, | 886 lookupMapResolutionAnalysis, |
| 888 mirrorsResolutionAnalysis, | 887 mirrorsResolutionAnalysis, |
| 889 typeVariableResolutionAnalysis, | 888 typeVariableResolutionAnalysis, |
| 890 _nativeResolutionEnqueuer, | 889 _nativeResolutionEnqueuer, |
| 891 compiler.deferredLoadTask, | 890 compiler.deferredLoadTask, |
| 892 kernelTask), | 891 kernelTask), |
| 893 compiler.frontEndStrategy.createResolutionWorldBuilder( | 892 compiler.frontEndStrategy.createResolutionWorldBuilder( |
| 894 nativeBasicData, const OpenWorldStrategy()), | 893 nativeBasicData, _nativeDataBuilder, const OpenWorldStrategy()), |
| 895 compiler.frontEndStrategy | 894 compiler.frontEndStrategy |
| 896 .createResolutionWorkItemBuilder(impactTransformer)); | 895 .createResolutionWorkItemBuilder(impactTransformer)); |
| 897 } | 896 } |
| 898 | 897 |
| 899 /// Creates an [Enqueuer] for code generation specific to this backend. | 898 /// Creates an [Enqueuer] for code generation specific to this backend. |
| 900 CodegenEnqueuer createCodegenEnqueuer( | 899 CodegenEnqueuer createCodegenEnqueuer( |
| 901 CompilerTask task, Compiler compiler, ClosedWorld closedWorld) { | 900 CompilerTask task, Compiler compiler, ClosedWorld closedWorld) { |
| 902 _typeVariableCodegenAnalysis = new TypeVariableCodegenAnalysis( | 901 _typeVariableCodegenAnalysis = new TypeVariableCodegenAnalysis( |
| 903 compiler.elementEnvironment, this, commonElements, mirrorsData); | 902 compiler.elementEnvironment, this, commonElements, mirrorsData); |
| 904 _lookupMapAnalysis = new LookupMapAnalysis( | 903 _lookupMapAnalysis = new LookupMapAnalysis( |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 | 1472 |
| 1474 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { | 1473 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { |
| 1475 return !selector.isGetter; | 1474 return !selector.isGetter; |
| 1476 } | 1475 } |
| 1477 | 1476 |
| 1478 /// Returns `true` if [member] is called from a subclass via `super`. | 1477 /// Returns `true` if [member] is called from a subclass via `super`. |
| 1479 bool isAliasedSuperMember(MemberEntity member) { | 1478 bool isAliasedSuperMember(MemberEntity member) { |
| 1480 return _aliasedSuperMembers.contains(member); | 1479 return _aliasedSuperMembers.contains(member); |
| 1481 } | 1480 } |
| 1482 } | 1481 } |
| OLD | NEW |