|
|
@ -45,13 +45,14 @@ public class ReturnBlock extends InstructionContainer { |
|
|
|
* @return stack the stack afterwards. |
|
|
|
* @return stack the stack afterwards. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public VariableStack mapStackToLocal(VariableStack stack) { |
|
|
|
public VariableStack mapStackToLocal(VariableStack stack) { |
|
|
|
VariableStack newStack; |
|
|
|
VariableStack newStack = stack; |
|
|
|
int params = instr.getOperandCount(); |
|
|
|
if (instr != null) { |
|
|
|
if (params > 0) { |
|
|
|
int params = instr.getOperandCount(); |
|
|
|
this.stack = stack.peek(params); |
|
|
|
if (params > 0) { |
|
|
|
newStack = stack.pop(params); |
|
|
|
this.stack = stack.peek(params); |
|
|
|
} else |
|
|
|
newStack = stack.pop(params); |
|
|
|
newStack = stack; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|