| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library dart2js.js_emitter.full_emitter; | 5 library dart2js.js_emitter.full_emitter; |
| 6 | 6 |
| 7 import 'dart:collection' show HashMap; | 7 import 'dart:collection' show HashMap; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| (...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 2178 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
| 2179 ..close(); | 2179 ..close(); |
| 2180 } | 2180 } |
| 2181 | 2181 |
| 2182 void invalidateCaches() { | 2182 void invalidateCaches() { |
| 2183 if (!compiler.options.hasIncrementalSupport) return; | 2183 if (!compiler.options.hasIncrementalSupport) return; |
| 2184 if (cachedElements.isEmpty) return; | 2184 if (cachedElements.isEmpty) return; |
| 2185 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { | 2185 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { |
| 2186 if (element.isInstanceMember) { | 2186 if (element.isInstanceMember) { |
| 2187 cachedClassBuilders.remove(element.enclosingClass); | 2187 cachedClassBuilders.remove(element.enclosingClass); |
| 2188 | |
| 2189 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | |
| 2190 } | 2188 } |
| 2191 } | 2189 } |
| 2192 } | 2190 } |
| 2193 } | 2191 } |
| OLD | NEW |