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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments Created 4 years, 3 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/parameter_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart
index fa01ef9b1c5599180ead103680b9dab7330b1dd3..5dfac369489fd4f97b66aec24f239866367a879b 100644
--- a/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart
@@ -248,7 +248,9 @@ class ParameterStubGenerator {
new Selector.call(member.memberName, selector.callStructure);
renamedCallSelectors.add(renamedSelector);
- if (!renamedSelector.appliesUnnamed(member, compiler.world)) continue;
+ if (!renamedSelector.appliesUnnamed(member, compiler.closedWorld)) {
+ continue;
+ }
if (untypedSelectors.add(renamedSelector)) {
ParameterStubMethod stub =
@@ -264,8 +266,9 @@ class ParameterStubGenerator {
// call-selectors (and they are in the renamedCallSelectors set.
for (Selector selector in selectors.keys) {
if (renamedCallSelectors.contains(selector)) continue;
- if (!selector.appliesUnnamed(member, compiler.world)) continue;
- if (!selectors[selector].applies(member, selector, compiler.world)) {
+ if (!selector.appliesUnnamed(member, compiler.closedWorld)) continue;
+ if (!selectors[selector]
+ .applies(member, selector, compiler.closedWorld)) {
continue;
}

Powered by Google App Engine
This is Rietveld 408576698