projects
/
org.ibex.arenaj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d5642b
)
checkpoint
author
adam
<adam@megacz.com>
Tue, 10 May 2005 03:37:20 +0000
(
03:37
+0000)
committer
adam
<adam@megacz.com>
Tue, 10 May 2005 03:37:20 +0000
(
03:37
+0000)
darcs-hash:
20050510033720
-5007d-
59c934f6023a0b79d2cf160d7b32294d818266be
.gz
src/org/ibex/arenaj/Main.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/arenaj/Main.java
b/src/org/ibex/arenaj/Main.java
index
674dfb6
..
b16ea28
100644
(file)
--- a/
src/org/ibex/arenaj/Main.java
+++ b/
src/org/ibex/arenaj/Main.java
@@
-304,8
+304,8
@@
public class Main extends SceneTransformer {
JimpleBody ab = (JimpleBody)Jimple.v().newBody(m2);
ab.importBodyContentsFrom(m.getActiveBody());
m2.setActiveBody(ab);
JimpleBody ab = (JimpleBody)Jimple.v().newBody(m2);
ab.importBodyContentsFrom(m.getActiveBody());
m2.setActiveBody(ab);
- //Local loc = Jimple.v().newLocal("tmpRef" + (tfr++), getParent(sc).getType());
- //ab.getLocals().add(loc);
+ Local loc = Jimple.v().newLocal("tmpRef" + (tfr++), getParent(sc).getType());
+ ab.getLocals().add(loc);
// FIXME: insert assignment to this
for(Iterator z = ab.getLocals().iterator(); z.hasNext();) {
// FIXME: insert assignment to this
for(Iterator z = ab.getLocals().iterator(); z.hasNext();) {
@@
-324,10
+324,9
@@
public class Main extends SceneTransformer {
if (is.getRightOp() instanceof ThisRef) {
left.setType(IntType.v());
is.getRightOpBox().setValue(Jimple.v().newParameterRef(IntType.v(), m.getParameterCount()));
if (is.getRightOp() instanceof ThisRef) {
left.setType(IntType.v());
is.getRightOpBox().setValue(Jimple.v().newParameterRef(IntType.v(), m.getParameterCount()));
- break;
}
}
}
}
- /*
+
for(Iterator i = s.getUseAndDefBoxes().iterator(); i.hasNext();) {
Object o = i.next();
if (o instanceof ValueBox) {
for(Iterator i = s.getUseAndDefBoxes().iterator(); i.hasNext();) {
Object o = i.next();
if (o instanceof ValueBox) {
@@
-338,7
+337,7
@@
public class Main extends SceneTransformer {
}
}
}
}
}
}
- */
+
}
sc.removeMethod(m);
}
sc.removeMethod(m);