Operation Set long
or double
field in
object
Bytecode
Type | Description |
u1 | putfield opcode = 0xD1 (209) |
u1 | index |
u1 | unused |
Stack ..., objectref, value.word1, value.word2 => ...
The objectref, which must be of type reference
, and value,
which must be a value of a type appropriate for the specified field, are popped from
the operand stack. The value is written at offset into the
class instance referenced by objectref.
NullPointerException
- objectref is null
The opcode of this instruction was originally putfield, 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 putfield instruction is resolved, the offset for the field it references is generated. That offset replaces the first operand of the original putfield instruction. The second operand of the putfield is unused by putfield2_quick.