From d0b18e2e83069b27a2136241cbc1090f391c0fd1 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 6 Mar 1999 21:36:32 +0000 Subject: [PATCH] mapStackToLocal added git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@311 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/ContinueBlock.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/jode/jode/flow/ContinueBlock.java b/jode/jode/flow/ContinueBlock.java index 051e524..38eba0e 100644 --- a/jode/jode/flow/ContinueBlock.java +++ b/jode/jode/flow/ContinueBlock.java @@ -22,7 +22,7 @@ import jode.decompiler.TabbedPrintWriter; * */ public class ContinueBlock extends StructuredBlock { - StructuredBlock continuesBlock; + LoopBlock continuesBlock; String continueLabel; public ContinueBlock(LoopBlock continuesBlock, boolean needsLabel) { @@ -70,6 +70,19 @@ public class ContinueBlock extends StructuredBlock { 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) throws java.io.IOException {