/external/pcre/dist2/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() 124 sljit_uw* ptr; in sljit_malloc_exec() 129 size += sizeof(sljit_uw); in sljit_malloc_exec() 130 ptr = (sljit_uw*)mmap(NULL, size, PROT_READ | PROT_WRITE | SLJIT_PROT_WX, in sljit_malloc_exec() 156 sljit_uw *start_ptr = ((sljit_uw*)ptr) - 1; in sljit_free_exec() 162 sljit_uw page_mask = (sljit_uw)get_page_alignment(); in sljit_update_wx_flags() 163 sljit_uw start = (sljit_uw)from; in sljit_update_wx_flags() 164 sljit_uw end = (sljit_uw)to; in sljit_update_wx_flags() 177 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)) 142 sljit_uw* inst; in push_cpool() 143 sljit_uw* cpool_ptr; in push_cpool() 144 sljit_uw* cpool_end; in push_cpool() 152 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool() 158 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool() 167 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool() 177 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst() 179 sljit_uw* ptr; in push_inst() [all …]
|
D | sljitLir.h | 346 sljit_uw used_size; 353 sljit_uw addr; 355 sljit_uw size; 360 sljit_uw addr; 361 sljit_uw flags; 363 sljit_uw target; 371 sljit_uw addr; 372 sljit_uw flags; 377 sljit_uw addr; 409 sljit_uw size; [all …]
|
D | sljitExecAllocator.c | 83 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() 88 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() 154 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() 187 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() 201 sljit_uw size; 202 sljit_uw prev_size; 209 sljit_uw size; 220 static sljit_uw allocated_size; 221 static sljit_uw total_size; 223 static SLJIT_INLINE void sljit_insert_free_block(struct free_block *free_block, sljit_uw size) in sljit_insert_free_block() [all …]
|
D | sljitUtils.c | 168 …ATTRIBUTE struct sljit_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_si… in sljit_allocate_stack() 232 …ATTRIBUTE struct sljit_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_si… in sljit_allocate_stack() 292 sljit_uw aligned_old_start; in sljit_stack_resize() 293 sljit_uw aligned_new_start; in sljit_stack_resize() 303 aligned_new_start = (sljit_uw)new_start & ~page_align; in sljit_stack_resize() 304 aligned_old_start = ((sljit_uw)stack->start) & ~page_align; in sljit_stack_resize() 319 aligned_new_start = (sljit_uw)new_start & ~page_align; in sljit_stack_resize() 320 aligned_old_start = ((sljit_uw)stack->start) & ~page_align; in sljit_stack_resize()
|
D | sljitProtExecAllocator.c | 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; 287 static sljit_uw allocated_size; 288 static sljit_uw total_size; 290 static SLJIT_INLINE void sljit_insert_free_block(struct free_block *free_block, sljit_uw size) in sljit_insert_free_block() 315 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size) in sljit_malloc_exec() [all …]
|
D | sljitNativeS390X.c | 42 typedef sljit_uw sljit_ins; 57 typedef sljit_uw sljit_gpr; 129 static SLJIT_INLINE sljit_uw sizeof_ins(sljit_ins ins) in sizeof_ins() 143 return (sljit_uw)-1; in sizeof_ins() 158 sljit_uw size = sizeof_ins(ins); in encode_inst() 228 typedef sljit_uw facility_bit; 298 sljit_uw bits[4]; in have_facility_dynamic() 301 const sljit_uw word_index = x >> 6; in have_facility_dynamic() 302 const sljit_uw bit_index = ((1UL << 63) >> (x & 63)); in have_facility_dynamic() 355 static SLJIT_INLINE sljit_uw disp_s20(sljit_s32 d) in HAVE_FACILITY() [all …]
|
D | sljitConfigInternal.h | 408 typedef unsigned long int sljit_uw; typedef 417 typedef unsigned int sljit_uw; typedef 425 typedef unsigned long long sljit_uw; typedef 428 typedef unsigned __int64 sljit_uw; typedef 432 typedef unsigned long int sljit_uw; typedef 437 typedef sljit_uw sljit_p; 615 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size);
|
D | sljitNativeX86_64.c | 59 jump->addr = (sljit_uw)code_ptr; in generate_far_jump_code() 77 … generate_put_label_code(struct sljit_put_label *put_label, sljit_u8 *code_ptr, sljit_uw max_label) in generate_put_label_code() 87 code_ptr = (sljit_u8*)put_label->addr - 2 - sizeof(sljit_uw); in generate_put_label_code() 101 put_label->addr = (sljit_uw)code_ptr; in generate_put_label_code() 105 code_ptr -= put_label->flags + (2 + sizeof(sljit_uw)); in generate_put_label_code() 106 SLJIT_MEMMOVE(code_ptr, code_ptr + (2 + sizeof(sljit_uw)), put_label->flags); in generate_put_label_code() 111 code_ptr += 2 + sizeof(sljit_uw); in generate_put_label_code() 121 code_ptr = (sljit_u8*)(put_label->addr - (2 + sizeof(sljit_uw)) + sizeof(sljit_s32)); in generate_put_label_code() 122 put_label->addr = (sljit_uw)code_ptr; in generate_put_label_code() 858 if (sign || ((sljit_uw)srcw <= 0x7fffffff)) { in emit_mov_int() [all …]
|
D | sljitNativeARM_64.c | 146 …JIT_INLINE sljit_s32 emit_imm64_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in emit_imm64_const() 157 sljit_uw target_addr; in detect_jump_type() 168 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 208 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() 231 sljit_uw word_count; in sljit_generate_code() 232 sljit_uw next_addr; in sljit_generate_code() 234 sljit_uw addr; in sljit_generate_code() 273 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 278 jump->addr = (sljit_uw)(code_ptr - 4); in sljit_generate_code() 283 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code() [all …]
|
D | sljitNativeARM_T2_32.c | 222 …JIT_INLINE sljit_s32 emit_imm32_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in emit_imm32_const() 230 static SLJIT_INLINE void modify_imm32_const(sljit_u16 *inst, sljit_uw new_imm) in modify_imm32_const() 367 sljit_uw half_count; in sljit_generate_code() 368 sljit_uw next_addr; in sljit_generate_code() 407 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code() 412 jump->addr = (sljit_uw)code_ptr - ((jump->flags & IS_COND) ? 10 : 8); in sljit_generate_code() 417 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code() 422 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code() 435 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code() 469 return (void*)((sljit_uw)code | 0x1); in sljit_generate_code() [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() 477 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr() 492 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
|
D | sljitNativeSPARC_common.c | 221 sljit_uw target_addr; in detect_jump_type() 232 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 272 jump->addr = (sljit_uw)inst; in detect_jump_type() 286 jump->addr = (sljit_uw)inst; in detect_jump_type() 300 sljit_uw word_count; in sljit_generate_code() 301 sljit_uw next_addr; in sljit_generate_code() 303 sljit_uw addr; in sljit_generate_code() 342 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 348 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code() 350 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code() [all …]
|
D | sljitLir.c | 380 && (sizeof(sljit_uw) == 4 || sizeof(sljit_uw) == 8), in sljit_create_compiler() 422 compiler->cpool = (sljit_uw*)SLJIT_MALLOC(CPOOL_SIZE * sizeof(sljit_uw) in sljit_create_compiler() 491 SLJIT_FREE_EXEC((void*)((sljit_uw)code & ~0x1), exec_allocator_data); in sljit_free_code() 499 code = (void*)(*(sljit_uw*)code); in sljit_free_code() 520 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_target(struct sljit_jump *jump, sljit_uw target) in sljit_set_target() 551 static void* ensure_buf(struct sljit_compiler *compiler, sljit_uw size) in ensure_buf() 557 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf() 570 static void* ensure_abuf(struct sljit_compiler *compiler, sljit_uw size) in ensure_abuf() 576 …if (compiler->abuf->used_size + size <= (ABUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_… in ensure_abuf() 639 static SLJIT_INLINE sljit_uw compute_next_addr(struct sljit_label *label, struct sljit_jump *jump, in compute_next_addr() [all …]
|
D | sljitNativePPC_common.c | 262 sljit_uw target_addr; in detect_jump_type() 277 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 332 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() 350 sljit_uw addr = put_label->label->addr; in put_label_set() 386 sljit_uw word_count; in sljit_generate_code() 387 sljit_uw next_addr; in sljit_generate_code() 389 sljit_uw addr; in sljit_generate_code() 435 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 441 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code() 443 jump->addr = (sljit_uw)(code_ptr - 6); in sljit_generate_code() [all …]
|
D | sljitNativeMIPS_common.c | 317 sljit_uw target_addr; in detect_jump_type() 333 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 455 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() 473 sljit_uw addr = put_label->label->addr; in put_label_set() 509 sljit_uw word_count; in sljit_generate_code() 510 sljit_uw next_addr; in sljit_generate_code() 512 sljit_uw addr; in sljit_generate_code() 550 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 556 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code() 558 jump->addr = (sljit_uw)(code_ptr - 7); in sljit_generate_code() [all …]
|
D | sljitNativeX86_common.c | 434 …generate_put_label_code(struct sljit_put_label *put_label, sljit_u8 *code_ptr, sljit_uw max_label); 441 sljit_uw label_addr; in generate_near_jump_code() 444 label_addr = (sljit_uw)(code + jump->u.label->size); in generate_near_jump_code() 534 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code() 539 jump->addr = (sljit_uw)code_ptr; in sljit_generate_code() 552 const_->addr = ((sljit_uw)code_ptr) - sizeof(sljit_sw); in sljit_generate_code() 558 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code() 560 …code_ptr = generate_put_label_code(put_label, code_ptr, (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code, exec… in sljit_generate_code() 804 sljit_uw size_jz_after_cmp_inst; in adjust_shadow_stack() 806 sljit_uw size_before_rdssp_inst = compiler->size; in adjust_shadow_stack() [all …]
|
D | sljitNativePPC_32.c | 258 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr() 272 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
|
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()
|
D | sljitNativeX86_32.c | 62 …sljit_unaligned_store_sw(code_ptr, jump->u.target - (jump->addr + 4) - (sljit_uw)executable_offset… in generate_far_jump_code() 170 …veds = (2 + (scratches > 9 ? (scratches - 9) : 0) + (saveds <= 3 ? saveds : 3)) * sizeof(sljit_uw); in sljit_emit_enter() 278 …veds = (2 + (scratches > 9 ? (scratches - 9) : 0) + (saveds <= 3 ? saveds : 3)) * sizeof(sljit_uw); in sljit_set_context() 915 …compiler->scratches - 9) : 0) + (compiler->saveds <= 3 ? compiler->saveds : 3)) * sizeof(sljit_uw); in skip_frames_before_return()
|
D | sljitNativeMIPS_64.c | 35 sljit_uw uimm; in load_immediate() 525 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr() 540 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
|
D | sljitNativeMIPS_32.c | 425 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr() 439 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
|
/external/pcre/dist2/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]; 3093 static sljit_uw * allocate_read_only_data(compiler_common *common, sljit_uw size) in allocate_read_only_data() 3096 sljit_uw *result; in allocate_read_only_data() 3101 result = (sljit_uw *)SLJIT_MALLOC(size + sizeof(sljit_uw), compiler->allocator_data); in allocate_read_only_data() 7420 sljit_uw c, charoffset, max = 256, min = READ_CHAR_MAX; in compile_xclass_matchingpath() 7433 sljit_uw typeoffset; in compile_xclass_matchingpath() 9528 sljit_uw callout_arg_size = (common->re->top_bracket + 1) * 2 * sizeof(sljit_sw); in compile_callout_matchingpath() 13475 sljit_uw executable_size; in jit_compile() 13476 sljit_uw total_length; in jit_compile()
|