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

Unified Diff: pkg/compiler/lib/src/cps_ir/bounds_checker.dart

Issue 1761903002: dart2js cps: Keep interceptors in a separate field. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase Created 4 years, 10 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/cps_ir/bounds_checker.dart
diff --git a/pkg/compiler/lib/src/cps_ir/bounds_checker.dart b/pkg/compiler/lib/src/cps_ir/bounds_checker.dart
index b357c9958b44be221c14425f98f7c62dd682b583..1197012957cbda481184912f6ec1eac29f463759 100644
--- a/pkg/compiler/lib/src/cps_ir/bounds_checker.dart
+++ b/pkg/compiler/lib/src/cps_ir/bounds_checker.dart
@@ -632,9 +632,9 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
// was not rewritten to GetLength. But if we can prove that the call only
// succeeds for indexables, we can trust that it returns the length.
TypeMask successType =
- types.receiverTypeFor(node.selector, node.dartReceiver.type);
+ types.receiverTypeFor(node.selector, node.receiver.type);
if (types.isDefinitelyIndexable(successType)) {
- valueOf[node] = getLength(node.dartReceiver, currentEffectNumber);
+ valueOf[node] = getLength(node.receiver, currentEffectNumber);
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/backward_null_check_remover.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_fragment.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698