Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Create a new instance of a class. |
| 3 | */ |
Alexey Frunze | 84603bf | 2016-10-21 19:54:43 -0700 | [diff] [blame] | 4 | /* new-instance vAA, class@BBBB */ |
Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 5 | 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 |