dstore_0 0x47
Pops a double into local variable 0.
- Opcode
0x47(71)- Family
- Stores
- Operands
- none
- Length
- 1 byte
- Operand stack
…, value (double) → …- Can throw
- nothing at run time (beyond linking errors)
- Spec name
dstore_<n>
What it does
Pops a double into local variable 0. It is a long or double, so it takes two slots: local variables n and n+1, and two stack slots.
Slots 0 to 3 each have a one-byte instruction; the general dstore takes a one-byte slot number, and wide extends that to two bytes.
How often javac uses it
In JDK 25.0.5's java.base module, dstore_0 appears 26 times in 10 of its 7,391 classes: <0.01% of all instructions, the 179th most common of 194 opcodes in use. Some of the methods that use it: java.lang.Double.toHexString, java.lang.FdLibm$Atan.compute, java.lang.FdLibm$Cbrt.compute, java.lang.FdLibm$Exp.compute.
Related instructions
dload_0 Pushes the double in local variable 0.dstore Pops a double into local variable (operand).wide Makes the next instruction take a two-byte local index (and a two-byte iinc constant).
Specification: JVMS §6.5, dstore_<n> (Java SE 25).