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