/** * Pushes a specified type of stack entry before or at the given offset. * The instruction is marked as necessary. */ private void insertPushInstructions(int offset, boolean replace, boolean before, int computationalType) { // We can edit an instruction without marking it. //markInstruction(offset); // Create a simple push instrucion. Instruction replacementInstruction = new SimpleInstruction(pushOpcode(computationalType)); if (DEBUG) System.out.println(": "+replacementInstruction.toString(offset)); // Replace or insert the push instruction. insertInstruction(offset, replace, before, replacementInstruction); }
new SimpleInstruction(InstructionConstants.OP_POP); insertInstruction(offset, replace, before, popInstruction); break; new SimpleInstruction(InstructionConstants.OP_POP2); insertInstruction(offset, replace, before, popInstruction); break;
new SimpleInstruction(InstructionConstants.OP_POP); insertInstruction(offset, replace, before, popInstruction); break; new SimpleInstruction(InstructionConstants.OP_POP2); insertInstruction(offset, replace, before, popInstruction); break;
/** * Pushes a specified type of stack entry before or at the given offset. * The instruction is marked as necessary. */ private void insertPushInstructions(int offset, boolean replace, boolean before, int computationalType) { // We can edit an instruction without marking it. //markInstruction(offset); // Create a simple push instrucion. Instruction replacementInstruction = new SimpleInstruction(pushOpcode(computationalType)); if (DEBUG) System.out.println(": "+replacementInstruction.toString(offset)); // Replace or insert the push instruction. insertInstruction(offset, replace, before, replacementInstruction); }
new SimpleInstruction(InstructionConstants.OP_POP); insertInstruction(offset, replace, before, popInstruction); break; new SimpleInstruction(InstructionConstants.OP_POP2); insertInstruction(offset, replace, before, popInstruction); break;
/** * Pushes a specified type of stack entry before or at the given offset. * The instruction is marked as necessary. */ private void insertPushInstructions(int offset, boolean replace, boolean before, int computationalType) { // We can edit an instruction without marking it. //markInstruction(offset); // Create a simple push instrucion. Instruction replacementInstruction = new SimpleInstruction(pushOpcode(computationalType)); if (DEBUG) System.out.println(": "+replacementInstruction.toString(offset)); // Replace or insert the push instruction. insertInstruction(offset, replace, before, replacementInstruction); }