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

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

Issue 569583002: Make dart2js deferred loading work in cps mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years, 3 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 | samples/samples.status » ('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 Compiler reuseCompiler( 9 Compiler reuseCompiler(
10 {DiagnosticHandler diagnosticHandler, 10 {DiagnosticHandler diagnosticHandler,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 ..classesCollector = null 121 ..classesCollector = null
122 ..neededClasses.clear() 122 ..neededClasses.clear()
123 ..outputClassLists.clear() 123 ..outputClassLists.clear()
124 ..nativeClasses.clear() 124 ..nativeClasses.clear()
125 ..mangledFieldNames.clear() 125 ..mangledFieldNames.clear()
126 ..mangledGlobalFieldNames.clear() 126 ..mangledGlobalFieldNames.clear()
127 ..recordedMangledNames.clear() 127 ..recordedMangledNames.clear()
128 ..additionalProperties.clear() 128 ..additionalProperties.clear()
129 ..readTypeVariables.clear() 129 ..readTypeVariables.clear()
130 ..instantiatedClasses = null 130 ..instantiatedClasses = null
131 ..precompiledFunction.clear() 131 ..clearCspPrecompiledNodes()
132 ..precompiledConstructorNames.clear()
133 ..hasMakeConstantList = false 132 ..hasMakeConstantList = false
134 ..elementDescriptors.clear(); 133 ..elementDescriptors.clear();
135 134
136 backend 135 backend
137 ..preMirrorsMethodCount = 0; 136 ..preMirrorsMethodCount = 0;
138 137
139 if (reuseLibrary == null) { 138 if (reuseLibrary == null) {
140 reuseLibrary = (LibraryElement library) { 139 reuseLibrary = (LibraryElement library) {
141 return 140 return
142 library.isPlatformLibrary || 141 library.isPlatformLibrary ||
143 (packagesAreImmutable && library.isPackageLibrary); 142 (packagesAreImmutable && library.isPackageLibrary);
144 }; 143 };
145 } 144 }
146 compiler.libraryLoader.reset(reuseLibrary: reuseLibrary); 145 compiler.libraryLoader.reset(reuseLibrary: reuseLibrary);
147 } 146 }
148 oldTag.makeCurrent(); 147 oldTag.makeCurrent();
149 return compiler; 148 return compiler;
150 } 149 }
OLDNEW
« no previous file with comments | « no previous file | samples/samples.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698