Home | History | Annotate | Download | only in x86
      1 %verify "executed"
      2     /*
      3      * Return the length of an array.
      4      */
      5    mov      rINST,%eax                # eax<- BA
      6    sarl     $$4,rINST                 # rINST<- B
      7    GET_VREG_R %ecx rINST              # ecx<- vB (object ref)
      8    andb     $$0xf,%al                 # eax<- A
      9    testl    %ecx,%ecx                 # is null?
     10    je       common_errNullObject
     11    movl     offArrayObject_length(%ecx),rINST
     12    FETCH_INST_OPCODE 1 %ecx
     13    ADVANCE_PC 1
     14    SET_VREG rINST %eax
     15    GOTO_NEXT_R %ecx
     16