Index: pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
index 407979d7d0f4ea86057622c2eb6aa77f4c442f50..bc3bfb91d2b378288760e56ee439b4b2584129a1 100644 |
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart |
@@ -15,6 +15,7 @@ import '../../elements/elements.dart' |
show ClassElement, Element, FieldElement, MethodElement; |
import '../../js/js.dart' as js; |
import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer; |
+import '../../js_backend/interceptor_data.dart'; |
import '../../world.dart' show ClosedWorld; |
import '../js_emitter.dart' show CodeEmitterTask, NativeEmitter; |
import '../js_emitter.dart' as emitterTask show Emitter, EmitterFactory; |
@@ -33,8 +34,8 @@ class EmitterFactory implements emitterTask.EmitterFactory { |
@override |
Emitter createEmitter( |
CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) { |
- return new Emitter( |
- task.compiler, namer, task.nativeEmitter, generateSourceMap); |
+ return new Emitter(task.compiler, namer, task.nativeEmitter, |
+ closedWorld.interceptorData, generateSourceMap); |
} |
} |
@@ -46,11 +47,11 @@ class Emitter implements emitterTask.Emitter { |
JavaScriptBackend get _backend => _compiler.backend; |
Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter, |
- bool shouldGenerateSourceMap) |
+ InterceptorData interceptorData, bool shouldGenerateSourceMap) |
: this._compiler = compiler, |
this.namer = namer, |
- _emitter = new ModelEmitter( |
- compiler, namer, nativeEmitter, shouldGenerateSourceMap); |
+ _emitter = new ModelEmitter(compiler, namer, nativeEmitter, |
+ interceptorData, shouldGenerateSourceMap); |
DiagnosticReporter get reporter => _compiler.reporter; |