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

Unified Diff: pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart

Issue 2568723007: Create Namer and Emitter on codegen start. (Closed)
Patch Set: Small fix. Created 4 years 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/interceptor_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
index 265c946b25b08261d16b624c5b5e7ef720b12d69..9a7d2cc72fddcfb880536f18bb1fd7e0e3d54a84 100644
--- a/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
@@ -8,8 +8,10 @@ class InterceptorStubGenerator {
final Compiler compiler;
final Namer namer;
final JavaScriptBackend backend;
+ final ClosedWorld closedWorld;
- InterceptorStubGenerator(this.compiler, this.namer, this.backend);
+ InterceptorStubGenerator(
+ this.compiler, this.namer, this.backend, this.closedWorld);
Emitter get emitter => backend.emitter.emitter;
@@ -248,8 +250,8 @@ class InterceptorStubGenerator {
bool containsJsIndexable =
helpers.jsIndexingBehaviorInterface.isResolved &&
classes.any((cls) {
- return compiler.closedWorld
- .isSubtypeOf(cls, helpers.jsIndexingBehaviorInterface);
+ return closedWorld.isSubtypeOf(
+ cls, helpers.jsIndexingBehaviorInterface);
});
// The index set operator requires a check on its set value in
// checked mode, so we don't optimize the interceptor if the
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/js_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698