Lines Matching refs:inst
35 sljit_u8 *inst; in emit_do_imm() local
37 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1 + sizeof(sljit_sw)); in emit_do_imm()
38 FAIL_IF(!inst); in emit_do_imm()
40 *inst++ = opcode; in emit_do_imm()
41 sljit_unaligned_store_sw(inst, imm); in emit_do_imm()
52 sljit_u8 *inst; in emit_x86_instruction() local
125 inst = (sljit_u8*)ensure_buf(compiler, 1 + inst_size); in emit_x86_instruction()
126 PTR_FAIL_IF(!inst); in emit_x86_instruction()
131 *inst++ = 0xf2; in emit_x86_instruction()
133 *inst++ = 0xf3; in emit_x86_instruction()
135 *inst++ = 0x66; in emit_x86_instruction()
137 buf_ptr = inst + size; in emit_x86_instruction()
142 *inst = (flags & EX86_BYTE_ARG) ? GROUP_BINARY_83 : GROUP_BINARY_81; in emit_x86_instruction()
154 *inst = GROUP_SHIFT_1; in emit_x86_instruction()
156 *inst = GROUP_SHIFT_N; in emit_x86_instruction()
158 *inst = GROUP_SHIFT_CL; in emit_x86_instruction()
212 return !(flags & EX86_SHIFT_INS) ? inst : (inst + 1); in emit_x86_instruction()
259 sljit_u8 *inst; in sljit_emit_enter() local
344 inst = (sljit_u8*)ensure_buf(compiler, (sljit_uw)(size + 1)); in sljit_emit_enter()
345 FAIL_IF(!inst); in sljit_emit_enter()
467 inst = (sljit_u8*)ensure_buf(compiler, 1 + 2); in sljit_emit_enter()
468 FAIL_IF(!inst); in sljit_emit_enter()
471 inst[0] = LOOP_i8; in sljit_emit_enter()
472 inst[1] = (sljit_u8)-16; in sljit_emit_enter()
574 sljit_u8 *inst; in emit_stack_frame_release() local
578 inst = (sljit_u8*)ensure_buf(compiler, 1 + size); in emit_stack_frame_release()
579 FAIL_IF(!inst); in emit_stack_frame_release()
597 sljit_u8 *inst; in sljit_emit_return_void() local
614 inst = (sljit_u8*)ensure_buf(compiler, 1 + size); in sljit_emit_return_void()
615 FAIL_IF(!inst); in sljit_emit_return_void()
670 sljit_u8 *inst; in c_fast_call_with_args() local
674 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in c_fast_call_with_args()
675 FAIL_IF(!inst); in c_fast_call_with_args()
720 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in c_fast_call_with_args()
721 FAIL_IF(!inst); in c_fast_call_with_args()
724 *inst++ = U8(XCHG_EAX_r | reg_map[SLJIT_R2]); in c_fast_call_with_args()
727 inst = (sljit_u8*)ensure_buf(compiler, 1 + 2); in c_fast_call_with_args()
728 FAIL_IF(!inst); in c_fast_call_with_args()
731 *inst++ = MOV_r_rm; in c_fast_call_with_args()
732 *inst++ = U8(MOD_REG | (reg_map[SLJIT_R2] << 3) | reg_map[SLJIT_R0]); in c_fast_call_with_args()
778 sljit_u8 *inst; in cdecl_call_with_args() local
818 sljit_u8 *inst; in post_call_with_args() local
829 inst = (sljit_u8*)ensure_buf(compiler, 1 + 3); in post_call_with_args()
830 FAIL_IF(!inst); in post_call_with_args()
832 inst[0] = single ? FSTPS : FSTPD; in post_call_with_args()
833 inst[1] = (0x03 << 3) | 0x04; in post_call_with_args()
834 inst[2] = (0x04 << 3) | reg_map[SLJIT_SP]; in post_call_with_args()
851 sljit_u8* inst; in tail_call_with_args() local
1077 inst = emit_x86_instruction(compiler, 1, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_SP), offset); in tail_call_with_args()
1078 FAIL_IF(!inst); in tail_call_with_args()
1079 *inst = XCHG_r_rm; in tail_call_with_args()
1101 inst = emit_x86_instruction(compiler, 1, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_SP), offset); in tail_call_with_args()
1102 FAIL_IF(!inst); in tail_call_with_args()
1103 *inst = XCHG_r_rm; in tail_call_with_args()
1189 sljit_u8 *inst; in emit_tail_call_end() local
1193 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in emit_tail_call_end()
1194 FAIL_IF(!inst); in emit_tail_call_end()
1354 sljit_u8 *inst; in sljit_emit_fast_enter() local
1364 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in sljit_emit_fast_enter()
1365 FAIL_IF(!inst); in sljit_emit_fast_enter()
1373 inst = emit_x86_instruction(compiler, 1, 0, 0, dst, dstw); in sljit_emit_fast_enter()
1374 FAIL_IF(!inst); in sljit_emit_fast_enter()
1375 *inst++ = POP_rm; in sljit_emit_fast_enter()
1381 sljit_u8 *inst; in emit_fast_return() local
1386 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1 + 1); in emit_fast_return()
1387 FAIL_IF(!inst); in emit_fast_return()
1393 inst = emit_x86_instruction(compiler, 1, 0, 0, src, srcw); in emit_fast_return()
1394 FAIL_IF(!inst); in emit_fast_return()
1395 *inst++ = GROUP_FF; in emit_fast_return()
1396 *inst |= PUSH_rm; in emit_fast_return()
1398 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1); in emit_fast_return()
1399 FAIL_IF(!inst); in emit_fast_return()