public void assertNotWideOnStack(String message) { assertNotWideOnStack(0, message); }
public void dupX1() { assertNotWideOnStack("dup_x1 cannot be used if double or long is on top of the stack"); assertNotWideOnStack(1, "dup_x1 cannot be used if double or long is in position 2 on the stack"); writeByte(Opcode.DUP_X1); currentOffset++; advanceFrame(currentFrame.dupX1()); }
public void swap() { assertNotWideOnStack("swap cannot be used when wide type is on top of stack"); assertNotWideOnStack(1, "swap cannot be used when wide type is on position 1 of the stack"); writeByte(Opcode.SWAP); currentOffset++; advanceFrame(currentFrame.swap()); }
public void dupX1() { assertNotWideOnStack("dup_x1 cannot be used if double or long is on top of the stack"); assertNotWideOnStack(1, "dup_x1 cannot be used if double or long is in position 2 on the stack"); writeByte(Opcode.DUP_X1); currentOffset++; advanceFrame(currentFrame.dupX1()); }
public void swap() { assertNotWideOnStack("swap cannot be used when wide type is on top of stack"); assertNotWideOnStack(1, "swap cannot be used when wide type is on position 1 of the stack"); writeByte(Opcode.SWAP); currentOffset++; advanceFrame(currentFrame.swap()); }
public void dupX1() { assertNotWideOnStack("dup_x1 cannot be used if double or long is on top of the stack"); assertNotWideOnStack(1, "dup_x1 cannot be used if double or long is in position 2 on the stack"); writeByte(Opcode.DUP_X1); currentOffset++; advanceFrame(currentFrame.dupX1()); }
public void swap() { assertNotWideOnStack("swap cannot be used when wide type is on top of stack"); assertNotWideOnStack(1, "swap cannot be used when wide type is on position 1 of the stack"); writeByte(Opcode.SWAP); currentOffset++; advanceFrame(currentFrame.swap()); }
public void dupX1() { assertNotWideOnStack("dup_x1 cannot be used if double or long is on top of the stack"); assertNotWideOnStack(1, "dup_x1 cannot be used if double or long is in position 2 on the stack"); writeByte(Opcode.DUP_X1); currentOffset++; advanceFrame(currentFrame.dupX1()); }
public void dup2X2() { assertNotWideOnStack(3, "dup2_x2 cannot be used if double or long is in position 4 on the stack"); writeByte(Opcode.DUP2_X2); currentOffset++; advanceFrame(currentFrame.dup2X2()); }
public void dupX2() { assertNotWideOnStack("dup_x2 acnnot be used if double or long is on top of the stack"); writeByte(Opcode.DUP_X2); currentOffset++; advanceFrame(currentFrame.dupX2()); }
public void dup2X1() { assertNotWideOnStack(2, "dup2_x1 cannot be used if double or long is in position 3 on the stack"); writeByte(Opcode.DUP2_X1); currentOffset++; advanceFrame(currentFrame.dup2X1()); }
public void dup() { assertNotWideOnStack("dup acnnot be used if double or long is on top of the stack"); writeByte(Opcode.DUP); currentOffset++; advanceFrame(currentFrame.dup()); }
public void dup2X1() { assertNotWideOnStack(2, "dup2_x1 cannot be used if double or long is in position 3 on the stack"); writeByte(Opcode.DUP2_X1); currentOffset++; advanceFrame(currentFrame.dup2X1()); }
public void dup2X2() { assertNotWideOnStack(3, "dup2_x2 cannot be used if double or long is in position 4 on the stack"); writeByte(Opcode.DUP2_X2); currentOffset++; advanceFrame(currentFrame.dup2X2()); }
public void dupX2() { assertNotWideOnStack("dup_x2 acnnot be used if double or long is on top of the stack"); writeByte(Opcode.DUP_X2); currentOffset++; advanceFrame(currentFrame.dupX2()); }
public void dup2X2() { assertNotWideOnStack(3, "dup2_x2 cannot be used if double or long is in position 4 on the stack"); writeByte(Opcode.DUP2_X2); currentOffset++; advanceFrame(currentFrame.dup2X2()); }
public void dup() { assertNotWideOnStack("dup acnnot be used if double or long is on top of the stack"); writeByte(Opcode.DUP); currentOffset++; advanceFrame(currentFrame.dup()); }
public void dup2X1() { assertNotWideOnStack(2, "dup2_x1 cannot be used if double or long is in position 3 on the stack"); writeByte(Opcode.DUP2_X1); currentOffset++; advanceFrame(currentFrame.dup2X1()); }
public void dup() { assertNotWideOnStack("dup acnnot be used if double or long is on top of the stack"); writeByte(Opcode.DUP); currentOffset++; advanceFrame(currentFrame.dup()); }
public void dupX2() { assertNotWideOnStack("dup_x2 acnnot be used if double or long is on top of the stack"); writeByte(Opcode.DUP_X2); currentOffset++; advanceFrame(currentFrame.dupX2()); }