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()
182 inst = (sljit_ub*)ensure_buf(compiler, 1 + 4 + (3 + sizeof(sljit_si))); in sljit_emit_enter()
184 INC_SIZE(4 + (3 + sizeof(sljit_si))); in sljit_emit_enter()
203 *(sljit_si*)inst = local_size; in sljit_emit_enter()
228 *(sljit_si*)inst = local_size; in sljit_emit_enter()
229 inst += sizeof(sljit_si); in sljit_emit_enter()
239 *(sljit_si*)inst = 0x20247429; in sljit_emit_enter()
247 sljit_si options, sljit_si args, sljit_si scratches, sljit_si saveds, in sljit_set_context()
248 sljit_si fscratches, sljit_si fsaveds, sljit_si local_size) in sljit_set_context()
250 sljit_si saved_register_size; in sljit_set_context()
269 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, s… in sljit_emit_return()
271 sljit_si i, tmp, size; in sljit_emit_return()
287 *(sljit_si*)inst = 0x20247428; in sljit_emit_return()
308 *(sljit_si*)inst = compiler->local_size; in sljit_emit_return()
344 static sljit_si emit_do_imm32(struct sljit_compiler *compiler, sljit_ub rex, sljit_ub opcode, sljit… in emit_do_imm32()
347 sljit_si length = 1 + (rex ? 1 : 0) + sizeof(sljit_si); in emit_do_imm32()
355 *(sljit_si*)inst = imm; in emit_do_imm32()
359 static sljit_ub* emit_x86_instruction(struct sljit_compiler *compiler, sljit_si size, in emit_x86_instruction()
361 sljit_si a, sljit_sw imma, in emit_x86_instruction()
363 sljit_si b, sljit_sw immb) in emit_x86_instruction()
368 sljit_si flags = size & ~0xf; in emit_x86_instruction()
369 sljit_si inst_size; in emit_x86_instruction()
416 inst_size += 1 + sizeof(sljit_si); /* SIB byte required to avoid RIP based addressing. */ in emit_x86_instruction()
426 inst_size += sizeof(sljit_si); in emit_x86_instruction()
460 inst_size += sizeof(sljit_si); in emit_x86_instruction()
532 *(sljit_si*)buf_ptr = immb; /* 32 bit displacement. */ in emit_x86_instruction()
533 buf_ptr += sizeof(sljit_si); in emit_x86_instruction()
549 *(sljit_si*)buf_ptr = immb; /* 32 bit displacement. */ in emit_x86_instruction()
550 buf_ptr += sizeof(sljit_si); in emit_x86_instruction()
559 *(sljit_si*)buf_ptr = imma; in emit_x86_instruction()
569 static SLJIT_INLINE sljit_si call_with_args(struct sljit_compiler *compiler, sljit_si type) in call_with_args()
605 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_si d… in sljit_emit_fast_enter()
642 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si … in sljit_emit_fast_return()
692 *(sljit_si*)inst = srcw; in sljit_emit_fast_return()
693 inst += sizeof(sljit_si); in sljit_emit_fast_return()
705 static sljit_si emit_mov_int(struct sljit_compiler *compiler, sljit_si sign, in emit_mov_int()
706 sljit_si dst, sljit_sw dstw, in emit_mov_int()
707 sljit_si src, sljit_sw srcw) in emit_mov_int()
710 sljit_si dst_r; in emit_mov_int()
720 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, (sljit_sw)(sljit_si)srcw, dst, dstw); in emit_mov_int()
728 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, (sljit_sw)(sljit_si)srcw, dst, dstw); in emit_mov_int()