@Nonnull private BuilderArrayPayload newBuilderArrayPayload(@Nonnull ArrayPayload instruction) { return new BuilderArrayPayload(instruction.getElementWidth(), instruction.getArrayElements()); }
@Override public Op create(MethodLocation location, TIntObjectMap<MethodLocation> addressToLocation, VirtualMachine vm) { ArrayPayload instr = (ArrayPayload) location.getInstruction(); int elementWidth = instr.getElementWidth(); List<Number> arrayElements = instr.getArrayElements(); return new FillArrayDataPayloadOp(location, elementWidth, arrayElements); }
int widthElement = arrayTable.getElementWidth(); int size = (widthElement * numElements) / 2; // addresses are on 16bits
@Nonnull public static ImmutableArrayPayload of(ArrayPayload instruction) { if (instruction instanceof ImmutableArrayPayload) { return (ImmutableArrayPayload)instruction; } return new ImmutableArrayPayload( instruction.getElementWidth(), instruction.getArrayElements()); }
@Nonnull private BuilderArrayPayload newBuilderArrayPayload(@Nonnull ArrayPayload instruction) { return new BuilderArrayPayload(instruction.getElementWidth(), instruction.getArrayElements()); }
@Nonnull private BuilderArrayPayload newBuilderArrayPayload(@Nonnull ArrayPayload instruction) { return new BuilderArrayPayload(instruction.getElementWidth(), instruction.getArrayElements()); }
@Nonnull private BuilderArrayPayload newBuilderArrayPayload(@Nonnull ArrayPayload instruction) { return new BuilderArrayPayload(instruction.getElementWidth(), instruction.getArrayElements()); }
@Nonnull private BuilderArrayPayload newBuilderArrayPayload(@Nonnull ArrayPayload instruction) { return new BuilderArrayPayload(instruction.getElementWidth(), instruction.getArrayElements()); }
@Nonnull public static ImmutableArrayPayload of(ArrayPayload instruction) { if (instruction instanceof ImmutableArrayPayload) { return (ImmutableArrayPayload)instruction; } return new ImmutableArrayPayload( instruction.getElementWidth(), instruction.getArrayElements()); }
@Nonnull public static ImmutableArrayPayload of(ArrayPayload instruction) { if (instruction instanceof ImmutableArrayPayload) { return (ImmutableArrayPayload)instruction; } return new ImmutableArrayPayload( instruction.getElementWidth(), instruction.getArrayElements()); }
public void write(@Nonnull ArrayPayload instruction) { try { writer.writeUshort(instruction.getOpcode().value); writer.writeUshort(instruction.getElementWidth()); List<Number> elements = instruction.getArrayElements(); writer.writeInt(elements.size()); switch (instruction.getElementWidth()) { case 1: for (Number element: elements) {
public void write(@Nonnull ArrayPayload instruction) { try { writer.writeUshort(getOpcodeValue(instruction.getOpcode())); writer.writeUshort(instruction.getElementWidth()); List<Number> elements = instruction.getArrayElements(); writer.writeInt(elements.size()); switch (instruction.getElementWidth()) { case 1: for (Number element: elements) {
public void write(@Nonnull ArrayPayload instruction) { try { writer.writeUshort(getOpcodeValue(instruction.getOpcode())); writer.writeUshort(instruction.getElementWidth()); List<Number> elements = instruction.getArrayElements(); writer.writeInt(elements.size()); switch (instruction.getElementWidth()) { case 1: for (Number element: elements) {
private void annotateArrayPayload(@Nonnull AnnotatedBytes out, @Nonnull ArrayPayload instruction) { List<Number> elements = instruction.getArrayElements(); int elementWidth = instruction.getElementWidth();
private void annotateArrayPayload(@Nonnull AnnotatedBytes out, @Nonnull ArrayPayload instruction) { List<Number> elements = instruction.getArrayElements(); int elementWidth = instruction.getElementWidth();
private void annotateArrayPayload(@Nonnull AnnotatedBytes out, @Nonnull ArrayPayload instruction) { List<Number> elements = instruction.getArrayElements(); int elementWidth = instruction.getElementWidth();
public boolean writeTo(IndentingWriter writer) throws IOException { int elementWidth = instruction.getElementWidth(); writer.printSignedIntAsDec(instruction.getElementWidth()); writer.write('\n');
public boolean writeTo(IndentingWriter writer) throws IOException { int elementWidth = instruction.getElementWidth(); writer.printSignedIntAsDec(instruction.getElementWidth()); writer.write('\n');
public boolean writeTo(IndentingWriter writer) throws IOException { int elementWidth = instruction.getElementWidth(); writer.printSignedIntAsDec(instruction.getElementWidth()); writer.write('\n');
public boolean writeTo(IndentingWriter writer) throws IOException { int elementWidth = instruction.getElementWidth(); writer.printSignedIntAsDec(instruction.getElementWidth()); writer.write('\n');