Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Inter-instruction transfer stub. Call out to MterpCheckBefore to handle |
| 3 | * any interesting requests and then jump to the real instruction |
| 4 | * handler. Note that the call to MterpCheckBefore is done as a tail call. |
| 5 | */ |
| 6 | .extern MterpCheckBefore |
Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 7 | la ra, artMterpAsmInstructionStart + (${opnum} * 128) # Addr of primary handler |
| 8 | lw rIBASE, THREAD_CURRENT_IBASE_OFFSET(rSELF) # refresh IBASE |
| 9 | move a0, rSELF # arg0 |
| 10 | addu a1, rFP, OFF_FP_SHADOWFRAME # arg1 |
Bill Buzbee | d47fd90 | 2016-07-07 14:42:43 +0000 | [diff] [blame] | 11 | move a2, rPC |
| 12 | la t9, MterpCheckBefore |
| 13 | jalr zero, t9 # Tail call to Mterp(self, shadow_frame, dex_pc_ptr) |