/** * Appends the given label with the given old offset. * @param oldInstructionOffset the old offset of the label, to which * branches and other references in the current * code fragment are pointing. */ public void appendLabel(int oldInstructionOffset) { if (DEBUG) { println("["+codeLength+"] <- ", "[" + oldInstructionOffset + "] (label)"); } // Make sure the code and offset arrays are large enough. ensureCodeLength(codeLength + 1); // Remember the old offset of the following instruction. oldInstructionOffsets[codeLength] = oldInstructionOffset; // Fill out the new offset of the following instruction. instructionOffsetMap[level][oldInstructionOffset] = codeLength; }
/** * Appends the given label with the given old offset. * @param oldInstructionOffset the old offset of the label, to which * branches and other references in the current * code fragment are pointing. */ public void appendLabel(int oldInstructionOffset) { if (DEBUG) { println("["+codeLength+"] <- ", "[" + oldInstructionOffset + "] (label)"); } // Make sure the code and offset arrays are large enough. ensureCodeLength(codeLength + 1); // Remember the old offset of the following instruction. oldInstructionOffsets[codeLength] = oldInstructionOffset; // Fill out the new offset of the following instruction. instructionOffsetMap[level][oldInstructionOffset] = codeLength; }
/** * Appends the given label with the given old offset. * @param oldInstructionOffset the old offset of the label, to which * branches and other references in the current * code fragment are pointing. */ public void appendLabel(int oldInstructionOffset) { if (DEBUG) { println("["+codeLength+"] <- ", "[" + oldInstructionOffset + "] (label)"); } // Make sure the code and offset arrays are large enough. ensureCodeLength(codeLength + 1); // Remember the old offset of the following instruction. oldInstructionOffsets[codeLength] = oldInstructionOffset; // Fill out the new offset of the following instruction. instructionOffsetMap[level][oldInstructionOffset] = codeLength; }
ensureCodeLength(maximumCodeLength);
ensureCodeLength(maximumCodeLength);
ensureCodeLength(maximumCodeLength);
ensureCodeLength(maximumCodeLength);
ensureCodeLength(newCodeLength);
ensureCodeLength(newCodeLength);
ensureCodeLength(newCodeLength);
ensureCodeLength(newCodeLength);
ensureCodeLength(newCodeLength);
ensureCodeLength(newCodeLength);
ensureCodeLength(newCodeLength);