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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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 CodegenWorkItem; 10 import '../common/codegen.dart' show CodegenWorkItem;
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 void onResolutionClosedWorld( 737 void onResolutionClosedWorld(
738 ClosedWorld closedWorld, ClosedWorldRefiner closedWorldRefiner) { 738 ClosedWorld closedWorld, ClosedWorldRefiner closedWorldRefiner) {
739 for (MemberEntity entity 739 for (MemberEntity entity
740 in compiler.enqueuer.resolution.processedEntities) { 740 in compiler.enqueuer.resolution.processedEntities) {
741 processAnnotations(closedWorld.elementEnvironment, 741 processAnnotations(closedWorld.elementEnvironment,
742 closedWorld.commonElements, entity, closedWorldRefiner); 742 closedWorld.commonElements, entity, closedWorldRefiner);
743 } 743 }
744 mirrorsDataBuilder.computeMembersNeededForReflection( 744 mirrorsDataBuilder.computeMembersNeededForReflection(
745 compiler.enqueuer.resolution.worldBuilder, closedWorld); 745 compiler.enqueuer.resolution.worldBuilder, closedWorld);
746 _rtiNeed = rtiNeedBuilder.computeRuntimeTypesNeed( 746 _rtiNeed = rtiNeedBuilder.computeRuntimeTypesNeed(
747 compiler.enqueuer.resolution.worldBuilder, closedWorld, compiler.types, 747 compiler.enqueuer.resolution.worldBuilder,
748 closedWorld,
749 compiler.frontendStrategy.dartTypes,
748 enableTypeAssertions: compiler.options.enableTypeAssertions); 750 enableTypeAssertions: compiler.options.enableTypeAssertions);
749 mirrorsResolutionAnalysis.onResolutionComplete(); 751 mirrorsResolutionAnalysis.onResolutionComplete();
750 } 752 }
751 753
752 void onTypeInferenceComplete(GlobalTypeInferenceResults results) { 754 void onTypeInferenceComplete(GlobalTypeInferenceResults results) {
753 noSuchMethodRegistry.onTypeInferenceComplete(results); 755 noSuchMethodRegistry.onTypeInferenceComplete(results);
754 } 756 }
755 757
756 /// Called when resolving a call to a foreign function. 758 /// Called when resolving a call to a foreign function.
757 native.NativeBehavior resolveForeignCall(Send node, Element element, 759 native.NativeBehavior resolveForeignCall(Send node, Element element,
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1397 1399
1398 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1400 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1399 return !selector.isGetter; 1401 return !selector.isGetter;
1400 } 1402 }
1401 1403
1402 /// Returns `true` if [member] is called from a subclass via `super`. 1404 /// Returns `true` if [member] is called from a subclass via `super`.
1403 bool isAliasedSuperMember(MemberEntity member) { 1405 bool isAliasedSuperMember(MemberEntity member) {
1404 return _aliasedSuperMembers.contains(member); 1406 return _aliasedSuperMembers.contains(member);
1405 } 1407 }
1406 } 1408 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/types.dart ('k') | pkg/compiler/lib/src/js_emitter/code_emitter_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698