blob: 3e42a7cddd1126b8c76f5018fe3a37f1003ade29 [file] [log] [blame]
/*
* Return the length of an array.
*/
mov rINST, %eax # eax <- BA
sarl $$4, rINST # rINST <- B
GET_VREG %ecx rINST # ecx <- vB (object ref)
testl %ecx, %ecx # is null?
je common_errNullObject
andb $$0xf, %al # eax <- A
movl MIRROR_ARRAY_LENGTH_OFFSET(%ecx), rINST
SET_VREG rINST %eax
ADVANCE_PC_FETCH_AND_GOTO_NEXT 1