Home | History | Annotate | Download | only in mips
      1 %default { "isrange":"0", "routine":"NoRange" }
      2 %verify "executed"
      3 %verify "null object"
      4     /*
      5      * Handle an optimized virtual method call.
      6      *
      7      * for: [opt] invoke-virtual-quick, invoke-virtual-quick/range
      8      */
      9     # op vB, {vD, vE, vF, vG, vA}, class   /* CCCC */
     10     # op vAA, {vCCCC..v(CCCC+AA-1)}, meth  /* BBBB */
     11     FETCH(a3, 2)                           #  a3 <- FEDC or CCCC
     12     FETCH(a1, 1)                           #  a1 <- BBBB
     13     .if (!$isrange)
     14     and       a3, a3, 15                   #  a3 <- C (or stays CCCC)
     15     .endif
     16     GET_VREG(rOBJ, a3)                     #  rOBJ <- vC ("this" ptr)
     17     # is "this" null?
     18     beqz      rOBJ, common_errNullObject   #  null "this", throw exception
     19     LOAD_base_offObject_clazz(a2, rOBJ)    #  a2 <- thisPtr->clazz
     20     LOAD_base_offClassObject_vtable(a2, a2) #  a2 <- thisPtr->clazz->vtable
     21     EXPORT_PC()                            #  invoke must export
     22     LOAD_eas2(a0, a2, a1)                  #  a0 <- vtable[BBBB]
     23     b         common_invokeMethod${routine} #  (a0=method, r9="this")
     24