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

Side by Side Diff: pkg/dart2js_incremental/lib/caching_compiler.dart

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 11 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart2js_incremental; 5 part of dart2js_incremental;
6 6
7 /// Do not call this method directly. It will be made private. 7 /// Do not call this method directly. It will be made private.
8 // TODO(ahe): Make this method private. 8 // TODO(ahe): Make this method private.
9 Future<Compiler> reuseCompiler( 9 Future<Compiler> reuseCompiler(
10 {DiagnosticHandler diagnosticHandler, 10 {DiagnosticHandler diagnosticHandler,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ..cachedClassesUsingTypeVariableTests = null; 125 ..cachedClassesUsingTypeVariableTests = null;
126 126
127 backend.emitter.oldEmitter.interceptorEmitter 127 backend.emitter.oldEmitter.interceptorEmitter
128 ..interceptorInvocationNames.clear(); 128 ..interceptorInvocationNames.clear();
129 129
130 backend.emitter.oldEmitter.metadataEmitter 130 backend.emitter.oldEmitter.metadataEmitter
131 ..globalMetadata.clear() 131 ..globalMetadata.clear()
132 ..globalMetadataMap.clear(); 132 ..globalMetadataMap.clear();
133 133
134 backend.emitter.nativeEmitter 134 backend.emitter.nativeEmitter
135 ..nativeBuffer.clear()
136 ..nativeClasses.clear() 135 ..nativeClasses.clear()
137 ..nativeMethods.clear(); 136 ..nativeMethods.clear();
138 137
139 backend.emitter.readTypeVariables.clear(); 138 backend.emitter.readTypeVariables.clear();
140 139
141 backend.emitter.oldEmitter 140 backend.emitter.oldEmitter
142 ..outputBuffers.clear() 141 ..outputBuffers.clear()
143 ..deferredConstants.clear()
144 ..isolateProperties = null 142 ..isolateProperties = null
145 ..classesCollector = null 143 ..classesCollector = null
146 ..neededClasses.clear() 144 ..neededClasses.clear()
147 ..outputClassLists.clear() 145 ..outputClassLists.clear()
148 ..nativeClasses.clear() 146 ..nativeClasses.clear()
149 ..mangledFieldNames.clear() 147 ..mangledFieldNames.clear()
150 ..mangledGlobalFieldNames.clear() 148 ..mangledGlobalFieldNames.clear()
151 ..recordedMangledNames.clear() 149 ..recordedMangledNames.clear()
152 ..additionalProperties.clear() 150 ..additionalProperties.clear()
153 ..clearCspPrecompiledNodes() 151 ..clearCspPrecompiledNodes()
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 final Map<String, String> output = new Map<String, String>(); 201 final Map<String, String> output = new Map<String, String>();
204 202
205 EventSink<String> call(String name, String extension) { 203 EventSink<String> call(String name, String extension) {
206 return new StringEventSink((String data) { 204 return new StringEventSink((String data) {
207 output['$name.$extension'] = data; 205 output['$name.$extension'] = data;
208 }); 206 });
209 } 207 }
210 208
211 String operator[] (String key) => output[key]; 209 String operator[] (String key) => output[key];
212 } 210 }
OLDNEW
« no previous file with comments | « pkg/compiler/samples/jsonify/jsonify.dart ('k') | pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698