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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 22854016: Native subclasses of a mixin include classes extending native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.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 part of js_backend; 5 part of js_backend;
6 6
7 class JavaScriptItemCompilationContext extends ItemCompilationContext { 7 class JavaScriptItemCompilationContext extends ItemCompilationContext {
8 final Set<HInstruction> boundsChecked; 8 final Set<HInstruction> boundsChecked;
9 9
10 JavaScriptItemCompilationContext() 10 JavaScriptItemCompilationContext()
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 445 }
446 446
447 Set<ClassElement> nativeSubclassesOfMixin(ClassElement mixin) { 447 Set<ClassElement> nativeSubclassesOfMixin(ClassElement mixin) {
448 Set<MixinApplicationElement> uses = compiler.world.mixinUses[mixin]; 448 Set<MixinApplicationElement> uses = compiler.world.mixinUses[mixin];
449 if (uses == null) return null; 449 if (uses == null) return null;
450 Set<ClassElement> result = null; 450 Set<ClassElement> result = null;
451 for (MixinApplicationElement use in uses) { 451 for (MixinApplicationElement use in uses) {
452 Iterable<ClassElement> subclasses = compiler.world.subclassesOf(use); 452 Iterable<ClassElement> subclasses = compiler.world.subclassesOf(use);
453 if (subclasses != null) { 453 if (subclasses != null) {
454 for (ClassElement subclass in subclasses) { 454 for (ClassElement subclass in subclasses) {
455 if (subclass.isNative()) { 455 if (Elements.isNativeOrExtendsNative(subclass)) {
456 if (result == null) result = new Set<ClassElement>(); 456 if (result == null) result = new Set<ClassElement>();
457 result.add(subclass); 457 result.add(subclass);
458 } 458 }
459 } 459 }
460 } 460 }
461 } 461 }
462 return result; 462 return result;
463 } 463 }
464 464
465 bool operatorEqHandlesNullArgument(FunctionElement operatorEqfunction) { 465 bool operatorEqHandlesNullArgument(FunctionElement operatorEqfunction) {
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 copy(constant.values); 1604 copy(constant.values);
1605 copy(constant.protoValue); 1605 copy(constant.protoValue);
1606 copy(constant); 1606 copy(constant);
1607 } 1607 }
1608 1608
1609 void visitConstructed(ConstructedConstant constant) { 1609 void visitConstructed(ConstructedConstant constant) {
1610 copy(constant.fields); 1610 copy(constant.fields);
1611 copy(constant); 1611 copy(constant);
1612 } 1612 }
1613 } 1613 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/interceptor_simplifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698