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

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

Issue 10557003: Fix most warnings and other minor cleanups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase. 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 | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/namer.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 /** 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 final Compiler compiler; 10 final Compiler compiler;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 String codegen(WorkItem work) { 103 String codegen(WorkItem work) {
104 // Traverse AST to populate sets of reachable classes and functions. 104 // Traverse AST to populate sets of reachable classes and functions.
105 log('codegen(${work.element})'); 105 log('codegen(${work.element})');
106 FunctionExpression function = work.element.parseNode(compiler); 106 FunctionExpression function = work.element.parseNode(compiler);
107 function.body.accept(new TraversingVisitor( 107 function.body.accept(new TraversingVisitor(
108 new ReachabilityVisitor(compiler, work.resolutionTree))); 108 new ReachabilityVisitor(compiler, work.resolutionTree)));
109 } 109 }
110 110
111 void processNativeClasses(world, libraries) {} 111 void processNativeClasses(Enqueuer world,
112 Collection<LibraryElement> libraries) {
113 }
114
112 void assembleProgram() { 115 void assembleProgram() {
113 compiler.assembledCode = ''; 116 compiler.assembledCode = '';
114 } 117 }
115 118
116 log(String message) => compiler.log('[DartBackend] $message'); 119 log(String message) => compiler.log('[DartBackend] $message');
117 } 120 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/compiler.dart ('k') | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698