1 /* 2 * Generic one-operand compare-and-branch operation. Provide a "condition" 3 * fragment that specifies the comparison to perform. 4 * 5 * for: if-eqz, if-nez, if-ltz, if-gez, if-gtz, if-lez 6 */ 7 /* if-cmp vAA, +BBBB */ 8 mov r0, rINST, lsr #8 @ r0<- AA 9 GET_VREG r0, r0 @ r0<- vAA 10 FETCH_S rINST, 1 @ rINST<- branch offset, in code units 11 cmp r0, #0 @ compare (vA, 0) 12 b${condition} MterpCommonTakenBranchNoFlags 13 cmp rPROFILE, #JIT_CHECK_OSR @ possible OSR re-entry? 14 beq .L_check_not_taken_osr 15 FETCH_ADVANCE_INST 2 16 GET_INST_OPCODE ip @ extract opcode from rINST 17 GOTO_OPCODE ip @ jump to next instruction 18