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

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

Issue 602663002: Split interceptor emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ..trivialNsmHandlers.clear(); 98 ..trivialNsmHandlers.clear();
99 99
100 backend.emitter.typeTestEmitter 100 backend.emitter.typeTestEmitter
101 ..checkedClasses = null 101 ..checkedClasses = null
102 ..checkedFunctionTypes = null 102 ..checkedFunctionTypes = null
103 ..checkedGenericFunctionTypes.clear() 103 ..checkedGenericFunctionTypes.clear()
104 ..checkedNonGenericFunctionTypes.clear() 104 ..checkedNonGenericFunctionTypes.clear()
105 ..rtiNeededClasses.clear() 105 ..rtiNeededClasses.clear()
106 ..cachedClassesUsingTypeVariableTests = null; 106 ..cachedClassesUsingTypeVariableTests = null;
107 107
108 backend.emitter.interceptorEmitter 108 backend.emitter.oldEmitter.interceptorEmitter
109 ..interceptorInvocationNames.clear(); 109 ..interceptorInvocationNames.clear();
110 110
111 backend.emitter.oldEmitter.metadataEmitter 111 backend.emitter.oldEmitter.metadataEmitter
112 ..globalMetadata.clear() 112 ..globalMetadata.clear()
113 ..globalMetadataMap.clear(); 113 ..globalMetadataMap.clear();
114 114
115 backend.emitter.nativeEmitter 115 backend.emitter.nativeEmitter
116 ..nativeBuffer.clear() 116 ..nativeBuffer.clear()
117 ..nativeClasses.clear() 117 ..nativeClasses.clear()
118 ..nativeMethods.clear(); 118 ..nativeMethods.clear();
(...skipping 27 matching lines...) Expand all
146 library.isPlatformLibrary || 146 library.isPlatformLibrary ||
147 (packagesAreImmutable && library.isPackageLibrary)); 147 (packagesAreImmutable && library.isPackageLibrary));
148 }; 148 };
149 } 149 }
150 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { 150 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) {
151 oldTag.makeCurrent(); 151 oldTag.makeCurrent();
152 return compiler; 152 return compiler;
153 }); 153 });
154 } 154 }
155 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698