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

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

Issue 2916893002: Handle int constant (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 _nativeBasicData = 796 _nativeBasicData =
797 nativeBasicDataBuilder.close(compiler.elementEnvironment); 797 nativeBasicDataBuilder.close(compiler.elementEnvironment);
798 _nativeResolutionEnqueuer = new native.NativeResolutionEnqueuer( 798 _nativeResolutionEnqueuer = new native.NativeResolutionEnqueuer(
799 compiler.options, 799 compiler.options,
800 compiler.elementEnvironment, 800 compiler.elementEnvironment,
801 commonElements, 801 commonElements,
802 compiler.frontEndStrategy.dartTypes, 802 compiler.frontEndStrategy.dartTypes,
803 _backendUsageBuilder, 803 _backendUsageBuilder,
804 compiler.frontEndStrategy.createNativeClassFinder(nativeBasicData)); 804 compiler.frontEndStrategy.createNativeClassFinder(nativeBasicData));
805 _nativeDataBuilder = new NativeDataBuilderImpl(nativeBasicData); 805 _nativeDataBuilder = new NativeDataBuilderImpl(nativeBasicData);
806 _customElementsResolutionAnalysis = compiler.frontEndStrategy 806 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis(
807 .createCustomElementsResolutionAnalysis( 807 constantSystem,
808 nativeBasicData, _backendUsageBuilder); 808 compiler.elementEnvironment,
809 commonElements,
810 nativeBasicData,
811 _backendUsageBuilder);
809 impactTransformer = new JavaScriptImpactTransformer( 812 impactTransformer = new JavaScriptImpactTransformer(
810 compiler.options, 813 compiler.options,
811 compiler.elementEnvironment, 814 compiler.elementEnvironment,
812 commonElements, 815 commonElements,
813 impacts, 816 impacts,
814 nativeBasicData, 817 nativeBasicData,
815 _nativeResolutionEnqueuer, 818 _nativeResolutionEnqueuer,
816 _backendUsageBuilder, 819 _backendUsageBuilder,
817 mirrorsDataBuilder, 820 mirrorsDataBuilder,
818 customElementsResolutionAnalysis, 821 customElementsResolutionAnalysis,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 compiler.elementEnvironment, this, commonElements, mirrorsData); 865 compiler.elementEnvironment, this, commonElements, mirrorsData);
863 _lookupMapAnalysis = new LookupMapAnalysis( 866 _lookupMapAnalysis = new LookupMapAnalysis(
864 reporter, 867 reporter,
865 constantSystem, 868 constantSystem,
866 constants, 869 constants,
867 compiler.elementEnvironment, 870 compiler.elementEnvironment,
868 commonElements, 871 commonElements,
869 lookupMapResolutionAnalysis); 872 lookupMapResolutionAnalysis);
870 _mirrorsCodegenAnalysis = mirrorsResolutionAnalysis.close(); 873 _mirrorsCodegenAnalysis = mirrorsResolutionAnalysis.close();
871 _customElementsCodegenAnalysis = new CustomElementsCodegenAnalysis( 874 _customElementsCodegenAnalysis = new CustomElementsCodegenAnalysis(
872 compiler.resolution, constantSystem, commonElements, nativeBasicData); 875 constantSystem,
876 commonElements,
877 compiler.elementEnvironment,
878 nativeBasicData);
873 _nativeCodegenEnqueuer = new native.NativeCodegenEnqueuer( 879 _nativeCodegenEnqueuer = new native.NativeCodegenEnqueuer(
874 compiler.options, 880 compiler.options,
875 compiler.elementEnvironment, 881 compiler.elementEnvironment,
876 commonElements, 882 commonElements,
877 compiler.frontEndStrategy.dartTypes, 883 compiler.frontEndStrategy.dartTypes,
878 emitter, 884 emitter,
879 _nativeResolutionEnqueuer, 885 _nativeResolutionEnqueuer,
880 closedWorld.nativeData); 886 closedWorld.nativeData);
881 return new CodegenEnqueuer( 887 return new CodegenEnqueuer(
882 task, 888 task,
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 1394
1389 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1395 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1390 return !selector.isGetter; 1396 return !selector.isGetter;
1391 } 1397 }
1392 1398
1393 /// Returns `true` if [member] is called from a subclass via `super`. 1399 /// Returns `true` if [member] is called from a subclass via `super`.
1394 bool isAliasedSuperMember(MemberEntity member) { 1400 bool isAliasedSuperMember(MemberEntity member) {
1395 return _aliasedSuperMembers.contains(member); 1401 return _aliasedSuperMembers.contains(member);
1396 } 1402 }
1397 } 1403 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.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