Home | History | Annotate | Download | only in armv5te
      1 %default {"volatile":"0"}
      2 %verify "executed"
      3 %verify "null object"
      4 %verify "field already resolved"
      5 %verify "field not yet resolved"
      6 %verify "field cannot be resolved"
      7     /*
      8      * Wide 32-bit instance field get.
      9      */
     10     /* iget-wide vA, vB, field@CCCC */
     11     mov     r0, rINST, lsr #12          @ r0<- B
     12     ldr     r3, [rSELF, #offThread_methodClassDex]    @ r3<- DvmDex
     13     FETCH(r1, 1)                        @ r1<- field ref CCCC
     14     ldr     r2, [r3, #offDvmDex_pResFields] @ r2<- pResFields
     15     GET_VREG(r9, r0)                    @ r9<- fp[B], the object pointer
     16     ldr     r0, [r2, r1, lsl #2]        @ r0<- resolved InstField ptr
     17     cmp     r0, #0                      @ is resolved entry null?
     18     bne     .L${opcode}_finish          @ no, already resolved
     19 8:  ldr     r2, [rSELF, #offThread_method] @ r2<- current method
     20     EXPORT_PC()                         @ resolve() could throw
     21     ldr     r0, [r2, #offMethod_clazz]  @ r0<- method->clazz
     22     bl      dvmResolveInstField         @ r0<- resolved InstField ptr
     23     cmp     r0, #0
     24     bne     .L${opcode}_finish
     25     b       common_exceptionThrown
     26 %break
     27 
     28     /*
     29      * Currently:
     30      *  r0 holds resolved field
     31      *  r9 holds object
     32      */
     33 .L${opcode}_finish:
     34     cmp     r9, #0                      @ check object for null
     35     ldr     r3, [r0, #offInstField_byteOffset]  @ r3<- byte offset of field
     36     beq     common_errNullObject        @ object was null
     37     .if     $volatile
     38     add     r0, r9, r3                  @ r0<- address of field
     39     bl      dvmQuasiAtomicRead64        @ r0/r1<- contents of field
     40     .else
     41     ldrd    r0, [r9, r3]                @ r0/r1<- obj.field (64-bit align ok)
     42     .endif
     43     mov     r2, rINST, lsr #8           @ r2<- A+
     44     FETCH_ADVANCE_INST(2)               @ advance rPC, load rINST
     45     and     r2, r2, #15                 @ r2<- A
     46     add     r3, rFP, r2, lsl #2         @ r3<- &fp[A]
     47     GET_INST_OPCODE(ip)                 @ extract opcode from rINST
     48     stmia   r3, {r0-r1}                 @ fp[A]<- r0/r1
     49     GOTO_OPCODE(ip)                     @ jump to next instruction
     50