| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |