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 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 | 2245 |
2246 void onQueueClosed() { | 2246 void onQueueClosed() { |
2247 lookupMapAnalysis.onQueueClosed(); | 2247 lookupMapAnalysis.onQueueClosed(); |
2248 jsInteropAnalysis.onQueueClosed(); | 2248 jsInteropAnalysis.onQueueClosed(); |
2249 } | 2249 } |
2250 | 2250 |
2251 void onCodegenStart() { | 2251 void onCodegenStart() { |
2252 lookupMapAnalysis.onCodegenStart(); | 2252 lookupMapAnalysis.onCodegenStart(); |
2253 } | 2253 } |
2254 | 2254 |
2255 void onElementResolved(Element element, TreeElements elements) { | 2255 @override |
| 2256 void onElementResolved(Element element) { |
2256 if (element.isMalformed) { | 2257 if (element.isMalformed) { |
2257 // Elements that are marker as malformed during parsing or resolution | 2258 // Elements that are marker as malformed during parsing or resolution |
2258 // might be registered here. These should just be ignored. | 2259 // might be registered here. These should just be ignored. |
2259 return; | 2260 return; |
2260 } | 2261 } |
2261 | 2262 |
2262 if ((element.isFunction || element.isConstructor) && | 2263 if ((element.isFunction || element.isConstructor) && |
2263 annotations.noInline(element)) { | 2264 annotations.noInline(element)) { |
2264 inlineCache.markAsNonInlinable(element); | 2265 inlineCache.markAsNonInlinable(element); |
2265 } | 2266 } |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2975 | 2976 |
2976 @override | 2977 @override |
2977 void onImpactUsed(ImpactUseCase impactUse) { | 2978 void onImpactUsed(ImpactUseCase impactUse) { |
2978 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { | 2979 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { |
2979 // TODO(johnniwinther): Allow emptying when serialization has been | 2980 // TODO(johnniwinther): Allow emptying when serialization has been |
2980 // performed. | 2981 // performed. |
2981 resolution.emptyCache(); | 2982 resolution.emptyCache(); |
2982 } | 2983 } |
2983 } | 2984 } |
2984 } | 2985 } |
OLD | NEW |