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

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

Issue 1881013002: Expand ResolvedAst to handle synthetic constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + fix test, cps and compilation units for injected members. Created 4 years, 8 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
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 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/resolution/enum_creator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698