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

Unified Diff: pkg/compiler/lib/src/js_emitter/lazy_emitter/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/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart
index a2e58a5aba4fa14c9517e70ce17cd1f778b9a989..e425a099fcee30fb3b4941608d6e2cb3b9bac6cf 100644
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/emitter.dart
@@ -15,6 +15,7 @@ import '../../elements/elements.dart'
import '../../elements/entities.dart';
import '../../js/js.dart' as js;
import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer;
+import '../../js_backend/interceptor_data.dart' show InterceptorData;
import '../../world.dart' show ClosedWorld;
import '../js_emitter.dart' show CodeEmitterTask, NativeEmitter;
import '../js_emitter.dart' as emitterTask show Emitter, EmitterFactory;
@@ -29,7 +30,8 @@ class EmitterFactory implements emitterTask.EmitterFactory {
@override
Emitter createEmitter(
CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) {
- return new Emitter(task.compiler, namer, task.nativeEmitter);
+ return new Emitter(
+ task.compiler, namer, task.nativeEmitter, closedWorld.interceptorData);
}
}
@@ -40,10 +42,12 @@ class Emitter implements emitterTask.Emitter {
JavaScriptBackend get _backend => _compiler.backend;
- Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter)
+ Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter,
+ InterceptorData interceptorData)
: this._compiler = compiler,
this.namer = namer,
- _emitter = new ModelEmitter(compiler, namer, nativeEmitter);
+ _emitter =
+ new ModelEmitter(compiler, namer, nativeEmitter, interceptorData);
DiagnosticReporter get reporter => _compiler.reporter;

Powered by Google App Engine
This is Rietveld 408576698