1/*
2 * Return the length of an array.
3 */
4    movl    rINST, %eax                     # eax <- BA
5    sarl    $$4, rINST                      # rINST <- B
6    GET_VREG %ecx, rINSTq                   # ecx <- vB (object ref)
7    testl   %ecx, %ecx                      # is null?
8    je      common_errNullObject
9    andb    $$0xf, %al                      # eax <- A
10    movl    MIRROR_ARRAY_LENGTH_OFFSET(%rcx), rINST
11    SET_VREG rINST, %rax
12    ADVANCE_PC_FETCH_AND_GOTO_NEXT 1
13