blob: de133136e00768f720e36a256c1a1a9e2aba41ed [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001/*
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 Leung200f0402016-02-25 20:05:47 -08007 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 Buzbeed47fd902016-07-07 14:42:43 +000011 move a2, rPC
12 la t9, MterpCheckBefore
13 jalr zero, t9 # Tail call to Mterp(self, shadow_frame, dex_pc_ptr)