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 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2141 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); | 2141 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); |
2142 compiler.outputProvider( | 2142 compiler.outputProvider( |
2143 compiler.options.deferredMapUri.path, 'deferred_map') | 2143 compiler.options.deferredMapUri.path, 'deferred_map') |
2144 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) | 2144 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) |
2145 ..close(); | 2145 ..close(); |
2146 } | 2146 } |
2147 | 2147 |
2148 void invalidateCaches() { | 2148 void invalidateCaches() { |
2149 if (!compiler.options.hasIncrementalSupport) return; | 2149 if (!compiler.options.hasIncrementalSupport) return; |
2150 if (cachedElements.isEmpty) return; | 2150 if (cachedElements.isEmpty) return; |
2151 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { | 2151 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { |
2152 if (element.isInstanceMember) { | 2152 if (element.isInstanceMember) { |
2153 cachedClassBuilders.remove(element.enclosingClass); | 2153 cachedClassBuilders.remove(element.enclosingClass); |
2154 | 2154 |
2155 nativeEmitter.cachedBuilders.remove(element.enclosingClass); | 2155 nativeEmitter.cachedBuilders.remove(element.enclosingClass); |
2156 } | 2156 } |
2157 } | 2157 } |
2158 } | 2158 } |
2159 } | 2159 } |
OLD | NEW |