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

Side by Side Diff: pkg/compiler/lib/src/common/codegen.dart

Issue 1422323007: dart2js: use WorldImpact for dump_info (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/dump_info.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 dart2js.common.codegen; 5 library dart2js.common.codegen;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show 8 import '../compiler.dart' show
9 Compiler; 9 Compiler;
10 import '../constants/values.dart' show 10 import '../constants/values.dart' show
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void registerInstantiatedClass(ClassElement element) { 180 void registerInstantiatedClass(ClassElement element) {
181 registerInstantiation(element.rawType); 181 registerInstantiation(element.rawType);
182 } 182 }
183 183
184 void registerStaticUse(StaticUse staticUse) { 184 void registerStaticUse(StaticUse staticUse) {
185 worldImpact.registerStaticUse(staticUse); 185 worldImpact.registerStaticUse(staticUse);
186 } 186 }
187 187
188 void registerDynamicUse(DynamicUse dynamicUse) { 188 void registerDynamicUse(DynamicUse dynamicUse) {
189 worldImpact.registerDynamicUse(dynamicUse); 189 worldImpact.registerDynamicUse(dynamicUse);
190 compiler.dumpInfoTask.elementUsesSelector(currentElement, dynamicUse);
191 } 190 }
192 191
193 void registerTypeUse(TypeUse typeUse) { 192 void registerTypeUse(TypeUse typeUse) {
194 worldImpact.registerTypeUse(typeUse); 193 worldImpact.registerTypeUse(typeUse);
195 } 194 }
196 195
197 void registerCompileTimeConstant(ConstantValue constant) { 196 void registerCompileTimeConstant(ConstantValue constant) {
198 worldImpact.registerCompileTimeConstant(constant); 197 worldImpact.registerCompileTimeConstant(constant);
199 } 198 }
200 199
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 AstElement element, 255 AstElement element,
257 ItemCompilationContext compilationContext) 256 ItemCompilationContext compilationContext)
258 : super(element, compilationContext); 257 : super(element, compilationContext);
259 258
260 TreeElements get resolutionTree => element.resolvedAst.elements; 259 TreeElements get resolutionTree => element.resolvedAst.elements;
261 260
262 WorldImpact run(Compiler compiler, CodegenEnqueuer world) { 261 WorldImpact run(Compiler compiler, CodegenEnqueuer world) {
263 if (world.isProcessed(element)) return const WorldImpact(); 262 if (world.isProcessed(element)) return const WorldImpact();
264 263
265 registry = new CodegenRegistry(compiler, element); 264 registry = new CodegenRegistry(compiler, element);
266 return compiler.codegen(this, world); 265 var impact = compiler.codegen(this, world);
266 compiler.dumpInfoTask.registerImpact(element, impact);
267 return impact;
267 } 268 }
268 } 269 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698