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

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

Issue 824103005: Revert "Remove Compiler.assembledCode." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 compiler 91 compiler
92 ..outputProvider = outputProvider 92 ..outputProvider = outputProvider
93 ..provider = inputProvider 93 ..provider = inputProvider
94 ..handler = diagnosticHandler 94 ..handler = diagnosticHandler
95 ..enqueuer.resolution.queueIsClosed = false 95 ..enqueuer.resolution.queueIsClosed = false
96 ..enqueuer.resolution.hasEnqueuedReflectiveElements = false 96 ..enqueuer.resolution.hasEnqueuedReflectiveElements = false
97 ..enqueuer.resolution.hasEnqueuedReflectiveStaticFields = false 97 ..enqueuer.resolution.hasEnqueuedReflectiveStaticFields = false
98 ..enqueuer.codegen.queueIsClosed = false 98 ..enqueuer.codegen.queueIsClosed = false
99 ..enqueuer.codegen.hasEnqueuedReflectiveElements = false 99 ..enqueuer.codegen.hasEnqueuedReflectiveElements = false
100 ..enqueuer.codegen.hasEnqueuedReflectiveStaticFields = false 100 ..enqueuer.codegen.hasEnqueuedReflectiveStaticFields = false
101 ..assembledCode = null
101 ..compilationFailed = false; 102 ..compilationFailed = false;
102 JavaScriptBackend backend = compiler.backend; 103 JavaScriptBackend backend = compiler.backend;
103 104
104 // TODO(ahe): Seems this cache only serves to tell 105 // TODO(ahe): Seems this cache only serves to tell
105 // [OldEmitter.invalidateCaches] if it was invoked on a full compile (in 106 // [OldEmitter.invalidateCaches] if it was invoked on a full compile (in
106 // which case nothing should be invalidated), or if it is an incremental 107 // which case nothing should be invalidated), or if it is an incremental
107 // compilation (in which case, holders/owners of newly compiled methods 108 // compilation (in which case, holders/owners of newly compiled methods
108 // must be invalidated). 109 // must be invalidated).
109 backend.emitter.oldEmitter.cachedElements.add(null); 110 backend.emitter.oldEmitter.cachedElements.add(null);
110 111
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 library.isPlatformLibrary || 166 library.isPlatformLibrary ||
166 (packagesAreImmutable && library.isPackageLibrary)); 167 (packagesAreImmutable && library.isPackageLibrary));
167 }; 168 };
168 } 169 }
169 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { 170 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) {
170 oldTag.makeCurrent(); 171 oldTag.makeCurrent();
171 return compiler; 172 return compiler;
172 }); 173 });
173 } 174 }
174 } 175 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | tests/compiler/dart2js/analyze_only_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698