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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 2320583002: Introduce OpenWorld. (Closed)
Patch Set: 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/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index 7514ed7c651233fb18b26653e4b311a5be6fca2c..746eb7230671df84387a13d40a5b70dc52bde050 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -19,7 +19,7 @@ import '../types/types.dart';
import '../universe/selector.dart' show Selector;
import '../universe/side_effects.dart' show SideEffects;
import '../util/util.dart';
-import '../world.dart' show ClassWorld, World;
+import '../world.dart' show ClassWorld;
import 'interceptor_simplifier.dart';
import 'nodes.dart';
import 'types.dart';
@@ -373,7 +373,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
ClassWorld world = compiler.closedWorld;
bool applies(Element element) {
- return selector.applies(element, world) &&
+ return selector.applies(element, backend) &&
(mask == null || mask.canHit(element, selector, world));
}
@@ -422,7 +422,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
return result;
}
} else if (selector.isGetter) {
- if (selector.applies(helpers.jsIndexableLength, world)) {
+ if (selector.applies(helpers.jsIndexableLength, backend)) {
HInstruction optimized = tryOptimizeLengthInterceptedGetter(node);
if (optimized != null) return optimized;
}

Powered by Google App Engine
This is Rietveld 408576698