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

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

Issue 2841583002: Add FrontEndStrategy, ResolutionFrontEndStrategy and KernelFrontEndStrategy (Closed)
Patch Set: 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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 element == commonElements.jsMutableArrayClass || 1078 element == commonElements.jsMutableArrayClass ||
1079 element == commonElements.jsExtendableArrayClass || 1079 element == commonElements.jsExtendableArrayClass ||
1080 element == commonElements.jsFixedArrayClass || 1080 element == commonElements.jsFixedArrayClass ||
1081 element == commonElements.jsUnmodifiableArrayClass; 1081 element == commonElements.jsUnmodifiableArrayClass;
1082 } 1082 }
1083 1083
1084 /// This method is called immediately after the [library] and its parts have 1084 /// This method is called immediately after the [library] and its parts have
1085 /// been loaded. 1085 /// been loaded.
1086 void setAnnotations(LibraryEntity library) { 1086 void setAnnotations(LibraryEntity library) {
1087 if (!compiler.serialization.isDeserialized(library)) { 1087 if (!compiler.serialization.isDeserialized(library)) {
1088 AnnotationProcessor processor = new AnnotationProcessor(compiler); 1088 AnnotationProcessor processor =
1089 compiler.frontEndStrategy.annotationProcesser;
1089 if (canLibraryUseNative(library)) { 1090 if (canLibraryUseNative(library)) {
1090 processor.extractNativeAnnotations(library, nativeBasicDataBuilder); 1091 processor.extractNativeAnnotations(library, nativeBasicDataBuilder);
1091 } 1092 }
1092 processor.extractJsInteropAnnotations(library, nativeBasicDataBuilder); 1093 processor.extractJsInteropAnnotations(library, nativeBasicDataBuilder);
1093 } 1094 }
1094 Uri uri = library.canonicalUri; 1095 Uri uri = library.canonicalUri;
1095 if (uri == Uris.dart_html) { 1096 if (uri == Uris.dart_html) {
1096 htmlLibraryIsLoaded = true; 1097 htmlLibraryIsLoaded = true;
1097 } else if (uri == LookupMapResolutionAnalysis.PACKAGE_LOOKUP_MAP) { 1098 } else if (uri == LookupMapResolutionAnalysis.PACKAGE_LOOKUP_MAP) {
1098 lookupMapResolutionAnalysis.init(library); 1099 lookupMapResolutionAnalysis.init(library);
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 1469
1469 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1470 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1470 return !selector.isGetter; 1471 return !selector.isGetter;
1471 } 1472 }
1472 1473
1473 /// Returns `true` if [member] is called from a subclass via `super`. 1474 /// Returns `true` if [member] is called from a subclass via `super`.
1474 bool isAliasedSuperMember(MemberEntity member) { 1475 bool isAliasedSuperMember(MemberEntity member) {
1475 return _aliasedSuperMembers.contains(member); 1476 return _aliasedSuperMembers.contains(member);
1476 } 1477 }
1477 } 1478 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698