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

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

Issue 656043003: dart2js: restructure emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 2 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 | sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.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) 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ..isolateProperties = null 128 ..isolateProperties = null
129 ..classesCollector = null 129 ..classesCollector = null
130 ..neededClasses.clear() 130 ..neededClasses.clear()
131 ..outputClassLists.clear() 131 ..outputClassLists.clear()
132 ..nativeClasses.clear() 132 ..nativeClasses.clear()
133 ..mangledFieldNames.clear() 133 ..mangledFieldNames.clear()
134 ..mangledGlobalFieldNames.clear() 134 ..mangledGlobalFieldNames.clear()
135 ..recordedMangledNames.clear() 135 ..recordedMangledNames.clear()
136 ..additionalProperties.clear() 136 ..additionalProperties.clear()
137 ..clearCspPrecompiledNodes() 137 ..clearCspPrecompiledNodes()
138 ..hasMakeConstantList = false
139 ..elementDescriptors.clear(); 138 ..elementDescriptors.clear();
140 139
140 backend.emitter
141 ..outputContainsConstantList = false;
142
141 backend 143 backend
142 ..preMirrorsMethodCount = 0; 144 ..preMirrorsMethodCount = 0;
143 145
144 if (reuseLibrary == null) { 146 if (reuseLibrary == null) {
145 reuseLibrary = (LibraryElement library) { 147 reuseLibrary = (LibraryElement library) {
146 return new Future.value( 148 return new Future.value(
147 library.isPlatformLibrary || 149 library.isPlatformLibrary ||
148 (packagesAreImmutable && library.isPackageLibrary)); 150 (packagesAreImmutable && library.isPackageLibrary));
149 }; 151 };
150 } 152 }
151 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { 153 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) {
152 oldTag.makeCurrent(); 154 oldTag.makeCurrent();
153 return compiler; 155 return compiler;
154 }); 156 });
155 } 157 }
156 } 158 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698