| 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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 cachedCheckConcurrentModificationError = | 1730 cachedCheckConcurrentModificationError = |
| 1731 findHelper('checkConcurrentModificationError'); | 1731 findHelper('checkConcurrentModificationError'); |
| 1732 } | 1732 } |
| 1733 return cachedCheckConcurrentModificationError; | 1733 return cachedCheckConcurrentModificationError; |
| 1734 } | 1734 } |
| 1735 | 1735 |
| 1736 Element getThrowConcurrentModificationError() { | 1736 Element getThrowConcurrentModificationError() { |
| 1737 return findHelper('throwConcurrentModificationError'); | 1737 return findHelper('throwConcurrentModificationError'); |
| 1738 } | 1738 } |
| 1739 | 1739 |
| 1740 Element getThrowIndexOutOfBoundsError() { |
| 1741 return findHelper('ioore'); |
| 1742 } |
| 1743 |
| 1740 Element getStringInterpolationHelper() { | 1744 Element getStringInterpolationHelper() { |
| 1741 return findHelper('S'); | 1745 return findHelper('S'); |
| 1742 } | 1746 } |
| 1743 | 1747 |
| 1744 Element getWrapExceptionHelper() { | 1748 Element getWrapExceptionHelper() { |
| 1745 return findHelper(r'wrapException'); | 1749 return findHelper(r'wrapException'); |
| 1746 } | 1750 } |
| 1747 | 1751 |
| 1748 Element getThrowExpressionHelper() { | 1752 Element getThrowExpressionHelper() { |
| 1749 return findHelper('throwExpression'); | 1753 return findHelper('throwExpression'); |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3005 } | 3009 } |
| 3006 } | 3010 } |
| 3007 | 3011 |
| 3008 /// Records that [constant] is used by the element behind [registry]. | 3012 /// Records that [constant] is used by the element behind [registry]. |
| 3009 class Dependency { | 3013 class Dependency { |
| 3010 final ConstantValue constant; | 3014 final ConstantValue constant; |
| 3011 final Element annotatedElement; | 3015 final Element annotatedElement; |
| 3012 | 3016 |
| 3013 const Dependency(this.constant, this.annotatedElement); | 3017 const Dependency(this.constant, this.annotatedElement); |
| 3014 } | 3018 } |
| OLD | NEW |