Home
last modified time | relevance | path

Searched refs:put_label (Results 1 – 12 of 12) sorted by relevance

/third_party/pcre2/pcre2/src/sljit/
DsljitNativeARM_64.c215 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() argument
218 put_label->flags = 0; in put_label_get_length()
223 put_label->flags = 1; in put_label_get_length()
227 put_label->flags = 2; in put_label_get_length()
247 struct sljit_put_label *put_label; in sljit_generate_code() local
265 put_label = compiler->put_labels; in sljit_generate_code()
276 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
293 if (put_label && put_label->addr == word_count) { in sljit_generate_code()
294 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
295 put_label->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
[all …]
DsljitNativePPC_common.c357 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() argument
360 put_label->flags = 0; in put_label_get_length()
365 put_label->flags = 1; in put_label_get_length()
369 put_label->flags = 2; in put_label_get_length()
373 static SLJIT_INLINE void put_label_set(struct sljit_put_label *put_label) in put_label_set() argument
375 sljit_uw addr = put_label->label->addr; in put_label_set()
376 sljit_ins *inst = (sljit_ins *)put_label->addr; in put_label_set()
379 if (put_label->flags == 0) { in put_label_set()
384 if (put_label->flags == 1) { in put_label_set()
419 struct sljit_put_label *put_label; in sljit_generate_code() local
[all …]
DsljitNativeX86_64.c323 static sljit_u8* generate_put_label_code(struct sljit_put_label *put_label, sljit_u8 *code_ptr, slj… in generate_put_label_code() argument
326 put_label->addr -= put_label->flags; in generate_put_label_code()
327 put_label->flags = PATCH_MD; in generate_put_label_code()
331 if (put_label->flags == 0) { in generate_put_label_code()
333 code_ptr = (sljit_u8*)put_label->addr - 2 - sizeof(sljit_uw); in generate_put_label_code()
347 put_label->addr = (sljit_uw)code_ptr; in generate_put_label_code()
351 code_ptr -= put_label->flags + (2 + sizeof(sljit_uw)); in generate_put_label_code()
352 SLJIT_MEMMOVE(code_ptr, code_ptr + (2 + sizeof(sljit_uw)), put_label->flags); in generate_put_label_code()
367 code_ptr = (sljit_u8*)(put_label->addr - (2 + sizeof(sljit_uw)) + sizeof(sljit_s32)); in generate_put_label_code()
368 put_label->addr = (sljit_uw)code_ptr; in generate_put_label_code()
[all …]
DsljitNativeRISCV_common.c264 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() argument
267 put_label->flags = PATCH_ABS32; in put_label_get_length()
272 put_label->flags = PATCH_ABS44; in put_label_get_length()
277 put_label->flags = PATCH_ABS52; in put_label_get_length()
281 put_label->flags = 0; in put_label_get_length()
290 struct sljit_put_label *put_label; in load_addr_to_reg() local
304 put_label = (struct sljit_put_label*)dst; in load_addr_to_reg()
306 flags = put_label->flags; in load_addr_to_reg()
308 inst = (sljit_ins*)put_label->addr; in load_addr_to_reg()
309 addr = put_label->label->addr; in load_addr_to_reg()
[all …]
DsljitNativeX86_common.c529 static sljit_u8* generate_put_label_code(struct sljit_put_label *put_label, sljit_u8 *code_ptr, slj…
597 struct sljit_put_label *put_label; in sljit_generate_code() local
612 put_label = compiler->put_labels; in sljit_generate_code()
652 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
653 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
655 …e_ptr = generate_put_label_code(put_label, code_ptr, (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code, executa… in sljit_generate_code()
657 put_label = put_label->next; in sljit_generate_code()
670 SLJIT_ASSERT(!put_label); in sljit_generate_code()
707 put_label = compiler->put_labels; in sljit_generate_code()
708 while (put_label) { in sljit_generate_code()
[all …]
DsljitNativeMIPS_common.c502 static SLJIT_INLINE sljit_sw put_label_get_length(struct sljit_put_label *put_label, sljit_uw max_l… in put_label_get_length() argument
505 put_label->flags = PATCH_ABS32; in put_label_get_length()
510 put_label->flags = PATCH_ABS48; in put_label_get_length()
514 put_label->flags = 0; in put_label_get_length()
523 struct sljit_put_label *put_label; in load_addr_to_reg() local
534 put_label = (struct sljit_put_label*)dst; in load_addr_to_reg()
536 flags = put_label->flags; in load_addr_to_reg()
538 inst = (sljit_ins*)put_label->addr; in load_addr_to_reg()
539 addr = put_label->label->addr; in load_addr_to_reg()
585 struct sljit_put_label *put_label; in sljit_generate_code() local
[all …]
DsljitNativeARM_T2_32.c389 struct sljit_put_label *put_label; in sljit_generate_code() local
407 put_label = compiler->put_labels; in sljit_generate_code()
418 SLJIT_ASSERT(!put_label || put_label->addr >= half_count); in sljit_generate_code()
435 if (put_label && put_label->addr == half_count) { in sljit_generate_code()
436 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
437 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
438 put_label = put_label->next; in sljit_generate_code()
440 next_addr = compute_next_addr(label, jump, const_, put_label); in sljit_generate_code()
458 SLJIT_ASSERT(!put_label); in sljit_generate_code()
467 put_label = compiler->put_labels; in sljit_generate_code()
[all …]
DsljitNativeARM_32.c689 struct sljit_put_label *put_label; in sljit_generate_code() local
724 put_label = compiler->put_labels; in sljit_generate_code()
758 next_addr = compute_next_addr(label, jump, const_, put_label); in sljit_generate_code()
770 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
799 if (put_label && put_label->addr == word_count) { in sljit_generate_code()
800 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
801 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
802 put_label = put_label->next; in sljit_generate_code()
804 next_addr = compute_next_addr(label, jump, const_, put_label); in sljit_generate_code()
832 SLJIT_ASSERT(!put_label); in sljit_generate_code()
[all …]
DsljitLir.c538 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_put_label(struct sljit_put_label *put_label, struct sljit_l… in sljit_set_put_label() argument
540 if (SLJIT_LIKELY(!!put_label)) in sljit_set_put_label()
541 put_label->label = label; in sljit_set_put_label()
643 struct sljit_const *const_, struct sljit_put_label *put_label) in compute_next_addr() argument
656 if (put_label && put_label->addr < result) in compute_next_addr()
657 result = put_label->addr; in compute_next_addr()
733 static SLJIT_INLINE void set_put_label(struct sljit_put_label *put_label, struct sljit_compiler *co… in set_put_label() argument
735 put_label->next = NULL; in set_put_label()
736 put_label->label = NULL; in set_put_label()
737 put_label->addr = compiler->size - offset; in set_put_label()
[all …]
DsljitNativeS390X.c1429 struct sljit_put_label *put_label; in sljit_generate_code() local
1447 put_label = compiler->put_labels; in sljit_generate_code()
1486 if (put_label && put_label->addr == j) { in sljit_generate_code()
1488 put_label = put_label->next; in sljit_generate_code()
1502 SLJIT_ASSERT(!put_label); in sljit_generate_code()
1535 put_label = compiler->put_labels; in sljit_generate_code()
1614 if (put_label && put_label->addr == j) { in sljit_generate_code()
1617 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
1618 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
1621 *pool_ptr = put_label->label->addr; in sljit_generate_code()
[all …]
DsljitLir.h1650 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_put_label(struct sljit_put_label *put_label, struct sljit_l…
/third_party/pcre2/pcre2/src/
Dpcre2_jit_compile.c12680 struct sljit_put_label *put_label = NULL; in compile_bracket_backtrackingpath() local
12969 put_label = sljit_emit_put_label(compiler, SLJIT_MEM1(STACK_TOP), STACK(stacksize)); in compile_bracket_backtrackingpath()
12995 sljit_set_put_label(put_label, LABEL()); in compile_bracket_backtrackingpath()
13490 struct sljit_put_label *put_label = NULL; in compile_recurse() local
13553 put_label = sljit_emit_put_label(compiler, SLJIT_MEM1(STACK_TOP), STACK(1)); in compile_recurse()
13586 sljit_set_put_label(put_label, LABEL()); in compile_recurse()
13597 sljit_set_put_label(put_label, LABEL()); in compile_recurse()