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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart

Issue 880923003: dart2js: store typeToInterceptorMap in the model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart
index d4c3e2f94bda78bf8dea02a664bf2dae5a288837..6db7c711f7ee45cabecf472b20817c2a1f1da389 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/interceptor_emitter.dart
@@ -87,10 +87,8 @@ class InterceptorEmitter extends CodeEmitterHelper {
* `findInterceptorForType`. See declaration of `typeToInterceptor` in
* `interceptors.dart`.
*/
- void emitTypeToInterceptorMap(CodeOutput output) {
- InterceptorStubGenerator stubGenerator =
- new InterceptorStubGenerator(compiler, namer, backend);
- jsAst.Expression array = stubGenerator.generateTypeToInterceptorMap();
+ void emitTypeToInterceptorMap(Program program, CodeOutput output) {
+ jsAst.Expression array = program.typeToInterceptorMap;
if (array == null) return;
jsAst.Expression typeToInterceptorMap = emitter

Powered by Google App Engine
This is Rietveld 408576698