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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 2289353003: Make Enqueuer a pure interface. (Closed)
Patch Set: Created 4 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/enqueuer.dart ('k') | tests/compiler/dart2js/exit_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698