projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start of new file
[IRC.git]
/
Robust
/
src
/
IR
/
Tree
/
TagExpressionList.java
diff --git
a/Robust/src/IR/Tree/TagExpressionList.java
b/Robust/src/IR/Tree/TagExpressionList.java
index 44c031196c5d36d25ddab0dc8bbc1af4192f906c..d74b60d8b07679603c4d41710ac8ffc1d1e002f6 100644
(file)
--- a/
Robust/src/IR/Tree/TagExpressionList.java
+++ b/
Robust/src/IR/Tree/TagExpressionList.java
@@
-1,13
+1,16
@@
package IR.Tree;
import java.util.Vector;
package IR.Tree;
import java.util.Vector;
+import IR.Flat.TempDescriptor;
public class TagExpressionList {
Vector names;
Vector types;
public class TagExpressionList {
Vector names;
Vector types;
+ Vector temps;
public TagExpressionList() {
names=new Vector();
types=new Vector();
public TagExpressionList() {
names=new Vector();
types=new Vector();
+ temps=new Vector();
}
public void addTag(String type, String name) {
}
public void addTag(String type, String name) {
@@
-19,6
+22,16
@@
public class TagExpressionList {
return names.size();
}
return names.size();
}
+ public void setTemp(int i, TempDescriptor tmp) {
+ if (i>=temps.size())
+ temps.setSize(i+1);
+ temps.set(i, tmp);
+ }
+
+ public TempDescriptor getTemp(int i) {
+ return (TempDescriptor) temps.get(i);
+ }
+
public String getName(int i) {
return (String) names.get(i);
}
public String getName(int i) {
return (String) names.get(i);
}
@@
-27,3
+40,4
@@
public class TagExpressionList {
return (String) types.get(i);
}
}
return (String) types.get(i);
}
}
+