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

Unified Diff: pkg/compiler/lib/src/js_emitter/type_test_registry.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/type_test_registry.dart
diff --git a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
index c1ff34203557e1a85a88203efec3353f8cfa8f1d..040a4ebcb4f890083d3d14b7e43f7c07255f3b5e 100644
--- a/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
+++ b/pkg/compiler/lib/src/js_emitter/type_test_registry.dart
@@ -37,8 +37,9 @@ class TypeTestRegistry {
}
final Compiler compiler;
+ final ClosedWorld closedWorld;
- TypeTestRegistry(this.compiler);
+ TypeTestRegistry(this.compiler, this.closedWorld);
JavaScriptBackend get backend => compiler.backend;
@@ -105,8 +106,7 @@ class TypeTestRegistry {
return false;
} else if (function.isInstanceMember) {
if (!function.enclosingClass.isClosure) {
- return compiler.codegenWorld
- .hasInvokedGetter(function, compiler.closedWorld);
+ return compiler.codegenWorld.hasInvokedGetter(function, closedWorld);
}
}
return false;
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart ('k') | pkg/dart2js_incremental/lib/caching_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698