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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart

Issue 2818463002: Remove Compiler and JavaScriptBackend from interceptor_stub_generator. (Closed)
Patch Set: Created 3 years, 8 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/full_emitter/interceptor_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart
index 07eb13c93f9afaa10cb3b5c8e24f7341f3fe2490..076c5833b41516592bc3f9787230741140f0570d 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/interceptor_emitter.dart
@@ -27,8 +27,19 @@ class InterceptorEmitter extends CodeEmitterHelper {
jsAst.Expression buildGetInterceptorMethod(
jsAst.Name key, Set<ClassEntity> classes) {
- InterceptorStubGenerator stubGenerator =
- new InterceptorStubGenerator(compiler, namer, backend, closedWorld);
+ InterceptorStubGenerator stubGenerator = new InterceptorStubGenerator(
+ compiler.options,
+ compiler.commonElements,
+ backend.emitter,
+ backend.nativeCodegenEnqueuer,
+ backend.constants,
+ namer,
+ backend.nativeData,
+ backend.interceptorData,
+ backend.oneShotInterceptorData,
+ backend.customElementsCodegenAnalysis,
+ compiler.codegenWorldBuilder,
+ closedWorld);
jsAst.Expression function =
stubGenerator.generateGetInterceptorMethod(classes);
@@ -64,8 +75,19 @@ class InterceptorEmitter extends CodeEmitterHelper {
Iterable<jsAst.Name> names =
backend.oneShotInterceptorData.oneShotInterceptorNames;
- InterceptorStubGenerator stubGenerator =
- new InterceptorStubGenerator(compiler, namer, backend, closedWorld);
+ InterceptorStubGenerator stubGenerator = new InterceptorStubGenerator(
+ compiler.options,
+ compiler.commonElements,
+ backend.emitter,
+ backend.nativeCodegenEnqueuer,
+ backend.constants,
+ namer,
+ backend.nativeData,
+ backend.interceptorData,
+ backend.oneShotInterceptorData,
+ backend.customElementsCodegenAnalysis,
+ compiler.codegenWorldBuilder,
+ closedWorld);
String globalObject = namer
.globalObjectForLibrary(backend.commonElements.interceptorsLibrary);
for (jsAst.Name name in names) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698