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

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

Issue 2894893002: Add ElementCodegenWorldBuilder (Closed)
Patch Set: Updated cf. comments. Created 3 years, 7 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) 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/entities.dart ('k') | pkg/compiler/lib/src/js_backend/codegen_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698