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