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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart

Issue 602663002: Split interceptor emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
similarity index 97%
rename from sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart
rename to sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
index 603e93b8eb230cca54dd93113bb9649484aab3d9..d2b744cbdb7996852e0425c3391c94f113a3f301 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/interceptor_emitter.dart
@@ -13,19 +13,6 @@ class InterceptorEmitter extends CodeEmitterHelper {
}
}
- Set<ClassElement> interceptorsReferencedFromConstants() {
- Set<ClassElement> classes = new Set<ClassElement>();
- JavaScriptConstantCompiler handler = backend.constants;
- List<Constant> constants = handler.getConstantsForEmission();
- for (Constant constant in constants) {
- if (constant is InterceptorConstant) {
- InterceptorConstant interceptorConstant = constant;
- classes.add(interceptorConstant.dispatchedType.element);
- }
- }
- return classes;
- }
-
void emitGetInterceptorMethod(CodeBuffer buffer,
String key,
Set<ClassElement> classes) {

Powered by Google App Engine
This is Rietveld 408576698