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

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

Issue 861093002: Support intercepted getters, setters and index operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/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 6dc6f9f635931c0ca303a9c7b7451f3e7b35303a..d3ffc8f219029033573bdfa4ff9a61a7af9b154b 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -198,18 +198,18 @@ class InvokeStatic extends Expression implements Invoke {
/// Converting a method to a function object is treated as a getter invocation.
class InvokeMethod extends Expression implements Invoke {
Reference<Primitive> receiver;
- final Selector selector;
+ Selector selector;
final Reference<Continuation> continuation;
final List<Reference<Primitive>> arguments;
InvokeMethod(Primitive receiver,
Selector selector,
- Continuation cont,
- List<Primitive> args)
+ Continuation continuation,
+ List<Primitive> arguments)
: this.internal(new Reference<Primitive>(receiver),
selector,
- new Reference<Continuation>(cont),
- _referenceList(args));
+ new Reference<Continuation>(continuation),
+ _referenceList(arguments));
InvokeMethod.internal(this.receiver,
this.selector,
@@ -224,8 +224,6 @@ class InvokeMethod extends Expression implements Invoke {
(selector.kind == SelectorKind.INDEX && arguments.length == 2));
}
- bool get isIntercepted => receiver.definition is Interceptor;
-
accept(Visitor visitor) => visitor.visitInvokeMethod(this);
}

Powered by Google App Engine
This is Rietveld 408576698