Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2329403003: More features handled in kernel impact. (Closed)
Patch Set: Fix analyze_test_test. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend_impact.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend_impact.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698