Contents | Prev | Next | IndexThe JavaTM Virtual Machine Specification


new_quick

Operation
Create new object

new_quick
indexbyte1
indexbyte2

Forms
new_quick = 221 (0xdd)

Stack
... ..., objectref

Description
The unsigned indexbyte1 and indexbyte2 are used to construct an index into the constant pool of the current class (§3.6), where the value of the index is (indexbyte1 << 8) | indexbyte2. The item at that index must have already been resolved to a class type. A new instance of that class is created, and the instance variables of the new object are initialized to their default initial values (§2.5.1). The objectref, a reference to the instance, is pushed onto the operand stack.

Notes
The opcode of this instruction was originally new. The operands of the original new instruction are not modified.



Contents | Prev | Next | Index

Java Virtual Machine Specification (HTML generated by chsieh on March 13, 1997)
Copyright © 1996, 1997 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com