01: package net.sf.jdec.jvminstructions.commands;
02:
03: import net.sf.jdec.core.Operand;
04: import net.sf.jdec.core.OperandStack;
05: import net.sf.jdec.reflection.Behaviour;
06: import net.sf.jdec.util.Constants;
07:
08: public class F2dCommand extends AbstractInstructionCommand {
09:
10: public F2dCommand(Behaviour context) {
11: super (context);
12:
13: }
14:
15: public int getSkipBytes() {
16: return 0;
17: }
18:
19: public void execute() {
20: OperandStack opStack = getStack();
21: Operand op = (Operand) opStack.pop();
22: op.setOperandValue("(double)" + "(" + op.getOperandValue()
23: + ")");
24: op.setOperandType(Constants.IS_CONSTANT_DOUBLE);
25: boolean r = false;//checkIFLoadInstIsPartOFTernaryCond(currentForIndex);
26: if (r) {
27: if (opStack.size() > 0) {
28: java.lang.String str = opStack.getTopOfStack()
29: .getOperandValue();
30: str = str + op.getOperandValue();
31: op.setOperandValue(str);
32: }
33: }
34: opStack.push(op);
35: }
36:
37: }
|