mapStackToLocal added

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@311 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent b580db8201
commit d0b18e2e83
  1. 15
      jode/jode/flow/ContinueBlock.java

@ -22,7 +22,7 @@ import jode.decompiler.TabbedPrintWriter;
* *
*/ */
public class ContinueBlock extends StructuredBlock { public class ContinueBlock extends StructuredBlock {
StructuredBlock continuesBlock; LoopBlock continuesBlock;
String continueLabel; String continueLabel;
public ContinueBlock(LoopBlock continuesBlock, boolean needsLabel) { public ContinueBlock(LoopBlock continuesBlock, boolean needsLabel) {
@ -70,6 +70,19 @@ public class ContinueBlock extends StructuredBlock {
return null; return null;
} }
/**
* This is called after the analysis is completely done. It
* will remove all PUSH/stack_i expressions, (if the bytecode
* is correct).
* @param stack the stackmap at begin of the block
* @return null if the bytecode isn't correct and stack mapping
* didn't worked, otherwise the stack after the block has executed.
*/
public VariableStack mapStackToLocal(VariableStack stack) {
continuesBlock.mergeContinueStack(stack);
return null;
}
public void dumpInstruction(TabbedPrintWriter writer) public void dumpInstruction(TabbedPrintWriter writer)
throws java.io.IOException throws java.io.IOException
{ {

Loading…
Cancel
Save