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

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

Issue 10696194: Introduce CodeBuffer as StringBuffer replacement in compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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
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 class BailoutException { 5 class BailoutException {
6 final String reason; 6 final String reason;
7 7
8 const BailoutException(this.reason); 8 const BailoutException(this.reason);
9 } 9 }
10 10
(...skipping 10 matching lines...) Expand all
21 unparseValidator = new UnparseValidator(compiler, validateUnparse), 21 unparseValidator = new UnparseValidator(compiler, validateUnparse),
22 resolvedClassMembers = new Map<ClassElement, Set<Element>>(), 22 resolvedClassMembers = new Map<ClassElement, Set<Element>>(),
23 super(compiler) { 23 super(compiler) {
24 tasks.add(unparseValidator); 24 tasks.add(unparseValidator);
25 } 25 }
26 26
27 void enqueueHelpers(Enqueuer world) { 27 void enqueueHelpers(Enqueuer world) {
28 // TODO(antonm): Implement this method, if needed. 28 // TODO(antonm): Implement this method, if needed.
29 } 29 }
30 30
31 CodeBlock codegen(WorkItem work) { return new CodeBlock(null, null); } 31 CodeBuffer codegen(WorkItem work) { return new CodeBuffer(); }
32 32
33 void processNativeClasses(Enqueuer world, 33 void processNativeClasses(Enqueuer world,
34 Collection<LibraryElement> libraries) { 34 Collection<LibraryElement> libraries) {
35 } 35 }
36 36
37 /** 37 /**
38 * Adds given class element with its member element to resolved classes 38 * Adds given class element with its member element to resolved classes
39 * collections. 39 * collections.
40 */ 40 */
41 void addMemberToClass(Element element, ClassElement classElement) { 41 void addMemberToClass(Element element, ClassElement classElement) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 compiler.assembledCode = ''' 128 compiler.assembledCode = '''
129 main() { 129 main() {
130 final bailout_reason = "${e.reason}"; 130 final bailout_reason = "${e.reason}";
131 } 131 }
132 '''; 132 ''';
133 } 133 }
134 } 134 }
135 135
136 log(String message) => compiler.log('[DartBackend] $message'); 136 log(String message) => compiler.log('[DartBackend] $message');
137 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698