Home
last modified time | relevance | path

Searched refs:re_ctx_p (Results 1 – 5 of 5) sorted by relevance

/third_party/jerryscript/jerry-core/parser/regexp/
Dre-parser.c54 re_get_group_end_opcode (re_compiler_ctx_t *re_ctx_p, /**< RegExp compiler context */ in re_get_group_end_opcode() argument
59 if (re_ctx_p->token.greedy) in re_get_group_end_opcode()
67 if (re_ctx_p->token.greedy) in re_get_group_end_opcode()
79 re_insert_into_group (re_compiler_ctx_t *re_ctx_p, /**< RegExp compiler context */ in re_insert_into_group() argument
85 uint32_t qmin = re_ctx_p->token.qmin; in re_insert_into_group()
86 uint32_t qmax = re_ctx_p->token.qmax; in re_insert_into_group()
88 if (JERRY_UNLIKELY (!is_capturing && re_bytecode_size (re_ctx_p) == group_start_offset)) in re_insert_into_group()
95 re_insert_value (re_ctx_p, in re_insert_into_group()
97 re_bytecode_size (re_ctx_p) - group_start_offset); in re_insert_into_group()
100 re_insert_value (re_ctx_p, group_start_offset, qmin); in re_insert_into_group()
[all …]
Dre-bytecode.c34 re_initialize_regexp_bytecode (re_compiler_ctx_t *re_ctx_p) /**< RegExp bytecode context */ in re_initialize_regexp_bytecode() argument
37 re_ctx_p->bytecode_start_p = jmem_heap_alloc_block (initial_size); in re_initialize_regexp_bytecode()
38 re_ctx_p->bytecode_size = initial_size; in re_initialize_regexp_bytecode()
42 re_bytecode_size (re_compiler_ctx_t *re_ctx_p) /**< RegExp bytecode context */ in re_bytecode_size() argument
44 return (uint32_t) re_ctx_p->bytecode_size; in re_bytecode_size()
51 re_bytecode_reserve (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */ in re_bytecode_reserve() argument
54 const size_t old_size = re_ctx_p->bytecode_size; in re_bytecode_reserve()
56re_ctx_p->bytecode_start_p = jmem_heap_realloc_block (re_ctx_p->bytecode_start_p, old_size, new_si… in re_bytecode_reserve()
57 re_ctx_p->bytecode_size = new_size; in re_bytecode_reserve()
58 return re_ctx_p->bytecode_start_p + old_size; in re_bytecode_reserve()
[all …]
Dre-bytecode.h108 void re_initialize_regexp_bytecode (re_compiler_ctx_t *re_ctx_p);
109 uint32_t re_bytecode_size (re_compiler_ctx_t *re_ctx_p);
111 void re_append_opcode (re_compiler_ctx_t *re_ctx_p, const re_opcode_t opcode);
112 void re_append_byte (re_compiler_ctx_t *re_ctx_p, const uint8_t byte);
113 void re_append_char (re_compiler_ctx_t *re_ctx_p, const lit_code_point_t cp);
114 void re_append_value (re_compiler_ctx_t *re_ctx_p, const uint32_t value);
116 void re_insert_opcode (re_compiler_ctx_t *re_ctx_p, const uint32_t offset, const re_opcode_t opcode…
117 void re_insert_byte (re_compiler_ctx_t *re_ctx_p, const uint32_t offset, const uint8_t byte);
118 void re_insert_char (re_compiler_ctx_t *re_ctx_p, const uint32_t offset, const lit_code_point_t cp…
119 void re_insert_value (re_compiler_ctx_t *re_ctx_p, const uint32_t offset, const uint32_t value);
Dre-parser.h50 ecma_value_t re_parse_alternative (re_compiler_ctx_t *re_ctx_p, bool expect_eof);
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-regexp-object.c511 ecma_regexp_advance (ecma_regexp_ctx_t *re_ctx_p, /**< regexp context */ in ecma_regexp_advance() argument
518 if (JERRY_UNLIKELY (re_ctx_p->flags & RE_FLAG_UNICODE) in ecma_regexp_advance()
520 && *str_p < re_ctx_p->input_end_p) in ecma_regexp_advance()
531 return ecma_regexp_canonicalize (cp, re_ctx_p->flags); in ecma_regexp_advance()
570 ecma_regexp_step_back (ecma_regexp_ctx_t *re_ctx_p, /**< regexp context */ in ecma_regexp_step_back() argument
576 if (JERRY_UNLIKELY (re_ctx_p->flags & RE_FLAG_UNICODE) in ecma_regexp_step_back()
583 JERRY_UNUSED (re_ctx_p); in ecma_regexp_step_back()
599 ecma_regexp_run (ecma_regexp_ctx_t *re_ctx_p, /**< RegExp matcher context */ in ecma_regexp_run() argument
621 re_ctx_p->captures_p[RE_GLOBAL_CAPTURE].end_p = str_curr_p; in ecma_regexp_run()
659 ecma_regexp_capture_t *const group_p = re_ctx_p->captures_p + group_idx; in ecma_regexp_run()
[all …]