From 8442863349d6e1b5fdaaccbcb49fe3c12f199ba5 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 6 Mar 1999 21:34:51 +0000 Subject: [PATCH] mapStackToLocal git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@308 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/BreakBlock.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jode/jode/flow/BreakBlock.java b/jode/jode/flow/BreakBlock.java index f1ee38c..ed46fc0 100644 --- a/jode/jode/flow/BreakBlock.java +++ b/jode/jode/flow/BreakBlock.java @@ -70,6 +70,18 @@ public class BreakBlock extends StructuredBlock { return breaksBlock.getNextFlowBlock(); } + /** + * 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 since the stack has no successor. + */ + public VariableStack mapStackToLocal(VariableStack stack) { + ((BreakableBlock)breaksBlock).mergeBreakedStack(stack); + return null; + } + /** * Tells if this block needs braces when used in a if or while block. * @return true if this block should be sorrounded by braces.