blob: 3c9e83f9b81bc0dd54eb62a5699b03c707fd4326 [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001 /*
2 * Create a new instance of a class.
3 */
Alexey Frunze84603bf2016-10-21 19:54:43 -07004 /* new-instance vAA, class@BBBB */
Douglas Leung200f0402016-02-25 20:05:47 -08005 EXPORT_PC()
6 addu a0, rFP, OFF_FP_SHADOWFRAME
7 move a1, rSELF
8 move a2, rINST
9 JAL(MterpNewInstance)
10 beqz v0, MterpPossibleException
11 FETCH_ADVANCE_INST(2) # advance rPC, load rINST
12 GET_INST_OPCODE(t0) # extract opcode from rINST
13 GOTO_OPCODE(t0) # jump to next instruction