/third_party/pcre2/pcre2/src/sljit/ |
D | sljitWXExecAllocator.c | 96 static SLJIT_INLINE int generic_se_protected(void *ptr, sljit_uw size) in generic_se_protected() 118 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size) in sljit_malloc_exec() 125 sljit_uw* ptr; in sljit_malloc_exec() 134 size += sizeof(sljit_uw); in sljit_malloc_exec() 135 ptr = (sljit_uw*)mmap(NULL, size, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_malloc_exec() 160 sljit_uw *start_ptr = ((sljit_uw*)ptr) - 1; in sljit_free_exec() 166 sljit_uw page_mask = (sljit_uw)get_page_alignment(); in sljit_update_wx_flags() 167 sljit_uw start = (sljit_uw)from; in sljit_update_wx_flags() 168 sljit_uw end = (sljit_uw)to; in sljit_update_wx_flags() 181 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size) in sljit_malloc_exec() [all …]
|
D | sljitNativeARM_32.c | 58 …(sljit_uw*)(((sljit_uw)(ptr) + (CONST_POOL_ALIGNMENT * sizeof(sljit_uw)) - 1) & ~((CONST_POOL_ALIG… 60 (((max_diff) / (sljit_s32)sizeof(sljit_uw)) - (CONST_POOL_ALIGNMENT - 1)) 71 #define RM(rm) ((sljit_uw)reg_map[rm]) 72 #define RM8(rm) ((sljit_uw)reg_map[rm] << 8) 73 #define RD(rd) ((sljit_uw)reg_map[rd] << 12) 74 #define RN(rn) ((sljit_uw)reg_map[rn] << 16) 76 #define VM(rm) ((sljit_uw)freg_map[rm]) 77 #define VD(rd) ((sljit_uw)freg_map[rd] << 12) 78 #define VN(rn) ((sljit_uw)freg_map[rn] << 16) 151 sljit_uw* inst; in push_cpool() [all …]
|
D | sljitUtils.c | 134 static SLJIT_INLINE sljit_uw get_page_alignment(void) { in get_page_alignment() 136 static sljit_uw sljit_page_align = 0; in get_page_alignment() 139 sljit_page_align = (sljit_uw)si.dwPageSize - 1; in get_page_alignment() 148 static SLJIT_INLINE sljit_uw get_page_alignment(void) { in get_page_alignment() 149 static sljit_uw sljit_page_align = 0; in get_page_alignment() 162 sljit_page_align = (sljit_uw)align - 1; in get_page_alignment() 175 …ATTRIBUTE struct sljit_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_si… in sljit_allocate_stack() 239 …ATTRIBUTE struct sljit_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_si… in sljit_allocate_stack() 243 sljit_uw page_align; in sljit_allocate_stack() 299 sljit_uw aligned_old_start; in sljit_stack_resize() [all …]
|
D | sljitLir.h | 374 sljit_uw used_size; 381 sljit_uw addr; 383 sljit_uw size; 388 sljit_uw addr; 389 sljit_uw flags; 391 sljit_uw target; 399 sljit_uw addr; 400 sljit_uw flags; 405 sljit_uw addr; 437 sljit_uw size; [all …]
|
D | sljitExecAllocator.c | 69 #define CHUNK_SIZE (sljit_uw)0x10000u 84 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() 89 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() 171 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() 208 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() 222 sljit_uw size; 223 sljit_uw prev_size; 230 sljit_uw size; 238 #define ALIGN_SIZE(size) (((size) + sizeof(struct block_header) + 7u) & ~(sljit_uw)7) 241 static sljit_uw allocated_size; [all …]
|
D | sljitNativeARM_T2_32.c | 59 #define NEGATE(uimm) ((sljit_uw)-(sljit_sw)(uimm)) 232 …JIT_INLINE sljit_s32 emit_imm32_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in emit_imm32_const() 240 static SLJIT_INLINE void modify_imm32_const(sljit_u16 *inst, sljit_uw new_imm) in modify_imm32_const() 377 sljit_uw half_count; in sljit_generate_code() 378 sljit_uw next_addr; in sljit_generate_code() 417 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code() 418 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code() 422 jump->addr = (sljit_uw)code_ptr - ((jump->flags & IS_COND) ? 10 : 8); in sljit_generate_code() 427 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code() 432 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code() [all …]
|
D | sljitProtExecAllocator.c | 69 #define CHUNK_SIZE (sljit_uw)0x10000 188 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() 225 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() 252 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() 267 sljit_uw size; 268 sljit_uw prev_size; 276 sljit_uw size; 284 #define ALIGN_SIZE(size) (((size) + sizeof(struct block_header) + 7u) & ~(sljit_uw)7) 287 static sljit_uw allocated_size; 288 static sljit_uw total_size; [all …]
|
D | sljitNativeX86_64.c | 49 sljit_uw length = (rex ? 2 : 1) + sizeof(sljit_s32); in emit_do_imm32() 61 static sljit_u8* emit_x86_instruction(struct sljit_compiler *compiler, sljit_uw size, in emit_x86_instruction() 71 sljit_uw flags = size; in emit_x86_instruction() 72 sljit_uw inst_size; in emit_x86_instruction() 280 sljit_uw type = jump->flags >> TYPE_SHIFT; in generate_far_jump_code() 295 jump->addr = (sljit_uw)code_ptr; in generate_far_jump_code() 313 … generate_put_label_code(struct sljit_put_label *put_label, sljit_u8 *code_ptr, sljit_uw max_label) in generate_put_label_code() 323 code_ptr = (sljit_u8*)put_label->addr - 2 - sizeof(sljit_uw); in generate_put_label_code() 337 put_label->addr = (sljit_uw)code_ptr; in generate_put_label_code() 341 code_ptr -= put_label->flags + (2 + sizeof(sljit_uw)); in generate_put_label_code() [all …]
|
D | sljitNativeS390X.c | 42 typedef sljit_uw sljit_ins; 60 typedef sljit_uw sljit_gpr; 154 static SLJIT_INLINE sljit_uw sizeof_ins(sljit_ins ins) in sizeof_ins() 168 return (sljit_uw)-1; in sizeof_ins() 183 sljit_uw size = sizeof_ins(ins); in encode_inst() 310 typedef sljit_uw facility_bit; 380 sljit_uw bits[4]; in have_facility_dynamic() 383 const sljit_uw word_index = x >> 6; in have_facility_dynamic() 384 const sljit_uw bit_index = ((1UL << 63) >> (x & 63)); in have_facility_dynamic() 442 sljit_uw dh = (d >> 12) & 0xff; in HAVE_FACILITY() [all …]
|
D | sljitNativePPC_64.c | 43 sljit_uw tmp; in load_immediate() 44 sljit_uw shift; in load_immediate() 45 sljit_uw tmp2; in load_immediate() 46 sljit_uw shift2; in load_immediate() 60 tmp = (sljit_uw)((imm >= 0) ? imm : ~imm); in load_immediate() 64 tmp = ((sljit_uw)imm << shift); in load_immediate() 81 tmp2 = (sljit_uw)imm & (((sljit_uw)1 << (63 - shift)) - 1); in load_immediate() 109 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | (sljit_ins)((sljit_uw)imm >> 48))); in load_immediate() 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() [all …]
|
D | sljitConfigInternal.h | 432 typedef unsigned long int sljit_uw; typedef 441 typedef unsigned int sljit_uw; typedef 449 typedef unsigned long long sljit_uw; typedef 452 typedef unsigned __int64 sljit_uw; typedef 456 typedef unsigned long int sljit_uw; typedef 461 typedef sljit_uw sljit_p; 639 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size);
|
D | sljitNativeARM_64.c | 151 …JIT_INLINE sljit_s32 emit_imm64_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in emit_imm64_const() 162 sljit_uw target_addr; in detect_jump_type() 173 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)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() 236 sljit_uw word_count; in sljit_generate_code() 237 sljit_uw next_addr; in sljit_generate_code() 278 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 279 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code() 283 jump->addr = (sljit_uw)(code_ptr - 4); in sljit_generate_code() 288 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code() [all …]
|
D | sljitNativeMIPS_common.c | 307 static SLJIT_INLINE sljit_ins invert_branch(sljit_uw flags) in invert_branch() 321 sljit_uw target_addr; in detect_jump_type() 337 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 386 …flags & IS_MOVABLE) && (target_addr & ~(sljit_uw)0xfffffff) == ((jump->addr + 2 * sizeof(sljit_ins… in detect_jump_type() 395 …else if ((target_addr & ~(sljit_uw)0xfffffff) == ((jump->addr + 3 * sizeof(sljit_ins)) & ~(sljit_u… in detect_jump_type() 407 …if ((jump->flags & IS_MOVABLE) && (target_addr & ~(sljit_uw)0xfffffff) == (jump->addr & ~(sljit_uw… in detect_jump_type() 415 …if ((target_addr & ~(sljit_uw)0xfffffff) == ((jump->addr + sizeof(sljit_ins)) & ~(sljit_uw)0xfffff… 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() 477 sljit_uw addr = put_label->label->addr; in put_label_set() 513 sljit_uw word_count; in sljit_generate_code() [all …]
|
D | sljitNativeX86_common.c | 378 static sljit_u8 get_jump_code(sljit_uw type) in get_jump_code() 438 …generate_put_label_code(struct sljit_put_label *put_label, sljit_u8 *code_ptr, sljit_uw max_label); 443 sljit_uw type = jump->flags >> TYPE_SHIFT; in generate_near_jump_code() 445 sljit_uw label_addr; in generate_near_jump_code() 448 label_addr = (sljit_uw)(code + jump->u.label->size); in generate_near_jump_code() 450 label_addr = jump->u.target - (sljit_uw)executable_offset; in generate_near_jump_code() 501 sljit_uw jump_addr; in sljit_generate_code() 538 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 539 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code() 543 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code() [all …]
|
D | sljitNativePPC_common.c | 241 …unction_context(void** func_ptr, struct sljit_function_context* context, sljit_uw addr, void* func) in sljit_set_function_context() 243 sljit_uw* ptrs; in sljit_set_function_context() 248 ptrs = (sljit_uw*)func; in sljit_set_function_context() 267 sljit_uw target_addr; in detect_jump_type() 268 sljit_uw extra_jump_flags; in detect_jump_type() 282 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; 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() 355 sljit_uw addr = put_label->label->addr; in put_label_set() 391 sljit_uw word_count; in sljit_generate_code() 392 sljit_uw next_addr; in sljit_generate_code() [all …]
|
D | sljitLir.c | 384 && (sizeof(sljit_uw) == 4 || sizeof(sljit_uw) == 8), in sljit_create_compiler() 424 compiler->cpool = (sljit_uw*)SLJIT_MALLOC(CPOOL_SIZE * sizeof(sljit_uw) in sljit_create_compiler() 500 SLJIT_FREE_EXEC((void*)((sljit_uw)code & ~(sljit_uw)0x1), exec_allocator_data); in sljit_free_code() 508 code = (void*)(*(sljit_uw*)code); in sljit_free_code() 523 jump->flags &= (sljit_uw)~JUMP_ADDR; in sljit_set_label() 529 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_target(struct sljit_jump *jump, sljit_uw target) in sljit_set_target() 532 jump->flags &= (sljit_uw)~JUMP_LABEL; in sljit_set_target() 568 static void* ensure_buf(struct sljit_compiler *compiler, sljit_uw size) in ensure_buf() 574 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf() 587 static void* ensure_abuf(struct sljit_compiler *compiler, sljit_uw size) in ensure_abuf() [all …]
|
D | sljitNativeSPARC_common.c | 225 sljit_uw target_addr; in detect_jump_type() 236 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 276 jump->addr = (sljit_uw)inst; in detect_jump_type() 290 jump->addr = (sljit_uw)inst; in detect_jump_type() 304 sljit_uw word_count; in sljit_generate_code() 305 sljit_uw next_addr; in sljit_generate_code() 346 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 347 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code() 352 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code() 354 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code() [all …]
|
D | sljitNativeX86_32.c | 46 static sljit_u8* emit_x86_instruction(struct sljit_compiler *compiler, sljit_uw size, in emit_x86_instruction() 55 sljit_uw flags = size; in emit_x86_instruction() 56 sljit_uw inst_size; in emit_x86_instruction() 221 sljit_uw type = jump->flags >> TYPE_SHIFT; in generate_far_jump_code() 240 …sljit_unaligned_store_sw(code_ptr, (sljit_sw)(jump->u.target - (jump->addr + 4) - (sljit_uw)execut… in generate_far_jump_code() 344 inst = (sljit_u8*)ensure_buf(compiler, (sljit_uw)(size + 1)); in sljit_emit_enter() 347 INC_SIZE((sljit_uw)size); in sljit_emit_enter() 573 sljit_uw size; in emit_stack_frame_release() 576 size = (sljit_uw)(1 + (compiler->scratches > 9 ? (compiler->scratches - 9) : 0) + in emit_stack_frame_release() 596 sljit_uw size; in sljit_emit_return_void()
|
D | sljitNativeSPARC_32.c | 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() 282 sljit_set_jump_addr(addr, (sljit_uw)new_constant, executable_offset); in sljit_set_const()
|
D | sljitNativePPC_32.c | 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() 283 sljit_set_jump_addr(addr, (sljit_uw)new_constant, executable_offset); in sljit_set_const()
|
D | sljitNativeMIPS_64.c | 35 sljit_uw uimm; in load_immediate() 49 uimm = (sljit_uw)imm; in load_immediate() 51 uimm = ~(sljit_uw)imm; in load_immediate() 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() 563 sljit_set_jump_addr(addr, (sljit_uw)new_constant, executable_offset); in sljit_set_const()
|
D | sljitNativeMIPS_32.c | 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() 440 sljit_set_jump_addr(addr, (sljit_uw)new_constant, executable_offset); in sljit_set_const() 500 offset = (offset + sizeof(sljit_sw) + 15) & ~(sljit_uw)0xf; in call_with_args()
|
/third_party/pcre2/pcre2/src/ |
D | pcre2_jit_neon_inc.h | 85 …SLJIT_FUNC FF_FUN(sljit_u8 *str_end, sljit_u8 *str_ptr, sljit_uw offs1, sljit_uw offs2, sljit_uw c… in FF_FUN()
|
D | pcre2_jit_misc.c | 226 sljit_uw *executable_sizes = ((executable_functions *)executable_jit)->executable_sizes; in PRIV()
|
D | pcre2_jit_compile.c | 189 sljit_uw offset_limit; 200 sljit_uw executable_sizes[JIT_NUMBER_OF_COMPILE_MODES]; 3166 static sljit_uw * allocate_read_only_data(compiler_common *common, sljit_uw size) in allocate_read_only_data() 3169 sljit_uw *result; in allocate_read_only_data() 3174 result = (sljit_uw *)SLJIT_MALLOC(size + sizeof(sljit_uw), compiler->allocator_data); in allocate_read_only_data() 7509 sljit_uw c, charoffset, max = 256, min = READ_CHAR_MAX; in compile_xclass_matchingpath() 7521 sljit_uw typeoffset; in compile_xclass_matchingpath() 9759 sljit_uw callout_arg_size = (common->re->top_bracket + 1) * 2 * sizeof(sljit_sw); in compile_callout_matchingpath() 13704 sljit_uw executable_size; in jit_compile() 13705 sljit_uw total_length; in jit_compile()
|