Home | History | Annotate | Download | only in armv6t2
      1 %verify "executed"
      2     /*
      3      * Return the length of an array.
      4      */
      5     mov     r1, rINST, lsr #12          @ r1<- B
      6     ubfx    r2, rINST, #8, #4           @ r2<- A
      7     GET_VREG(r0, r1)                    @ r0<- vB (object ref)
      8     cmp     r0, #0                      @ is object null?
      9     beq     common_errNullObject        @ yup, fail
     10     FETCH_ADVANCE_INST(1)               @ advance rPC, load rINST
     11     ldr     r3, [r0, #offArrayObject_length]    @ r3<- array length
     12     GET_INST_OPCODE(ip)                 @ extract opcode from rINST
     13     SET_VREG(r3, r2)                    @ vB<- length
     14     GOTO_OPCODE(ip)                     @ jump to next instruction
     15