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

Unified Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart

Issue 2872613003: Pass data objects directly to NativeEmitter (Closed)
Patch Set: Cleanup Created 3 years, 7 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
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>();
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698