< prev index next >
src/java.base/share/classes/jdk/internal/org/objectweb/asm/Label.java
Print this page
rev 47452 : imported patch jdk-new-asmv6.patch
*** 387,403 ****
* the code writer that calls this method.
* @param position
* the position of this label in the bytecode.
* @param data
* the bytecode of the method.
! * @return <tt>true</tt> if a blank that was left for this label was to
* small to store the offset. In such a case the corresponding jump
* instruction is replaced with a pseudo instruction (using unused
* opcodes) using an unsigned two bytes offset. These pseudo
! * instructions will need to be replaced with true instructions with
! * wider offsets (4 bytes instead of 2). This is done in
! * {@link MethodWriter#resizeInstructions}.
* @throws IllegalArgumentException
* if this label has already been resolved, or if it has not
* been created by the given code writer.
*/
boolean resolve(final MethodWriter owner, final int position,
--- 387,402 ----
* the code writer that calls this method.
* @param position
* the position of this label in the bytecode.
* @param data
* the bytecode of the method.
! * @return <tt>true</tt> if a blank that was left for this label was too
* small to store the offset. In such a case the corresponding jump
* instruction is replaced with a pseudo instruction (using unused
* opcodes) using an unsigned two bytes offset. These pseudo
! * instructions will be replaced with standard bytecode instructions
! * with wider offsets (4 bytes instead of 2), in ClassReader.
* @throws IllegalArgumentException
* if this label has already been resolved, or if it has not
* been created by the given code writer.
*/
boolean resolve(final MethodWriter owner, final int position,
*** 452,462 ****
* first label of the series.
*
* @return the first label of the series to which this label belongs.
*/
Label getFirst() {
! return !ClassReader.FRAMES || frame == null ? this : frame.owner;
}
// ------------------------------------------------------------------------
// Methods related to subroutines
// ------------------------------------------------------------------------
--- 451,461 ----
* first label of the series.
*
* @return the first label of the series to which this label belongs.
*/
Label getFirst() {
! return frame == null ? this : frame.owner;
}
// ------------------------------------------------------------------------
// Methods related to subroutines
// ------------------------------------------------------------------------
< prev index next >