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

Unified Diff: pkg/compiler/lib/src/js_emitter/startup_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/startup_emitter/emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
index 407979d7d0f4ea86057622c2eb6aa77f4c442f50..bc3bfb91d2b378288760e56ee439b4b2584129a1 100644
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart
@@ -15,6 +15,7 @@ import '../../elements/elements.dart'
show ClassElement, Element, FieldElement, MethodElement;
import '../../js/js.dart' as js;
import '../../js_backend/js_backend.dart' show JavaScriptBackend, Namer;
+import '../../js_backend/interceptor_data.dart';
import '../../world.dart' show ClosedWorld;
import '../js_emitter.dart' show CodeEmitterTask, NativeEmitter;
import '../js_emitter.dart' as emitterTask show Emitter, EmitterFactory;
@@ -33,8 +34,8 @@ class EmitterFactory implements emitterTask.EmitterFactory {
@override
Emitter createEmitter(
CodeEmitterTask task, Namer namer, ClosedWorld closedWorld) {
- return new Emitter(
- task.compiler, namer, task.nativeEmitter, generateSourceMap);
+ return new Emitter(task.compiler, namer, task.nativeEmitter,
+ closedWorld.interceptorData, generateSourceMap);
}
}
@@ -46,11 +47,11 @@ class Emitter implements emitterTask.Emitter {
JavaScriptBackend get _backend => _compiler.backend;
Emitter(Compiler compiler, Namer namer, NativeEmitter nativeEmitter,
- bool shouldGenerateSourceMap)
+ InterceptorData interceptorData, bool shouldGenerateSourceMap)
: this._compiler = compiler,
this.namer = namer,
- _emitter = new ModelEmitter(
- compiler, namer, nativeEmitter, shouldGenerateSourceMap);
+ _emitter = new ModelEmitter(compiler, namer, nativeEmitter,
+ interceptorData, shouldGenerateSourceMap);
DiagnosticReporter get reporter => _compiler.reporter;

Powered by Google App Engine
This is Rietveld 408576698