Home | History | Annotate | Download | only in x86
      1 /*
      2  * Array get, 64 bits.  vAA <- vBB[vCC].
      3  */
      4     /* aget-wide vAA, vBB, vCC */
      5     movzbl  2(rPC), %eax                    # eax <- BB
      6     movzbl  3(rPC), %ecx                    # ecx <- CC
      7     GET_VREG %eax, %eax                     # eax <- vBB (array object)
      8     GET_VREG %ecx, %ecx                     # ecx <- vCC (requested index)
      9     testl   %eax, %eax                      # null array object?
     10     je      common_errNullObject            # bail if so
     11     cmpl    MIRROR_ARRAY_LENGTH_OFFSET(%eax), %ecx
     12     jae     common_errArrayIndex            # index >= length, bail.
     13     leal    MIRROR_WIDE_ARRAY_DATA_OFFSET(%eax,%ecx,8), %eax
     14     movq    (%eax), %xmm0                   # xmm0 <- vBB[vCC]
     15     SET_WIDE_FP_VREG %xmm0, rINST           # vAA <- xmm0
     16     ADVANCE_PC_FETCH_AND_GOTO_NEXT 2
     17