@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 numElements = arrayTable.getArrayElements().size(); int widthElement = arrayTable.getElementWidth(); int size = (widthElement * numElements) / 2; // addresses are on 16bits
List<Number> elements = arrayTable.getArrayElements(); int numElements = elements.size();
public int getElementCount() { return table.getArrayElements().size(); }
public int getElementCount() { return table.getArrayElements().size(); }
@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 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 public static ImmutableArrayPayload of(ArrayPayload instruction) { if (instruction instanceof ImmutableArrayPayload) { return (ImmutableArrayPayload)instruction; } return new ImmutableArrayPayload( instruction.getElementWidth(), instruction.getArrayElements()); }
writer.writeUshort(getOpcodeValue(instruction.getOpcode())); writer.writeUshort(instruction.getElementWidth()); List<Number> elements = instruction.getArrayElements(); writer.writeInt(elements.size()); switch (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();
private void annotateArrayPayload(@Nonnull AnnotatedBytes out, @Nonnull ArrayPayload instruction) { List<Number> elements = instruction.getArrayElements(); int elementWidth = instruction.getElementWidth();
List<Number> elements = instruction.getArrayElements();
List<Number> elements = instruction.getArrayElements();
List<Number> elements = instruction.getArrayElements();