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

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

Issue 2801873006: Use entities in TypeVariableResolutionAnalysis and TypeVariableCodegenAnalysis (Closed)
Patch Set: Created 3 years, 8 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 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/backend_api.dart' 10 import '../common/backend_api.dart'
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 compiler.deferredLoadTask, 897 compiler.deferredLoadTask,
898 kernelTask), 898 kernelTask),
899 new ElementResolutionWorldBuilder( 899 new ElementResolutionWorldBuilder(
900 this, compiler.resolution, const OpenWorldStrategy()), 900 this, compiler.resolution, const OpenWorldStrategy()),
901 new ResolutionWorkItemBuilder(compiler.resolution)); 901 new ResolutionWorkItemBuilder(compiler.resolution));
902 } 902 }
903 903
904 /// Creates an [Enqueuer] for code generation specific to this backend. 904 /// Creates an [Enqueuer] for code generation specific to this backend.
905 CodegenEnqueuer createCodegenEnqueuer( 905 CodegenEnqueuer createCodegenEnqueuer(
906 CompilerTask task, Compiler compiler, ClosedWorld closedWorld) { 906 CompilerTask task, Compiler compiler, ClosedWorld closedWorld) {
907 _typeVariableCodegenAnalysis = 907 _typeVariableCodegenAnalysis = new TypeVariableCodegenAnalysis(
908 new TypeVariableCodegenAnalysis(this, helpers, mirrorsData); 908 compiler.elementEnvironment, this, helpers, mirrorsData);
909 _lookupMapAnalysis = new LookupMapAnalysis( 909 _lookupMapAnalysis = new LookupMapAnalysis(
910 reporter, 910 reporter,
911 constantSystem, 911 constantSystem,
912 constants, 912 constants,
913 compiler.elementEnvironment, 913 compiler.elementEnvironment,
914 commonElements, 914 commonElements,
915 helpers, 915 helpers,
916 backendClasses, 916 backendClasses,
917 lookupMapResolutionAnalysis); 917 lookupMapResolutionAnalysis);
918 _mirrorsCodegenAnalysis = mirrorsResolutionAnalysis.close(); 918 _mirrorsCodegenAnalysis = mirrorsResolutionAnalysis.close();
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 1601
1602 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1602 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1603 return !selector.isGetter; 1603 return !selector.isGetter;
1604 } 1604 }
1605 1605
1606 /// Returns `true` if [member] is called from a subclass via `super`. 1606 /// Returns `true` if [member] is called from a subclass via `super`.
1607 bool isAliasedSuperMember(MemberEntity member) { 1607 bool isAliasedSuperMember(MemberEntity member) {
1608 return _aliasedSuperMembers.contains(member); 1608 return _aliasedSuperMembers.contains(member);
1609 } 1609 }
1610 } 1610 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/js_backend/type_variable_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698