Home
last modified time | relevance | path

Searched refs:sljit_sw (Results 1 – 22 of 22) sorted by relevance

/third_party/pcre2/pcre2/src/sljit/
DsljitLir.h439 sljit_sw executable_offset;
484 sljit_sw cache_argw;
494 sljit_sw cache_argw;
598 static SLJIT_INLINE sljit_sw sljit_get_executable_offset(struct sljit_compiler *compiler) { return … in sljit_get_executable_offset()
719 sljit_s32 src, sljit_sw srcw);
741 …UTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw);
1008 sljit_s32 dst, sljit_sw dstw,
1009 sljit_s32 src, sljit_sw srcw);
1064 sljit_s32 dst, sljit_sw dstw,
1065 sljit_s32 src1, sljit_sw src1w,
[all …]
DsljitLir.c251 (saveds) + (sljit_s32)(extra)) * (sljit_s32)sizeof(sljit_sw))
382 && sizeof(sljit_p) <= sizeof(sljit_sw) in sljit_create_compiler()
383 && (sizeof(sljit_sw) == 4 || sizeof(sljit_sw) == 8) in sljit_create_compiler()
817 static sljit_s32 function_check_src_mem(struct sljit_compiler *compiler, sljit_s32 p, sljit_sw i) in function_check_src_mem()
851 static sljit_s32 function_check_src(struct sljit_compiler *compiler, sljit_s32 p, sljit_sw i) in function_check_src()
871 static sljit_s32 function_check_dst(struct sljit_compiler *compiler, sljit_s32 p, sljit_sw i) in function_check_dst()
888 static sljit_s32 function_fcheck(struct sljit_compiler *compiler, sljit_s32 p, sljit_sw i) in function_fcheck()
942 static void sljit_verbose_param(struct sljit_compiler *compiler, sljit_s32 p, sljit_sw i) in sljit_verbose_param()
966 static void sljit_verbose_fparam(struct sljit_compiler *compiler, sljit_s32 p, sljit_sw i) in sljit_verbose_fparam()
1183 …heck_sljit_emit_return(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 src, sljit_sw srcw) in check_sljit_emit_return()
[all …]
DsljitNativeX86_common.c318 static SLJIT_INLINE void sljit_unaligned_store_sw(void *addr, sljit_sw value) in sljit_unaligned_store_sw()
435 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_sw execu…
441 …_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_u8 *code, sljit_sw executable_offset) in generate_near_jump_code()
452 …short_jump = (sljit_sw)(label_addr - (jump->addr + 2)) >= -128 && (sljit_sw)(label_addr - (jump->a… in generate_near_jump_code()
455 …if ((sljit_sw)(label_addr - (jump->addr + 1)) > HALFWORD_MAX || (sljit_sw)(label_addr - (jump->add… in generate_near_jump_code()
500 sljit_sw executable_offset; in sljit_generate_code()
556 const_->addr = ((sljit_uw)code_ptr) - sizeof(sljit_sw); in sljit_generate_code()
587 …SLJIT_ASSERT((sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(sljit_s8))) >= -128 && (sljit_sw in sljit_generate_code()
592 …sljit_unaligned_store_sw((void*)jump->addr, (sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(s… in sljit_generate_code()
594 …SLJIT_ASSERT((sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(sljit_s32))) >= HALFWORD_MIN && … in sljit_generate_code()
[all …]
DsljitNativeARM_32.c371 if ((sljit_sw)value >= 0) { in resolve_const_pool_index()
383 curr_patch->index = (sljit_sw)value; in resolve_const_pool_index()
384 curr_patch->value = (sljit_sw)cpool_start_address[value]; in resolve_const_pool_index()
405 static SLJIT_INLINE sljit_s32 emit_imm(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in emit_imm()
413 …_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_uw *code, sljit_sw executable_offset) in detect_jump_type()
415 sljit_sw diff; in detect_jump_type()
425 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset); in detect_jump_type()
428 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)); in detect_jump_type()
450 diff = ((sljit_sw)jump->u.target - (sljit_sw)code_ptr - executable_offset); in detect_jump_type()
453 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)code_ptr); in detect_jump_type()
[all …]
DsljitNativeSPARC_common.c222 …ump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type()
224 sljit_sw diff; in detect_jump_type()
262 diff = ((sljit_sw)target_addr - (sljit_sw)(inst - 1) - executable_offset) >> 2; in detect_jump_type()
306 sljit_sw executable_offset; in sljit_generate_code()
307 sljit_sw addr; in sljit_generate_code()
393 addr = (sljit_sw)((jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target); in sljit_generate_code()
397 addr = (addr - (sljit_sw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset)) >> 2; in sljit_generate_code()
403 addr = (addr - (sljit_sw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset)) >> 2; in sljit_generate_code()
423 addr = (sljit_sw)put_label->label->addr; in sljit_generate_code()
537 float_offset = 16 * sizeof(sljit_sw); in sljit_emit_enter()
[all …]
DsljitNativeS390X.c137 sljit_sw init_value; /* required to build literal pool */
768 SLJIT_S390X_INSTRUCTION(name, sljit_gpr reg, sljit_sw imm, sljit_uw mask) \
786 SLJIT_S390X_INSTRUCTION(name, sljit_gpr reg, sljit_sw ri) \
809 SLJIT_S390X_INSTRUCTION(brc, sljit_uw mask, sljit_sw target) in SLJIT_S390X_INSTRUCTION()
816 SLJIT_S390X_INSTRUCTION(brcl, sljit_uw mask, sljit_sw target) in SLJIT_S390X_INSTRUCTION()
867 static sljit_s32 push_load_imm_inst(struct sljit_compiler *compiler, sljit_gpr target, sljit_sw v) in push_load_imm_inst()
912 struct addr *addr, sljit_s32 mem, sljit_sw off, in make_addr_bxy()
945 struct addr *addr, sljit_s32 mem, sljit_sw off, in make_addr_bx()
982 sljit_s32 src, sljit_sw srcw, in load_word()
1004 sljit_s32 dst, sljit_sw dstw, in store_word()
[all …]
DsljitNativeARM_T2_32.c59 #define NEGATE(uimm) ((sljit_uw)-(sljit_sw)(uimm))
250 …ump_type(struct sljit_jump *jump, sljit_u16 *code_ptr, sljit_u16 *code, sljit_sw executable_offset) in detect_jump_type()
252 sljit_sw diff; in detect_jump_type()
261 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset) >> 1; in detect_jump_type()
265 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type()
305 static SLJIT_INLINE void set_jump_instruction(struct sljit_jump *jump, sljit_sw executable_offset) in set_jump_instruction()
308 sljit_sw diff; in set_jump_instruction()
319 …diff = ((sljit_sw)jump->u.target - (sljit_sw)(jump->addr + sizeof(sljit_u32)) - executable_offset)… in set_jump_instruction()
323 …diff = ((sljit_sw)(jump->u.label->addr) - (sljit_sw)(jump->addr + sizeof(sljit_u32)) - executable_… in set_jump_instruction()
379 sljit_sw executable_offset; in sljit_generate_code()
[all …]
DsljitConfigInternal.h433 typedef long int sljit_sw; typedef
442 typedef int sljit_sw; typedef
450 typedef long long sljit_sw; typedef
453 typedef __int64 sljit_sw; typedef
457 typedef long int sljit_sw; typedef
654 SLJIT_API_FUNC_ATTRIBUTE sljit_sw sljit_exec_offset(void* ptr);
686 #define SLJIT_LOCALS_OFFSET_BASE (4 * (sljit_s32)sizeof(sljit_sw))
712 #define SLJIT_LOCALS_OFFSET_BASE (2 * (sljit_s32)sizeof(sljit_sw))
721 #define SLJIT_LOCALS_OFFSET_BASE ((6 + 8) * (sljit_s32)sizeof(sljit_sw))
724 #define SLJIT_LOCALS_OFFSET_BASE ((3 + 1) * (sljit_s32)sizeof(sljit_sw))
[all …]
DsljitNativeARM_64.c159 static SLJIT_INLINE sljit_sw detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_i… in detect_jump_type()
161 sljit_sw diff; in detect_jump_type()
176 diff = (sljit_sw)target_addr - (sljit_sw)(code_ptr + 4) - executable_offset; in detect_jump_type()
213 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length()
238 sljit_sw executable_offset; in sljit_generate_code()
239 sljit_sw addr; in sljit_generate_code()
316 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
321 addr = (sljit_sw)((jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target); in sljit_generate_code()
325 addr = (addr - (sljit_sw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset)) >> 2; in sljit_generate_code()
333 addr = (addr - (sljit_sw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset)) >> 2; in sljit_generate_code()
[all …]
DsljitNativeX86_32.c33 static sljit_s32 emit_do_imm(struct sljit_compiler *compiler, sljit_u8 opcode, sljit_sw imm) in emit_do_imm()
37 inst = (sljit_u8*)ensure_buf(compiler, 1 + 1 + sizeof(sljit_sw)); in emit_do_imm()
39 INC_SIZE(1 + sizeof(sljit_sw)); 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()
82 inst_size += sizeof(sljit_sw); in emit_x86_instruction()
88 inst_size += sizeof(sljit_sw); in emit_x86_instruction()
120 inst_size += sizeof(sljit_sw); in emit_x86_instruction()
188 buf_ptr += sizeof(sljit_sw); in emit_x86_instruction()
200 buf_ptr += sizeof(sljit_sw); in emit_x86_instruction()
[all …]
DsljitNativePPC_common.c264 …ump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type()
266 sljit_sw diff; in detect_jump_type()
290 diff = ((sljit_sw)target_addr - (sljit_sw)(code_ptr) - executable_offset) & ~0x3l; in detect_jump_type()
337 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length()
393 sljit_sw executable_offset; in sljit_generate_code()
519 …SLJIT_ASSERT(code_ptr - code <= (sljit_sw)(compiler->size - (sizeof(struct sljit_function_context)… in sljit_generate_code()
521 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
534 SLJIT_ASSERT((sljit_sw)addr <= 0x7fff && (sljit_sw)addr >= -0x8000); in sljit_generate_code()
545 SLJIT_ASSERT((sljit_sw)addr <= 0x01ffffff && (sljit_sw)addr >= -0x02000000); in sljit_generate_code()
612 if (((sljit_sw)code_ptr) & 0x4) in sljit_generate_code()
[all …]
DsljitNativeSPARC_32.c27 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw imm) in load_immediate()
39 sljit_s32 dst, sljit_s32 src1, sljit_sw src2) in emit_single_op()
147 sljit_u32 float_offset = (16 + 6) * sizeof(sljit_sw); in call_with_args()
199 …mpiler, STF | FD(float_arg_index) | S1(SLJIT_SP) | IMM((16 + 7) * sizeof(sljit_sw)), MOVABLE_INS)); in call_with_args()
200 …| FD(float_arg_index) | (1 << 25) | S1(SLJIT_SP) | IMM((16 + 8) * sizeof(sljit_sw)), MOVABLE_INS)); in call_with_args()
218 float_offset = (16 + 6) * sizeof(sljit_sw); in call_with_args()
228 …er, LDUW | DA(reg_index + 1) | S1(SLJIT_SP) | IMM(float_offset + sizeof(sljit_sw)), reg_index + 1)… in call_with_args()
260 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
266 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
280 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
DsljitNativeMIPS_common.c318 …ump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type()
320 sljit_sw diff; in detect_jump_type()
351 diff = ((sljit_sw)target_addr - (sljit_sw)inst - executable_offset) >> 2; in detect_jump_type()
369 diff = ((sljit_sw)target_addr - (sljit_sw)(inst + 1) - executable_offset) >> 2; in detect_jump_type()
459 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length()
515 sljit_sw executable_offset; in sljit_generate_code()
599 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
608 …addr = (sljit_uw)((sljit_sw)(addr - (sljit_uw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset) - … in sljit_generate_code()
609 SLJIT_ASSERT((sljit_sw)addr <= SIMM_MAX && (sljit_sw)addr >= SIMM_MIN); in sljit_generate_code()
688 sljit_sw fir = 0; in sljit_has_cpu_feature()
[all …]
DsljitNativeMIPS_32.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_ar, sljit_sw imm) in load_immediate()
70 sljit_s32 dst, sljit_s32 src1, sljit_sw src2) in emit_single_op()
418 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
424 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
438 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
468 offset += sizeof(sljit_sw); in call_with_args()
486 offset += sizeof(sljit_sw); in call_with_args()
496 SLJIT_ASSERT(offset <= 8 * sizeof(sljit_sw)); in call_with_args()
498 if (offset > 4 * sizeof(sljit_sw) && (!is_tail_call || offset > compiler->args_size)) { in call_with_args()
500 offset = (offset + sizeof(sljit_sw) + 15) & ~(sljit_uw)0xf; in call_with_args()
[all …]
DsljitNativeX86_64.c33 static sljit_s32 emit_load_imm64(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in emit_load_imm64()
37 inst = (sljit_u8*)ensure_buf(compiler, 1 + 2 + sizeof(sljit_sw)); in emit_load_imm64()
39 INC_SIZE(2 + sizeof(sljit_sw)); in emit_load_imm64()
46 …jit_s32 emit_do_imm32(struct sljit_compiler *compiler, sljit_u8 rex, sljit_u8 opcode, sljit_sw 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()
302 sljit_unaligned_store_sw(code_ptr, (sljit_sw)jump->u.target); in generate_far_jump_code()
304 code_ptr += short_addr ? sizeof(sljit_s32) : sizeof(sljit_sw); in generate_far_jump_code()
805 sljit_s32 src, sljit_sw srcw) in sljit_emit_icall()
838 …BUTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw) in sljit_emit_fast_enter()
[all …]
DsljitProtExecAllocator.c269 sljit_sw executable_offset;
322 sljit_sw executable_offset; in sljit_malloc_exec()
364 executable_offset = (sljit_sw)((sljit_u8*)chunk_header->executable - (sljit_u8*)chunk_header); in sljit_malloc_exec()
404 header = AS_BLOCK_HEADER(ptr, -(sljit_sw)sizeof(struct block_header)); in sljit_free_exec()
412 free_block = AS_FREE_BLOCK(header, -(sljit_sw)header->prev_size); in sljit_free_exec()
471 SLJIT_API_FUNC_ATTRIBUTE sljit_sw sljit_exec_offset(void* ptr) in sljit_exec_offset()
DsljitNativePPC_32.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate()
261 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw i… in emit_const()
267 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
281 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
DsljitNativeMIPS_64.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst_ar, sljit_sw imm) in load_immediate()
70 if ((sljit_sw)uimm < 0) { in load_immediate()
161 sljit_s32 dst, sljit_s32 src1, sljit_sw src2) in emit_single_op()
536 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw i… in emit_const()
546 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
561 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
676 sljit_s32 src, sljit_sw srcw) in sljit_emit_icall()
DsljitNativePPC_64.c41 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate()
482 static SLJIT_INLINE sljit_s32 emit_const(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw i… in emit_const()
491 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
506 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
DsljitExecAllocator.c347 header = AS_BLOCK_HEADER(ptr, -(sljit_sw)sizeof(struct block_header)); in sljit_free_exec()
355 free_block = AS_FREE_BLOCK(header, -(sljit_sw)header->prev_size); in sljit_free_exec()
DsljitUtils.c151 sljit_sw align; in get_page_alignment()
/third_party/pcre2/pcre2/src/
Dpcre2_jit_compile.c328 sljit_sw start;
349 sljit_sw start;
422 sljit_sw lcc;
452 sljit_sw ctypes;
455 sljit_sw name_count;
456 sljit_sw name_entry_size;
545 #define STACK(i) ((i) * (int)sizeof(sljit_sw))
581 #define LOCALS0 (0 * sizeof(sljit_sw))
582 #define LOCALS1 (1 * sizeof(sljit_sw))
584 #define POSSESSIVE0 (2 * sizeof(sljit_sw))
[all …]