summaryrefslogtreecommitdiff
path: root/vm/mterp/x86/stub.S
blob: fb5c9774be9f864b63fa10bddf18a9f5c4450824 (plain)
1
2
3
4
5
6
7
8
9
    /* (stub) */
    SAVE_PC_FP_TO_SELF %ecx          # leaves rSELF in %ecx
    movl %ecx,OUT_ARG0(%esp)         # self is first arg to function
    call      dvmMterp_${opcode}     # do the real work
    movl      rSELF,%ecx
    LOAD_PC_FP_FROM_SELF             # retrieve updated values
    movl      offThread_curHandlerTable(%ecx),rIBASE  # set up rIBASE
    FETCH_INST
    GOTO_NEXT