Index: pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
index a12d14ca540ecf31169f2faaad76bb23bbb60076..732c7ecae6e3b4f3a8714abca10a79ed963a8870 100644 |
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart |
@@ -59,6 +59,7 @@ class ModelEmitter { |
ConstantEmitter constantEmitter; |
final NativeEmitter nativeEmitter; |
final bool shouldGenerateSourceMap; |
+ final InterceptorData _interceptorData; |
// The full code that is written to each hunk part-file. |
final Map<Fragment, CodeOutput> outputBuffers = <Fragment, CodeOutput>{}; |
@@ -74,10 +75,8 @@ class ModelEmitter { |
static const String typeNameProperty = r"builtin$cls"; |
- ModelEmitter(Compiler compiler, Namer namer, this.nativeEmitter, |
- this.shouldGenerateSourceMap) |
- : this.compiler = compiler, |
- this.namer = namer { |
+ ModelEmitter(this.compiler, this.namer, this.nativeEmitter, |
+ this._interceptorData, this.shouldGenerateSourceMap) { |
this.constantEmitter = new ConstantEmitter( |
compiler, namer, this.generateConstantReference, constantListGenerator); |
} |
@@ -153,8 +152,8 @@ class ModelEmitter { |
List<DeferredFragment> deferredFragments = |
new List<DeferredFragment>.from(program.deferredFragments); |
- FragmentEmitter fragmentEmitter = |
- new FragmentEmitter(compiler, namer, backend, constantEmitter, this); |
+ FragmentEmitter fragmentEmitter = new FragmentEmitter( |
+ compiler, namer, backend, constantEmitter, this, _interceptorData); |
Map<DeferredFragment, _DeferredFragmentHash> deferredHashTokens = |
new Map<DeferredFragment, _DeferredFragmentHash>(); |