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

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

Issue 2859133003: Find native classes with mixins in NativeClassFinder (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
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/kernel/element_map.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 CodegenImpact, CodegenWorkItem; 10 import '../common/codegen.dart' show CodegenImpact, CodegenWorkItem;
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 function = function.withSourceInformation( 987 function = function.withSourceInformation(
988 sourceInformationStrategy.buildSourceMappedMarker()); 988 sourceInformationStrategy.buildSourceMappedMarker());
989 } 989 }
990 generatedCode[element] = function; 990 generatedCode[element] = function;
991 WorldImpact worldImpact = _codegenImpactTransformer 991 WorldImpact worldImpact = _codegenImpactTransformer
992 .transformCodegenImpact(work.registry.worldImpact); 992 .transformCodegenImpact(work.registry.worldImpact);
993 compiler.dumpInfoTask.registerImpact(element, worldImpact); 993 compiler.dumpInfoTask.registerImpact(element, worldImpact);
994 return worldImpact; 994 return worldImpact;
995 } 995 }
996 996
997 // TODO(johnniwinther): Remove this. It is now only used for testing. 997 native.NativeResolutionEnqueuer get nativeResolutionEnqueuerForTesting =>
998 @deprecated
999 native.NativeEnqueuer get nativeResolutionEnqueuer =>
1000 _nativeResolutionEnqueuer; 998 _nativeResolutionEnqueuer;
1001 999
1002 native.NativeEnqueuer get nativeCodegenEnqueuer => _nativeCodegenEnqueuer; 1000 native.NativeEnqueuer get nativeCodegenEnqueuer => _nativeCodegenEnqueuer;
1003 1001
1004 ClassElement defaultSuperclass(ClassElement element) { 1002 ClassElement defaultSuperclass(ClassElement element) {
1005 if (nativeBasicData.isJsInteropClass(element)) { 1003 if (nativeBasicData.isJsInteropClass(element)) {
1006 return commonElements.jsJavaScriptObjectClass; 1004 return commonElements.jsJavaScriptObjectClass;
1007 } 1005 }
1008 // Native classes inherit from Interceptor. 1006 // Native classes inherit from Interceptor.
1009 return nativeBasicData.isNativeClass(element) 1007 return nativeBasicData.isNativeClass(element)
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 1450
1453 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) { 1451 bool canUseAliasedSuperMember(MemberEntity member, Selector selector) {
1454 return !selector.isGetter; 1452 return !selector.isGetter;
1455 } 1453 }
1456 1454
1457 /// Returns `true` if [member] is called from a subclass via `super`. 1455 /// Returns `true` if [member] is called from a subclass via `super`.
1458 bool isAliasedSuperMember(MemberEntity member) { 1456 bool isAliasedSuperMember(MemberEntity member) {
1459 return _aliasedSuperMembers.contains(member); 1457 return _aliasedSuperMembers.contains(member);
1460 } 1458 }
1461 } 1459 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698