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

Unified Diff: pkg/compiler/lib/src/cps_ir/insert_refinements.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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart » ('j') | 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 61b019c78779bddf5e80c51b410172c3170fd281..d5412c6ad342300d8484466c12fcab2e1d058e72 100644
--- a/pkg/compiler/lib/src/cps_ir/insert_refinements.dart
+++ b/pkg/compiler/lib/src/cps_ir/insert_refinements.dart
@@ -111,7 +111,7 @@ class InsertRefinements extends TrampolineRecursiveVisitor implements Pass {
// Note: node.dartArgumentsLength is shorter when the call doesn't include
// some optional arguments.
- int length = min(argumentSuccessTypes.length, node.dartArgumentsLength);
+ int length = min(argumentSuccessTypes.length, node.argumentRefs.length);
for (int i = 0; i < length; i++) {
TypeMask argSuccessType = argumentSuccessTypes[i];
@@ -119,7 +119,7 @@ class InsertRefinements extends TrampolineRecursiveVisitor implements Pass {
if (argSuccessType == types.dynamicType) continue;
applyRefinement(node.parent,
- new Refinement(node.dartArgument(i), argSuccessType));
+ new Refinement(node.argument(i), argSuccessType));
}
}
@@ -136,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 = node.dartReceiver;
+ Primitive receiver = node.receiver;
// Do not try to refine the receiver of closure calls; the class world
// does not know about closure classes.
@@ -233,8 +233,8 @@ class InsertRefinements extends TrampolineRecursiveVisitor implements Pass {
}
if (condition is InvokeMethod && condition.selector == Selectors.equals) {
- refineEquality(condition.dartReceiver,
- condition.dartArgument(0),
+ refineEquality(condition.receiver,
+ condition.argument(0),
trueCont,
falseCont);
return;
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698