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

Side by Side Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10542027: Add logging for work items being processed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removing qualified log call Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 /** 5 /**
6 * Visitor to gather conservative estimate of functions which 6 * Visitor to gather conservative estimate of functions which
7 * can be invoked and classes which can be instantiated. 7 * can be invoked and classes which can be instantiated.
8 */ 8 */
9 class ReachabilityVisitor implements Visitor { 9 class ReachabilityVisitor implements Visitor {
10 visitBlock(Block node) {} 10 visitBlock(Block node) {}
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 class DartBackend extends Backend { 84 class DartBackend extends Backend {
85 final ReachabilityVisitor reachabilityVisitor; 85 final ReachabilityVisitor reachabilityVisitor;
86 final List<CompilerTask> tasks = const <CompilerTask>[]; 86 final List<CompilerTask> tasks = const <CompilerTask>[];
87 87
88 DartBackend(Compiler compiler) 88 DartBackend(Compiler compiler)
89 : reachabilityVisitor = new ReachabilityVisitor(), 89 : reachabilityVisitor = new ReachabilityVisitor(),
90 super(compiler); 90 super(compiler);
91 91
92 String codegen(WorkItem work) { 92 String codegen(WorkItem work) {
93 // Traverse AST to populate sets of reachable classes and functions. 93 // Traverse AST to populate sets of reachable classes and functions.
94 log('codegen(${work.element})');
94 FunctionExpression function = work.element.parseNode(compiler); 95 FunctionExpression function = work.element.parseNode(compiler);
95 function.body.accept(new TraversingVisitor(reachabilityVisitor)); 96 function.body.accept(new TraversingVisitor(reachabilityVisitor));
96 } 97 }
97 98
98 void processNativeClasses(world, libraries) {} 99 void processNativeClasses(world, libraries) {}
99 void assembleProgram() { 100 void assembleProgram() {
100 compiler.assembledCode = ''; 101 compiler.assembledCode = '';
101 } 102 }
103
104 log(String message) => compiler.log('[DartBackend] $message');
102 } 105 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698