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

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

Issue 1335933004: dart2js cps: Set a flag on InvokeMethod when the receiver is intercepted (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Also use getDartReceiver, getDartArgument in constant folding Created 5 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.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/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index d93de7b50d0fc73853e52e866bf4cfdc9468c2a9..f2daa74d19ae196babfce074e600b47d234c0b6a 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -405,6 +405,17 @@ class InvokeMethod extends CallExpression {
final Reference<Continuation> continuation;
final SourceInformation sourceInformation;
+ /// If true, the [receiver] is intercepted and the actual receiver is in
+ /// the first argument. Otherwise, the [receiver] is the actual receiver.
+ ///
+ /// This flag is always false for non-intercepted selectors, but it may also
+ /// be false for intercepted selectors after dummy receiver optimization
+ /// (in this case the first argument is a dummy value).
+ ///
+ /// It is always false before the unsugaring pass, where interceptors have
+ /// not yet been introduced.
+ bool receiverIsIntercepted = false;
+
/// If true, it is known that the receiver cannot be `null`.
bool receiverIsNotNull = false;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_propagation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698