| OLD | NEW |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // [OldEmitter.invalidateCaches] if it was invoked on a full compile (in | 105 // [OldEmitter.invalidateCaches] if it was invoked on a full compile (in |
| 106 // which case nothing should be invalidated), or if it is an incremental | 106 // which case nothing should be invalidated), or if it is an incremental |
| 107 // compilation (in which case, holders/owners of newly compiled methods | 107 // compilation (in which case, holders/owners of newly compiled methods |
| 108 // must be invalidated). | 108 // must be invalidated). |
| 109 backend.emitter.oldEmitter.cachedElements.add(null); | 109 backend.emitter.oldEmitter.cachedElements.add(null); |
| 110 | 110 |
| 111 compiler.enqueuer.codegen | 111 compiler.enqueuer.codegen |
| 112 ..newlyEnqueuedElements.clear() | 112 ..newlyEnqueuedElements.clear() |
| 113 ..newlySeenSelectors.clear(); | 113 ..newlySeenSelectors.clear(); |
| 114 | 114 |
| 115 backend.emitter.oldEmitter.containerBuilder | |
| 116 ..staticGetters.clear(); | |
| 117 | |
| 118 backend.emitter.oldEmitter.nsmEmitter | 115 backend.emitter.oldEmitter.nsmEmitter |
| 119 ..trivialNsmHandlers.clear(); | 116 ..trivialNsmHandlers.clear(); |
| 120 | 117 |
| 121 backend.emitter.typeTestRegistry | 118 backend.emitter.typeTestRegistry |
| 122 ..checkedClasses = null | 119 ..checkedClasses = null |
| 123 ..checkedFunctionTypes = null | 120 ..checkedFunctionTypes = null |
| 124 ..rtiNeededClasses.clear() | 121 ..rtiNeededClasses.clear() |
| 125 ..cachedClassesUsingTypeVariableTests = null; | 122 ..cachedClassesUsingTypeVariableTests = null; |
| 126 | 123 |
| 127 backend.emitter.oldEmitter.interceptorEmitter | 124 backend.emitter.oldEmitter.interceptorEmitter |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 final Map<String, String> output = new Map<String, String>(); | 200 final Map<String, String> output = new Map<String, String>(); |
| 204 | 201 |
| 205 EventSink<String> call(String name, String extension) { | 202 EventSink<String> call(String name, String extension) { |
| 206 return new StringEventSink((String data) { | 203 return new StringEventSink((String data) { |
| 207 output['$name.$extension'] = data; | 204 output['$name.$extension'] = data; |
| 208 }); | 205 }); |
| 209 } | 206 } |
| 210 | 207 |
| 211 String operator[] (String key) => output[key]; | 208 String operator[] (String key) => output[key]; |
| 212 } | 209 } |
| OLD | NEW |