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 const VERBOSE_OPTIMIZER_HINTS = false; | 7 const VERBOSE_OPTIMIZER_HINTS = false; |
8 | 8 |
9 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); | 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); |
(...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1759 } | 1759 } |
1760 | 1760 |
1761 Element getCheckSubtype() { | 1761 Element getCheckSubtype() { |
1762 return findHelper('checkSubtype'); | 1762 return findHelper('checkSubtype'); |
1763 } | 1763 } |
1764 | 1764 |
1765 Element getAssertSubtype() { | 1765 Element getAssertSubtype() { |
1766 return findHelper('assertSubtype'); | 1766 return findHelper('assertSubtype'); |
1767 } | 1767 } |
1768 | 1768 |
| 1769 Element getSubtypeCast() { |
| 1770 return findHelper('subtypeCast'); |
| 1771 } |
| 1772 |
1769 Element getCheckSubtypeOfRuntimeType() { | 1773 Element getCheckSubtypeOfRuntimeType() { |
1770 return findHelper('checkSubtypeOfRuntimeType'); | 1774 return findHelper('checkSubtypeOfRuntimeType'); |
1771 } | 1775 } |
1772 | 1776 |
| 1777 Element getAssertSubtypeOfRuntimeType() { |
| 1778 return findHelper('assertSubtypeOfRuntimeType'); |
| 1779 } |
| 1780 |
| 1781 Element getSubtypeOfRuntimeTypeCast() { |
| 1782 return findHelper('subtypeOfRuntimeTypeCast'); |
| 1783 } |
| 1784 |
1773 Element getCheckDeferredIsLoaded() { | 1785 Element getCheckDeferredIsLoaded() { |
1774 return findHelper('checkDeferredIsLoaded'); | 1786 return findHelper('checkDeferredIsLoaded'); |
1775 } | 1787 } |
1776 | 1788 |
1777 Element getAssertSubtypeOfRuntimeType() { | |
1778 return findHelper('assertSubtypeOfRuntimeType'); | |
1779 } | |
1780 | |
1781 Element getThrowNoSuchMethod() { | 1789 Element getThrowNoSuchMethod() { |
1782 return findHelper('throwNoSuchMethod'); | 1790 return findHelper('throwNoSuchMethod'); |
1783 } | 1791 } |
1784 | 1792 |
1785 Element getCreateRuntimeType() { | 1793 Element getCreateRuntimeType() { |
1786 return findHelper('createRuntimeType'); | 1794 return findHelper('createRuntimeType'); |
1787 } | 1795 } |
1788 | 1796 |
1789 Element getFallThroughError() { | 1797 Element getFallThroughError() { |
1790 return findHelper("getFallThroughError"); | 1798 return findHelper("getFallThroughError"); |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2957 } | 2965 } |
2958 } | 2966 } |
2959 | 2967 |
2960 /// Records that [constant] is used by the element behind [registry]. | 2968 /// Records that [constant] is used by the element behind [registry]. |
2961 class Dependency { | 2969 class Dependency { |
2962 final ConstantValue constant; | 2970 final ConstantValue constant; |
2963 final Element annotatedElement; | 2971 final Element annotatedElement; |
2964 | 2972 |
2965 const Dependency(this.constant, this.annotatedElement); | 2973 const Dependency(this.constant, this.annotatedElement); |
2966 } | 2974 } |
OLD | NEW |