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

Unified Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_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/startup_emitter/fragment_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
index 21720c61e252bab6a6bd4efc8271aca53fff0f43..875d81cec2d1a633133e9e86f1b2cc6de7fdba33 100644
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
@@ -443,13 +443,10 @@ class FragmentEmitter {
final JavaScriptBackend backend;
final ConstantEmitter constantEmitter;
final ModelEmitter modelEmitter;
+ final InterceptorData _interceptorData;
FragmentEmitter(this.compiler, this.namer, this.backend, this.constantEmitter,
- this.modelEmitter);
-
- InterceptorData get _interceptorData =>
- // TODO(johnniwinther): Pass [InterceptorData] directly?
- modelEmitter.nativeEmitter.interceptorData;
+ this.modelEmitter, this._interceptorData);
js.Expression generateEmbeddedGlobalAccess(String global) =>
modelEmitter.generateEmbeddedGlobalAccess(global);

Powered by Google App Engine
This is Rietveld 408576698