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

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

Issue 2907383002: Don't tag fromEnvironment constructors as native (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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 void onCodegenEnd() { 1065 void onCodegenEnd() {
1066 sourceInformationStrategy.onComplete(); 1066 sourceInformationStrategy.onComplete();
1067 tracer.close(); 1067 tracer.close();
1068 } 1068 }
1069 1069
1070 // Does this element belong in the output 1070 // Does this element belong in the output
1071 bool shouldOutput(Element element) => true; 1071 bool shouldOutput(Element element) => true;
1072 1072
1073 /// Returns `true` if the `native` pseudo keyword is supported for [library]. 1073 /// Returns `true` if the `native` pseudo keyword is supported for [library].
1074 bool canLibraryUseNative(LibraryEntity library) { 1074 bool canLibraryUseNative(LibraryEntity library) {
1075 return native.maybeEnableNative(compiler, library); 1075 return native.maybeEnableNative(library.canonicalUri,
1076 allowNativeExtensions: compiler.options.allowNativeExtensions);
1076 } 1077 }
1077 1078
1078 bool isTargetSpecificLibrary(LibraryElement library) { 1079 bool isTargetSpecificLibrary(LibraryElement library) {
1079 Uri canonicalUri = library.canonicalUri; 1080 Uri canonicalUri = library.canonicalUri;
1080 if (canonicalUri == Uris.dart__js_helper || 1081 if (canonicalUri == Uris.dart__js_helper ||
1081 canonicalUri == Uris.dart__interceptors) { 1082 canonicalUri == Uris.dart__interceptors) {
1082 return true; 1083 return true;
1083 } 1084 }
1084 return false; 1085 return false;
1085 } 1086 }
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 1367
1367 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1368 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1368 return !selector.isGetter; 1369 return !selector.isGetter;
1369 } 1370 }
1370 1371
1371 /// Returns `true` if [member] is called from a subclass via `super`. 1372 /// Returns `true` if [member] is called from a subclass via `super`.
1372 bool isAliasedSuperMember(MemberEntity member) { 1373 bool isAliasedSuperMember(MemberEntity member) {
1373 return _aliasedSuperMembers.contains(member); 1374 return _aliasedSuperMembers.contains(member);
1374 } 1375 }
1375 } 1376 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698