Skip to content

Commit

Permalink
- made nop eliminator run before jb phase for java to jimple
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer Lhoták committed Nov 17, 2003
1 parent 5ea9d86 commit 54653c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Todo (as of 2.0.1)

VERY HIGH - fix problem that xml attribute tags are only generated if output == jimple (they should work if other output formats are selected also) - fixed

VERY HIGH - fix the mechanism used to generate attributes in the source viewers in Eclipse - fixed - needs more work
VERY HIGH - fix the mechanism used to generate attributes in the source viewers in Eclipse - fixed - needs more work - fixed

HIGH - finish coloring for stmts - fixed

Expand All @@ -12,9 +12,10 @@ HIGH - implement getting the actual Soot Output dir from Soot so the plugin can

HIGH - minimize amount of XML being generated - done

HIGH - write documentation and howto's
HIGH - write documentation and howto's - done

HIGH - implement running on all source files in project from project menu (currently can only run for all class files - unless process-dir is changed manually)
- done

HIGH - implement being able to run Soot on a package of java files (not classes) and being able to do more then just decompile when a package/folder is selected

Expand Down
1 change: 1 addition & 0 deletions src/soot/javaToJimple/AnonClassInitMethodSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public soot.Body getBody(soot.SootMethod sootMethod, String phaseName){
// return
soot.jimple.ReturnVoidStmt retStmt = soot.jimple.Jimple.v().newReturnVoidStmt();
body.getUnits().add(retStmt);
PackManager.v().getTransform("jb.ne").apply(body);

PackManager.v().getPack("jb").apply(body);

Expand Down
3 changes: 2 additions & 1 deletion src/soot/javaToJimple/PolyglotMethodSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public PolyglotMethodSource(polyglot.ast.Block block, List formals){
public soot.Body getBody(soot.SootMethod sm, String phaseName) {
JimpleBodyBuilder jbb = new JimpleBodyBuilder();
soot.jimple.JimpleBody jb = jbb.createJimpleBody(block, formals, sm);


PackManager.v().getTransform("jb.ne").apply(jb);
PackManager.v().getPack("jb").apply(jb);
return jb;
}
Expand Down

0 comments on commit 54653c6

Please sign in to comment.