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

Unified Diff: sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart

Issue 349923004: Add support for superSend to the new IR and dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart b/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
index e3650af17fefb429fe0197ae1f815d1b09e207b2..9b819fc826674ccf7d71027295174e75412bd111 100644
--- a/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/ir/ir_nodes.dart
@@ -315,6 +315,14 @@ class This extends Primitive {
accept(Visitor visitor) => visitor.visitThis(this);
}
+class Super extends Primitive {
asgerf 2014/06/23 10:55:17 Again, I think it's better to have InvokeSuperMeth
sigurdm 2014/06/24 09:23:08 Done.
+ Super();
+
+ dart2js.Constant get constant => null;
+
+ accept(Visitor visitor) => visitor.visitSuper(this);
+}
+
class LiteralList extends Primitive {
/// The List type being created; this is not the type argument.
final GenericType type;
@@ -415,6 +423,7 @@ abstract class Visitor<T> {
T visitLiteralMap(LiteralMap node) => visitPrimitive(node);
T visitConstant(Constant node) => visitPrimitive(node);
T visitThis(This node) => visitPrimitive(node);
+ T visitSuper(Super node) => visitPrimitive(node);
T visitInvokeConstConstructor(InvokeConstConstructor node) => visitPrimitive(node);
T visitParameter(Parameter node) => visitPrimitive(node);
T visitContinuation(Continuation node) => visitDefinition(node);

Powered by Google App Engine
This is Rietveld 408576698