add support for super calls...ie...super.foo()
[IRC.git] / Robust / src / IR / Flat / FlatCall.java
index f2ca858ea6a2a932961a991cde20a1d486f51e29..be50e3609722c6ae94727b660ee0016c9be29ee6 100644 (file)
@@ -6,12 +6,18 @@ public class FlatCall extends FlatNode {
   TempDescriptor this_temp;
   TempDescriptor dst;
   MethodDescriptor method;
+  boolean isSuper;
 
   public FlatCall(MethodDescriptor md, TempDescriptor dst, TempDescriptor this_temp, TempDescriptor[] args) {
+    this(md, dst, this_temp, args, false);
+  }
+
+  public FlatCall(MethodDescriptor md, TempDescriptor dst, TempDescriptor this_temp, TempDescriptor[] args, boolean isSuper) {
     this.method=md;
     this.dst=dst;
     this.this_temp=this_temp;
     this.args=args;
+    this.isSuper=isSuper;
   }
   public void rewriteUse(TempMap t) {
     for(int i=0;i<args.length;i++)
@@ -30,6 +36,9 @@ public class FlatCall extends FlatNode {
     
     return new FlatCall(method, ndst, nthis, nargs);
   }
+  public boolean getSuper() {
+    return isSuper;
+  }
 
   public MethodDescriptor getMethod() {
     return method;