Lines Matching refs:sljit_si
29 static sljit_si emit_load_imm64(struct sljit_compiler *compiler, sljit_si reg, sljit_sw imm) in emit_load_imm64()
42 static sljit_ub* generate_far_jump_code(struct sljit_jump *jump, sljit_ub *code_ptr, sljit_si type) in generate_far_jump_code()
68 static sljit_ub* generate_fixed_jump(sljit_ub *code_ptr, sljit_sw addr, sljit_si type) in generate_fixed_jump()
70 sljit_sw delta = addr - ((sljit_sw)code_ptr + 1 + sizeof(sljit_si)); in generate_fixed_jump()
90 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_enter(struct sljit_compiler *compiler, in sljit_emit_enter()
91 sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds, in sljit_emit_enter()
92 sljit_si fscratches, sljit_si fsaveds, sljit_si local_size) in sljit_emit_enter()
94 sljit_si i, tmp, size, saved_register_size; in sljit_emit_enter()
175 inst = (sljit_ub*)ensure_buf(compiler, 1 + 4 + (3 + sizeof(sljit_si))); in sljit_emit_enter()
177 INC_SIZE(4 + (3 + sizeof(sljit_si))); in sljit_emit_enter()
196 *(sljit_si*)inst = local_size; in sljit_emit_enter()
222 *(sljit_si*)inst = local_size; in sljit_emit_enter()
223 inst += sizeof(sljit_si); in sljit_emit_enter()
233 *(sljit_si*)inst = 0x20247429; in sljit_emit_enter()
240 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_set_context(struct sljit_compiler *compiler, in sljit_set_context()
241 sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds, in sljit_set_context()
242 sljit_si fscratches, sljit_si fsaveds, sljit_si local_size) in sljit_set_context()
244 sljit_si saved_register_size; in sljit_set_context()
256 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, s… in sljit_emit_return()
258 sljit_si i, tmp, size; in sljit_emit_return()
274 *(sljit_si*)inst = 0x20247428; in sljit_emit_return()
295 *(sljit_si*)inst = compiler->local_size; in sljit_emit_return()
331 static sljit_si emit_do_imm32(struct sljit_compiler *compiler, sljit_ub rex, sljit_ub opcode, sljit… in emit_do_imm32()
334 sljit_si length = 1 + (rex ? 1 : 0) + sizeof(sljit_si); in emit_do_imm32()
342 *(sljit_si*)inst = imm; in emit_do_imm32()
346 static sljit_ub* emit_x86_instruction(struct sljit_compiler *compiler, sljit_si size, in emit_x86_instruction()
348 sljit_si a, sljit_sw imma, in emit_x86_instruction()
350 sljit_si b, sljit_sw immb) in emit_x86_instruction()
355 sljit_si flags = size & ~0xf; in emit_x86_instruction()
356 sljit_si inst_size; in emit_x86_instruction()
403 inst_size += 1 + sizeof(sljit_si); /* SIB byte required to avoid RIP based addressing. */ in emit_x86_instruction()
413 inst_size += sizeof(sljit_si); in emit_x86_instruction()
447 inst_size += sizeof(sljit_si); in emit_x86_instruction()
519 *(sljit_si*)buf_ptr = immb; /* 32 bit displacement. */ in emit_x86_instruction()
520 buf_ptr += sizeof(sljit_si); in emit_x86_instruction()
536 *(sljit_si*)buf_ptr = immb; /* 32 bit displacement. */ in emit_x86_instruction()
537 buf_ptr += sizeof(sljit_si); in emit_x86_instruction()
546 *(sljit_si*)buf_ptr = imma; in emit_x86_instruction()
556 static SLJIT_INLINE sljit_si call_with_args(struct sljit_compiler *compiler, sljit_si type) in call_with_args()
592 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_si d… in sljit_emit_fast_enter()
629 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si … in sljit_emit_fast_return()
679 *(sljit_si*)inst = srcw; in sljit_emit_fast_return()
680 inst += sizeof(sljit_si); in sljit_emit_fast_return()
692 static sljit_si emit_mov_int(struct sljit_compiler *compiler, sljit_si sign, in emit_mov_int()
693 sljit_si dst, sljit_sw dstw, in emit_mov_int()
694 sljit_si src, sljit_sw srcw) in emit_mov_int()
697 sljit_si dst_r; in emit_mov_int()
707 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, (sljit_sw)(sljit_si)srcw, dst, dstw); in emit_mov_int()
715 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, (sljit_sw)(sljit_si)srcw, dst, dstw); in emit_mov_int()