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 library js_backend.backend; | 5 library js_backend.backend; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
10 | 10 |
(...skipping 2807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 } | 2818 } |
2819 break; | 2819 break; |
2820 case Feature.FALL_THROUGH_ERROR: | 2820 case Feature.FALL_THROUGH_ERROR: |
2821 registerBackendImpact(transformed, impacts.fallThroughError); | 2821 registerBackendImpact(transformed, impacts.fallThroughError); |
2822 break; | 2822 break; |
2823 case Feature.FIELD_WITHOUT_INITIALIZER: | 2823 case Feature.FIELD_WITHOUT_INITIALIZER: |
2824 transformed.registerTypeUse( | 2824 transformed.registerTypeUse( |
2825 new TypeUse.instantiation(backend.coreTypes.nullType)); | 2825 new TypeUse.instantiation(backend.coreTypes.nullType)); |
2826 registerBackendImpact(transformed, impacts.nullLiteral); | 2826 registerBackendImpact(transformed, impacts.nullLiteral); |
2827 break; | 2827 break; |
2828 case Feature.INC_DEC_OPERATION: | |
2829 registerBackendImpact(transformed, impacts.incDecOperation); | |
2830 break; | |
2831 case Feature.LAZY_FIELD: | 2828 case Feature.LAZY_FIELD: |
2832 registerBackendImpact(transformed, impacts.lazyField); | 2829 registerBackendImpact(transformed, impacts.lazyField); |
2833 break; | 2830 break; |
2834 case Feature.STACK_TRACE_IN_CATCH: | 2831 case Feature.STACK_TRACE_IN_CATCH: |
2835 registerBackendImpact(transformed, impacts.stackTraceInCatch); | 2832 registerBackendImpact(transformed, impacts.stackTraceInCatch); |
2836 break; | 2833 break; |
2837 case Feature.STRING_INTERPOLATION: | 2834 case Feature.STRING_INTERPOLATION: |
2838 registerBackendImpact(transformed, impacts.stringInterpolation); | 2835 registerBackendImpact(transformed, impacts.stringInterpolation); |
2839 break; | 2836 break; |
2840 case Feature.STRING_JUXTAPOSITION: | 2837 case Feature.STRING_JUXTAPOSITION: |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3219 | 3216 |
3220 @override | 3217 @override |
3221 void onImpactUsed(ImpactUseCase impactUse) { | 3218 void onImpactUsed(ImpactUseCase impactUse) { |
3222 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { | 3219 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { |
3223 // TODO(johnniwinther): Allow emptying when serialization has been | 3220 // TODO(johnniwinther): Allow emptying when serialization has been |
3224 // performed. | 3221 // performed. |
3225 resolution.emptyCache(); | 3222 resolution.emptyCache(); |
3226 } | 3223 } |
3227 } | 3224 } |
3228 } | 3225 } |
OLD | NEW |