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

Unified Diff: pkg/compiler/lib/src/js_emitter/lazy_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
Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
index be05e164d98b734fc6aabce9da1e3cab52b32ab6..94fccf2244245ac53c77a4cc689a11e787c1cf4a 100644
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
@@ -39,6 +39,7 @@ class ModelEmitter {
final Namer namer;
ConstantEmitter constantEmitter;
final NativeEmitter nativeEmitter;
+ final InterceptorData _interceptorData;
JavaScriptBackend get backend => compiler.backend;
@@ -50,17 +51,12 @@ class ModelEmitter {
static const String typeNameProperty = r"builtin$cls";
- ModelEmitter(Compiler compiler, Namer namer, this.nativeEmitter)
- : this.compiler = compiler,
- this.namer = namer {
+ ModelEmitter(
+ this.compiler, this.namer, this.nativeEmitter, this._interceptorData) {
this.constantEmitter = new ConstantEmitter(
compiler, namer, this.generateConstantReference, constantListGenerator);
}
- InterceptorData get _interceptorData =>
- // TODO(johnniwinther): Pass [InterceptorData] directly?
- nativeEmitter.interceptorData;
-
js.Expression constantListGenerator(js.Expression array) {
// TODO(floitsch): remove hard-coded name.
return js.js('makeConstList(#)', [array]);
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698