| 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 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2204 : null; | 2204 : null; |
| 2205 } | 2205 } |
| 2206 | 2206 |
| 2207 FunctionElement helperForBadMain() => findHelper('badMain'); | 2207 FunctionElement helperForBadMain() => findHelper('badMain'); |
| 2208 | 2208 |
| 2209 FunctionElement helperForMissingMain() => findHelper('missingMain'); | 2209 FunctionElement helperForMissingMain() => findHelper('missingMain'); |
| 2210 | 2210 |
| 2211 FunctionElement helperForMainArity() { | 2211 FunctionElement helperForMainArity() { |
| 2212 return findHelper('mainHasTooManyParameters'); | 2212 return findHelper('mainHasTooManyParameters'); |
| 2213 } | 2213 } |
| 2214 |
| 2215 void forgetElement(Element element) { |
| 2216 constants.forgetElement(element); |
| 2217 } |
| 2214 } | 2218 } |
| 2215 | 2219 |
| 2216 class JavaScriptResolutionCallbacks extends ResolutionCallbacks { | 2220 class JavaScriptResolutionCallbacks extends ResolutionCallbacks { |
| 2217 final JavaScriptBackend backend; | 2221 final JavaScriptBackend backend; |
| 2218 | 2222 |
| 2219 JavaScriptResolutionCallbacks(this.backend); | 2223 JavaScriptResolutionCallbacks(this.backend); |
| 2220 | 2224 |
| 2221 void registerBackendStaticInvocation(Element element, Registry registry) { | 2225 void registerBackendStaticInvocation(Element element, Registry registry) { |
| 2222 registry.registerStaticInvocation(backend.registerBackendUse(element)); | 2226 registry.registerStaticInvocation(backend.registerBackendUse(element)); |
| 2223 } | 2227 } |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2410 } | 2414 } |
| 2411 } | 2415 } |
| 2412 | 2416 |
| 2413 /// Records that [constant] is used by the element behind [registry]. | 2417 /// Records that [constant] is used by the element behind [registry]. |
| 2414 class Dependency { | 2418 class Dependency { |
| 2415 final Constant constant; | 2419 final Constant constant; |
| 2416 final Element annotatedElement; | 2420 final Element annotatedElement; |
| 2417 | 2421 |
| 2418 const Dependency(this.constant, this.annotatedElement); | 2422 const Dependency(this.constant, this.annotatedElement); |
| 2419 } | 2423 } |
| OLD | NEW |