checking in changes
[IRC.git] / Robust / src / IR / Flat / FlatCall.java
1 package IR.Flat;
2 import IR.MethodDescriptor;
3
4 public class FlatCall extends FlatNode {
5     TempDescriptor args[];
6     TempDescriptor this_temp;
7     TempDescriptor dst;
8     MethodDescriptor method;
9     
10     public FlatCall(MethodDescriptor md, TempDescriptor dst, TempDescriptor this_temp, TempDescriptor[] args) {
11         this.method=md;
12         this.dst=dst;
13         this.this_temp=this_temp;
14         this.args=args;
15     }
16
17     public String toString() {
18         String st=dst+"="+method.toString()+"("+this_temp;
19         for(int i=0;i<args.length;i++) {
20             st+=args[i].toString();
21             if ((i+1)<args.length)
22                 st+=", ";
23         }
24         return st+")";
25     }
26 }