| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | |
| 102 ..compilationFailed = false; | 101 ..compilationFailed = false; |
| 103 JavaScriptBackend backend = compiler.backend; | 102 JavaScriptBackend backend = compiler.backend; |
| 104 | 103 |
| 105 // TODO(ahe): Seems this cache only serves to tell | 104 // TODO(ahe): Seems this cache only serves to tell |
| 106 // [OldEmitter.invalidateCaches] if it was invoked on a full compile (in | 105 // [OldEmitter.invalidateCaches] if it was invoked on a full compile (in |
| 107 // 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 |
| 108 // compilation (in which case, holders/owners of newly compiled methods | 107 // compilation (in which case, holders/owners of newly compiled methods |
| 109 // must be invalidated). | 108 // must be invalidated). |
| 110 backend.emitter.oldEmitter.cachedElements.add(null); | 109 backend.emitter.oldEmitter.cachedElements.add(null); |
| 111 | 110 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 library.isPlatformLibrary || | 165 library.isPlatformLibrary || |
| 167 (packagesAreImmutable && library.isPackageLibrary)); | 166 (packagesAreImmutable && library.isPackageLibrary)); |
| 168 }; | 167 }; |
| 169 } | 168 } |
| 170 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { | 169 return compiler.libraryLoader.resetAsync(reuseLibrary).then((_) { |
| 171 oldTag.makeCurrent(); | 170 oldTag.makeCurrent(); |
| 172 return compiler; | 171 return compiler; |
| 173 }); | 172 }); |
| 174 } | 173 } |
| 175 } | 174 } |
| OLD | NEW |