@Nonnull private Label newLabel(@Nonnull int[] codeAddressToIndex, int codeAddress) { MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddressToIndex, codeAddress)); return referent.addNewLabel(); }
@Nonnull public Label newLabelForAddress(int codeAddress) { if (codeAddress < 0 || codeAddress > instructionList.get(instructionList.size() - 1).codeAddress) { throw new IndexOutOfBoundsException(String.format("codeAddress %d out of bounds", codeAddress)); } MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddress)); return referent.addNewLabel(); }
@Nonnull public Label newSwitchPayloadReferenceLabel(@Nonnull MethodLocation switchLocation, @Nonnull int[] codeAddressToIndex, int codeAddress) { MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddressToIndex, codeAddress)); SwitchPayloadReferenceLabel label = new SwitchPayloadReferenceLabel(); label.switchLocation = switchLocation; referent.getLabels().add(label); return label; }
int locationIndex = mapCodeAddressToIndex(codeAddressToIndex, debugCodeAddress); MethodLocation debugLocation = instructionList.get(locationIndex); BuilderDebugItem builderDebugItem = convertDebugItem(debugItem);
@Nonnull public Label newLabelForAddress(int codeAddress) { if (codeAddress < 0 || codeAddress > instructionList.get(instructionList.size() - 1).codeAddress) { throw new IndexOutOfBoundsException(String.format("codeAddress %d out of bounds", codeAddress)); } MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddress)); return referent.addNewLabel(); }
@Nonnull private Label newLabel(@Nonnull int[] codeAddressToIndex, int codeAddress) { MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddressToIndex, codeAddress)); return referent.addNewLabel(); }
@Nonnull public Label newSwitchPayloadReferenceLabel(@Nonnull MethodLocation switchLocation, @Nonnull int[] codeAddressToIndex, int codeAddress) { MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddressToIndex, codeAddress)); SwitchPayloadReferenceLabel label = new SwitchPayloadReferenceLabel(); label.switchLocation = switchLocation; referent.getLabels().add(label); return label; }
int locationIndex = mapCodeAddressToIndex(codeAddressToIndex, debugCodeAddress); MethodLocation debugLocation = instructionList.get(locationIndex); BuilderDebugItem builderDebugItem = convertDebugItem(debugItem);