getfield2_quick

Fetch long or double field from object

Bytecode

Type Description
u1 getfield2_quick opcode = 0x?0 (208)
u2 index

Stack ..., objectref =? ..., value.word1, value.word2

Description

The objectref, which must be of type reference, is popped from the operand stack. The value of the two-word field at offset into the class instance referenced by objectref is fetched and pushed onto the operand stack.

Exceptions

NullPointerException - objectref is null

Notes

The opcode of this instruction was originally getfield, operating on a field determined dynamically to have an offset into the class instance data of 255 words or less and to have a width of two words.

When the constant pool entry referenced by a getfield instruction is resolved, the offset for the field it references is generated. That offset replaces the first operand of the original getfield instruction. The second operand of the getfield is unused by getfield2_quick.