buzbee | 1452bee | 2015-03-06 14:43:04 -0800 | [diff] [blame] | 1 | /* |
2 | * Create a new instance of a class. | ||||
3 | */ | ||||
4 | /* new-instance vAA, class@BBBB */ | ||||
5 | EXPORT_PC | ||||
6 | add r0, rFP, #OFF_FP_SHADOWFRAME | ||||
7 | mov r1, rSELF | ||||
8 | mov r2, rINST | ||||
9 | bl MterpNewInstance @ (shadow_frame, self, inst_data) | ||||
10 | cmp r0, #0 | ||||
11 | beq MterpPossibleException | ||||
12 | FETCH_ADVANCE_INST 2 @ advance rPC, load rINST | ||||
13 | GET_INST_OPCODE ip @ extract opcode from rINST | ||||
14 | GOTO_OPCODE ip @ jump to next instruction |