Home | History | Annotate | Download | only in armv5te
      1 %verify "executed"
      2 %verify "Class already resolved"
      3 %verify "Class not yet resolved"
      4 %verify "Class cannot be resolved"
      5     /* const/class vAA, Class@BBBB */
      6     FETCH(r1, 1)                        @ r1<- BBBB
      7     ldr     r2, [rGLUE, #offGlue_methodClassDex]    @ r2<- glue->methodClassDex
      8     mov     r9, rINST, lsr #8           @ r9<- AA
      9     ldr     r2, [r2, #offDvmDex_pResClasses]   @ r2<- dvmDex->pResClasses
     10     ldr     r0, [r2, r1, lsl #2]        @ r0<- pResClasses[BBBB]
     11     cmp     r0, #0                      @ not yet resolved?
     12     beq     .L${opcode}_resolve
     13     FETCH_ADVANCE_INST(2)               @ advance rPC, load rINST
     14     GET_INST_OPCODE(ip)                 @ extract opcode from rINST
     15     SET_VREG(r0, r9)                    @ vAA<- r0
     16     GOTO_OPCODE(ip)                     @ jump to next instruction
     17 %break
     18 
     19     /*
     20      * Continuation if the Class has not yet been resolved.
     21      *  r1: BBBB (Class ref)
     22      *  r9: target register
     23      */
     24 .L${opcode}_resolve:
     25     EXPORT_PC()
     26     ldr     r0, [rGLUE, #offGlue_method] @ r0<- glue->method
     27     mov     r2, #1                      @ r2<- true
     28     ldr     r0, [r0, #offMethod_clazz]  @ r0<- method->clazz
     29     bl      dvmResolveClass             @ r0<- Class reference
     30     cmp     r0, #0                      @ failed?
     31     beq     common_exceptionThrown      @ yup, handle the exception
     32     FETCH_ADVANCE_INST(2)               @ advance rPC, load rINST
     33     GET_INST_OPCODE(ip)                 @ extract opcode from rINST
     34     SET_VREG(r0, r9)                    @ vAA<- r0
     35     GOTO_OPCODE(ip)                     @ jump to next instruction
     36 
     37