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

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

Issue 2646733006: Use entities in native_emitter.dart (Closed)
Patch Set: Updated cf. comments. Created 3 years, 11 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 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/namer.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698