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

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

Issue 1754253002: dart2js cps: Bugfix in insert refinement pass. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/insert_refinements.dart
diff --git a/pkg/compiler/lib/src/cps_ir/insert_refinements.dart b/pkg/compiler/lib/src/cps_ir/insert_refinements.dart
index ef291b132bcf58515f776120314afe4d1913a361..61b019c78779bddf5e80c51b410172c3170fd281 100644
--- a/pkg/compiler/lib/src/cps_ir/insert_refinements.dart
+++ b/pkg/compiler/lib/src/cps_ir/insert_refinements.dart
@@ -73,10 +73,6 @@ class InsertRefinements extends TrampolineRecursiveVisitor implements Pass {
let.insertAbove(use);
}
- Primitive unfoldInterceptor(Primitive prim) {
- return prim is Interceptor ? prim.input : prim;
- }
-
/// Sets [refined] to be the current refinement for its value, and pushes an
/// action that will restore the original scope again.
///
@@ -140,7 +136,7 @@ class InsertRefinements extends TrampolineRecursiveVisitor implements Pass {
// If the call is intercepted, we want to refine the actual receiver,
// not the interceptor.
- Primitive receiver = unfoldInterceptor(node.receiver);
+ Primitive receiver = node.dartReceiver;
// Do not try to refine the receiver of closure calls; the class world
// does not know about closure classes.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698