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

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

Issue 2366363002: Move remaining functionality from ClassWorld to ClosedWorld (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 627e7195848df298029073c2c1b495a08942fd82..9aa2d98dd339645993dc3367293532c7c205f48a 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -378,7 +378,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
ClosedWorld world = compiler.closedWorld;
bool applies(Element element) {
- return selector.applies(element, backend) &&
+ return selector.applies(element) &&
(mask == null || mask.canHit(element, selector, world));
}
@@ -427,7 +427,7 @@ class SsaInstructionSimplifier extends HBaseVisitor
return result;
}
} else if (selector.isGetter) {
- if (selector.applies(helpers.jsIndexableLength, backend)) {
+ if (selector.applies(helpers.jsIndexableLength)) {
HInstruction optimized = tryOptimizeLengthInterceptedGetter(node);
if (optimized != null) return optimized;
}

Powered by Google App Engine
This is Rietveld 408576698