Home
last modified time | relevance | path

Searched refs:sljit_s32 (Results 1 – 24 of 24) sorted by relevance

/third_party/pcre2/pcre2/src/sljit/
DsljitLir.h414 sljit_s32 error;
415 sljit_s32 options;
432 sljit_s32 scratches;
434 sljit_s32 saveds;
436 sljit_s32 fscratches;
438 sljit_s32 fsaveds;
440 sljit_s32 local_size;
449 sljit_s32 status_flags_state;
453 sljit_s32 args_size;
457 sljit_s32 mode32;
[all …]
DsljitLir.c93 #define SSIZE_OF(type) ((sljit_s32)sizeof(sljit_ ## type))
255 (saveds) + (sljit_s32)(extra)) * (sljit_s32)sizeof(sljit_sw))
259 (fsaveds)) * (sljit_s32)(size))
306 #define CHECK_RETURN_TYPE sljit_s32
369 static sljit_s32 compiler_initialized = 0;
384 && sizeof(sljit_s32) == 4 && sizeof(sljit_u32) == 4 in sljit_create_compiler()
547 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_current_flags(struct sljit_compiler *compiler, sljit_s32 cu… in sljit_set_current_flags()
606 SLJIT_API_FUNC_ATTRIBUTE void* sljit_alloc_memory(struct sljit_compiler *compiler, sljit_s32 size) in sljit_alloc_memory()
665 sljit_s32 options, sljit_s32 args, sljit_s32 scratches, sljit_s32 saveds, in set_emit_enter()
666 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size) in set_emit_enter()
[all …]
DsljitNativeX86_64.c33 static sljit_s32 emit_load_imm64(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in emit_load_imm64()
46 static sljit_s32 emit_do_imm32(struct sljit_compiler *compiler, sljit_u8 rex, sljit_u8 opcode, slji… in emit_do_imm32()
49 sljit_uw length = (rex ? 2 : 1) + sizeof(sljit_s32); in emit_do_imm32()
57 sljit_unaligned_store_s32(inst, (sljit_s32)imm); in emit_do_imm32()
63 sljit_s32 a, sljit_sw imma, in emit_x86_instruction()
65 sljit_s32 b, sljit_sw immb) in emit_x86_instruction()
114 inst_size += 1 + sizeof(sljit_s32); /* SIB byte required to avoid RIP based addressing. */ in emit_x86_instruction()
121 inst_size += sizeof(sljit_s32); in emit_x86_instruction()
170 inst_size += sizeof(sljit_s32); in emit_x86_instruction()
249 sljit_unaligned_store_s32(buf_ptr, (sljit_s32)immb); /* 32 bit displacement. */ in emit_x86_instruction()
[all …]
DsljitNativeS390X.c138 static SLJIT_INLINE sljit_gpr gpr(sljit_s32 r) in gpr()
140 SLJIT_ASSERT(r >= 0 && r < (sljit_s32)(sizeof(reg_map) / sizeof(reg_map[0]))); in gpr()
144 static SLJIT_INLINE sljit_gpr fgpr(sljit_s32 r) in fgpr()
146 SLJIT_ASSERT(r >= 0 && r < (sljit_s32)(sizeof(freg_map) / sizeof(freg_map[0]))); in fgpr()
168 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins) in push_inst()
177 static sljit_s32 encode_inst(void **ptr, sljit_ins ins) in encode_inst()
202 static SLJIT_INLINE sljit_u8 get_cc(struct sljit_compiler *compiler, sljit_s32 type) { in get_cc()
211 sljit_s32 type = GET_FLAG_TYPE(compiler->status_flags_state); in get_cc()
226 sljit_s32 type = GET_FLAG_TYPE(compiler->status_flags_state); in get_cc()
453 #define is_s32(d) ((d) == (sljit_s32)(d)) in HAVE_FACILITY()
[all …]
DsljitNativeX86_common.c321 static SLJIT_INLINE void sljit_unaligned_store_s32(void *addr, sljit_s32 value) in sljit_unaligned_store_s32()
535 sljit_s32 short_jump; in generate_near_jump_code()
577 code_ptr += sizeof(sljit_s32); in generate_near_jump_code()
688 jump_addr -= sizeof(sljit_s32); in sljit_generate_code()
693 sljit_unaligned_store_s32((void*)jump->addr, (sljit_s32)jump_addr); in sljit_generate_code()
718 …sljit_unaligned_store_s32((void*)(put_label->addr - sizeof(sljit_s32)), (sljit_s32)put_label->labe… in sljit_generate_code()
735 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type) in sljit_has_cpu_feature()
789 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_cmp_info(sljit_s32 type) in sljit_cmp_info()
844 static sljit_s32 emit_mov(struct sljit_compiler *compiler,
845 sljit_s32 dst, sljit_sw dstw,
[all …]
DsljitNativeX86_32.c33 static sljit_s32 emit_do_imm(struct sljit_compiler *compiler, sljit_u8 opcode, sljit_sw imm) in emit_do_imm()
48 sljit_s32 a, sljit_sw imma, in emit_x86_instruction()
50 sljit_s32 b, sljit_sw immb) in emit_x86_instruction()
262 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compiler, in sljit_emit_enter()
263 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_emit_enter()
264 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size) in sljit_emit_enter()
266 sljit_s32 word_arg_count, saved_arg_count, float_arg_count; in sljit_emit_enter()
267 sljit_s32 size, args_size, types, status; in sljit_emit_enter()
268 sljit_s32 kept_saveds_count = SLJIT_KEPT_SAVEDS_COUNT(options); in sljit_emit_enter()
271 sljit_s32 r2_offset = -1; in sljit_emit_enter()
[all …]
DsljitNativeARM_64.c144 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins) in push_inst()
153 static SLJIT_INLINE sljit_s32 emit_imm64_const(struct sljit_compiler *compiler, sljit_s32 dst, slji… in emit_imm64_const()
384 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type) in sljit_has_cpu_feature()
442 sljit_s32 negated; in logical_imm()
451 if (len == 16 && ((sljit_s32)imm == 0 || (sljit_s32)imm == -1)) in logical_imm()
456 || (len == 16 && (sljit_s32)imm != 0 && (sljit_s32)imm != -1)); in logical_imm()
507 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw simm) in load_immediate()
609 static sljit_s32 emit_op_imm(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 dst, sljit… in emit_op_imm()
616 sljit_s32 op = (flags & 0xffff); in emit_op_imm()
617 sljit_s32 reg; in emit_op_imm()
[all …]
DsljitNativeARM_32.c60 (((max_diff) / (sljit_s32)sizeof(sljit_uw)) - (CONST_POOL_ALIGNMENT - 1))
152 static sljit_s32 push_cpool(struct sljit_compiler *compiler) in push_cpool()
158 sljit_s32 i; in push_cpool()
190 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst()
204 static sljit_s32 push_inst_with_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw li… in push_inst_with_literal()
254 static sljit_s32 push_inst_with_unique_literal(struct sljit_compiler *compiler, sljit_uw inst, slji… in push_inst_with_unique_literal()
274 static SLJIT_INLINE sljit_s32 prepare_blx(struct sljit_compiler *compiler) in prepare_blx()
282 static SLJIT_INLINE sljit_s32 emit_blx(struct sljit_compiler *compiler) in emit_blx()
314 if ((sljit_s32)const_pool[ind] < 0) { in patch_pc_relative_loads()
339 sljit_s32 index;
[all …]
DsljitNativeRISCV_common.c152 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins) in push_inst()
161 static sljit_s32 push_imm_s_inst(struct sljit_compiler *compiler, sljit_ins ins, sljit_sw imm) in push_imm_s_inst()
530 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type) in sljit_has_cpu_feature()
541 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_cmp_info(sljit_s32 type) in sljit_cmp_info()
595 static sljit_s32 emit_op_mem(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg, sljit…
597 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compiler, in sljit_emit_enter()
598 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_emit_enter()
599 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size) in sljit_emit_enter()
601 sljit_s32 i, tmp, offset; in sljit_emit_enter()
602 sljit_s32 saved_arg_count = SLJIT_KEPT_SAVEDS_COUNT(options); in sljit_emit_enter()
[all …]
DsljitNativeARM_T2_32.c215 static sljit_s32 push_inst16(struct sljit_compiler *compiler, sljit_ins inst) in push_inst16()
227 static sljit_s32 push_inst32(struct sljit_compiler *compiler, sljit_ins inst) in push_inst32()
237 static SLJIT_INLINE sljit_s32 emit_imm32_const(struct sljit_compiler *compiler, sljit_s32 dst, slji… in emit_imm32_const()
255 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_u16 *code_ptr, sljit_… in detect_jump_type()
312 sljit_s32 type = (jump->flags >> 4) & 0xf; in set_jump_instruction()
315 sljit_s32 s, j1, j2; in set_jump_instruction()
487 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type) in sljit_has_cpu_feature()
518 sljit_s32 counter; in get_imm()
564 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in load_immediate()
596 static sljit_s32 emit_op_imm(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 dst, sljit… in emit_op_imm()
[all …]
DsljitNativePPC_common.c275 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins) in push_inst()
284 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_… in detect_jump_type()
650 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type) in sljit_has_cpu_feature()
676 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_cmp_info(sljit_s32 type) in sljit_cmp_info()
747 static sljit_s32 emit_op_mem(struct sljit_compiler *compiler, sljit_s32 inp_flags, sljit_s32 reg,
748 sljit_s32 arg, sljit_sw argw, sljit_s32 tmp_reg);
750 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compiler, in sljit_emit_enter()
751 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_emit_enter()
752 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size) in sljit_emit_enter()
754 sljit_s32 i, tmp, base, offset; in sljit_emit_enter()
[all …]
DsljitNativeMIPS_64.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_ar, sljit_sw imm) in load_immediate()
31 sljit_s32 shift = 32; in load_immediate()
32 sljit_s32 shift2; in load_immediate()
33 sljit_s32 inv = 0; in load_immediate()
121 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
151 static sljit_s32 call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_ins *in… in call_with_args()
153 sljit_s32 arg_count = 0; in call_with_args()
154 sljit_s32 word_arg_count = 0; in call_with_args()
155 sljit_s32 float_arg_count = 0; in call_with_args()
156 sljit_s32 types = 0; in call_with_args()
[all …]
DsljitNativeMIPS_common.c327 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins, sljit_s32 delay_slot) in push_inst()
716 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_has_cpu_feature(sljit_s32 feature_type) in sljit_has_cpu_feature()
752 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_cmp_info(sljit_s32 type) in sljit_cmp_info()
791 static sljit_s32 emit_op_mem(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg_ar, sl…
792 static sljit_s32 emit_stack_frame_release(struct sljit_compiler *compiler, sljit_s32 frame_size, sl…
800 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compiler, in sljit_emit_enter()
801 sljit_s32 options, sljit_s32 arg_types, sljit_s32 scratches, sljit_s32 saveds, in sljit_emit_enter()
802 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size) in sljit_emit_enter()
805 sljit_s32 i, tmp, offset; in sljit_emit_enter()
806 sljit_s32 arg_count, word_arg_count, float_arg_count; in sljit_emit_enter()
[all …]
DsljitNativeMIPS_32.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_ar, sljit_sw imm) in load_immediate()
41 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
66 static sljit_s32 call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_ins *in… in call_with_args()
70 sljit_s32 float_arg_count = 0; in call_with_args()
71 sljit_s32 word_arg_count = 0; in call_with_args()
72 sljit_s32 types = 0; in call_with_args()
124 FAIL_IF(emit_stack_frame_release(compiler, (sljit_s32)offset, &prev_ins)); in call_with_args()
195 …_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_call(struct sljit_compiler *compiler, sljit_s32 type, in sljit_emit_call()
196 sljit_s32 arg_types) in sljit_emit_call()
251 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_icall(struct sljit_compiler *compiler, sljit_s32 type, in sljit_emit_icall()
[all …]
DsljitNativeRISCV_32.c27 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_r, sljit_sw imm, slj… in load_immediate()
46 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
DsljitNativePPC_64.c42 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate()
147 static SLJIT_INLINE sljit_s32 emit_single_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s… in emit_single_op()
148 sljit_s32 dst, sljit_s32 src1, sljit_s32 src2) in emit_single_op()
479 imm = (sljit_u32)(-(sljit_s32)imm); in emit_single_op()
502 static sljit_s32 call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_s32 *sr… in call_with_args()
504 sljit_s32 arg_count = 0; in call_with_args()
505 sljit_s32 word_arg_count = 0; in call_with_args()
506 sljit_s32 types = 0; in call_with_args()
507 sljit_s32 reg = 0; in call_with_args()
557 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw i… in emit_const()
DsljitNativeRISCV_64.c27 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_r, sljit_sw imm, slj… in load_immediate()
85 imm = (sljit_s32)imm; in load_immediate()
129 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
DsljitNativePPC_32.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate()
45 static SLJIT_INLINE sljit_s32 emit_single_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s… in emit_single_op()
46 sljit_s32 dst, sljit_s32 src1, sljit_s32 src2) in emit_single_op()
304 imm = (sljit_u32)(-(sljit_s32)imm); in emit_single_op()
322 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw i… in emit_const()
DsljitConfigInternal.h428 typedef signed int sljit_s32; typedef
690 #define SLJIT_LOCALS_OFFSET_BASE (2 * (sljit_s32)sizeof(sljit_sw))
699 #define SLJIT_LOCALS_OFFSET_BASE ((6 + 8) * (sljit_s32)sizeof(sljit_sw))
702 #define SLJIT_LOCALS_OFFSET_BASE ((3 + 1) * (sljit_s32)sizeof(sljit_sw))
704 #define SLJIT_LOCALS_OFFSET_BASE (3 * (sljit_s32)sizeof(sljit_sw))
712 #define SLJIT_LOCALS_OFFSET_BASE (4 * (sljit_s32)sizeof(sljit_sw))
DsljitWXExecAllocator.c139 static void sljit_update_wx_flags(void *from, void *to, sljit_s32 enable_exec) in sljit_update_wx_flags()
183 static void sljit_update_wx_flags(void *from, void *to, sljit_s32 enable_exec) in sljit_update_wx_flags()
DsljitExecAllocator.c151 static SLJIT_INLINE void apple_update_wx_flags(sljit_s32 enable_exec) in apple_update_wx_flags()
/third_party/pcre2/pcre2/src/
Dpcre2_jit_simd_inc.h67 static struct sljit_jump *jump_if_utf_char_start(struct sljit_compiler *compiler, sljit_s32 reg) in jump_if_utf_char_start()
85 static sljit_s32 character_to_int32(PCRE2_UCHAR chr) in character_to_int32()
90 return (sljit_s32)((value << 24) | (value << 16) | (value << 8) | value); in character_to_int32()
93 return (sljit_s32)((value << 16) | value); in character_to_int32()
96 return (sljit_s32)(value); in character_to_int32()
102 static void load_from_mem_sse2(struct sljit_compiler *compiler, sljit_s32 dst_xmm_reg, sljit_s32 sr… in load_from_mem_sse2()
127 int step, sljit_s32 dst_ind, sljit_s32 cmp1_ind, sljit_s32 cmp2_ind, sljit_s32 tmp_ind) in fast_forward_char_pair_sse2_compare()
205 …_forward_char_simd(compiler_common *common, PCRE2_UCHAR char1, PCRE2_UCHAR char2, sljit_s32 offset) in fast_forward_char_simd()
216 sljit_s32 tmp1_reg_ind = sljit_get_register_index(TMP1); in fast_forward_char_simd()
217 sljit_s32 str_ptr_reg_ind = sljit_get_register_index(STR_PTR); in fast_forward_char_simd()
[all …]
Dpcre2_jit_compile.c379 sljit_s32 *private_data_ptrs;
389 sljit_s32 cbra_ptr;
391 sljit_s32 ovector_start;
393 sljit_s32 start_ptr;
395 sljit_s32 req_char_ptr;
397 sljit_s32 recursive_head_ptr;
400 sljit_s32 start_used_ptr;
402 sljit_s32 hit_start;
404 sljit_s32 match_end_ptr;
406 sljit_s32 mark_ptr;
[all …]
Dpcre2_jit_neon_inc.h190 sljit_s32 align_offset = ((uint64_t)str_ptr & 0xf); in FF_FUN()