Home
last modified time | relevance | path

Searched refs:ctx_p (Results 1 – 25 of 39) sorted by relevance

12

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers.c843 ecma_builtin_replace_substitute (ecma_replace_context_t *ctx_p) /**< replace context */ in ecma_builtin_replace_substitute() argument
845 JERRY_ASSERT (ctx_p->string_p != NULL); in ecma_builtin_replace_substitute()
846 JERRY_ASSERT (ctx_p->matched_p == NULL in ecma_builtin_replace_substitute()
847 || (ctx_p->matched_p >= ctx_p->string_p in ecma_builtin_replace_substitute()
848 && ctx_p->matched_p <= ctx_p->string_p + ctx_p->string_size)); in ecma_builtin_replace_substitute()
852 const lit_utf8_byte_t *replace_buf_p = ecma_string_get_chars (ctx_p->replace_str_p, in ecma_builtin_replace_substitute()
866 ecma_stringbuilder_append_raw (&(ctx_p->builder), in ecma_builtin_replace_substitute()
881 ecma_stringbuilder_append_byte (&(ctx_p->builder), LIT_CHAR_DOLLAR_SIGN); in ecma_builtin_replace_substitute()
887 if (JERRY_UNLIKELY (ctx_p->matched_p == NULL)) in ecma_builtin_replace_substitute()
889 JERRY_ASSERT (ctx_p->capture_count == 0); in ecma_builtin_replace_substitute()
[all …]
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-regexp-object.c1616 ecma_regexp_initialize_context (ecma_regexp_ctx_t *ctx_p, /**< regexp context */ in ecma_regexp_initialize_context() argument
1621 JERRY_ASSERT (ctx_p != NULL); in ecma_regexp_initialize_context()
1626 ctx_p->flags = bc_p->header.status_flags; in ecma_regexp_initialize_context()
1627ctx_p->char_size = (ctx_p->flags & RE_FLAG_UNICODE) ? sizeof (lit_code_point_t) : sizeof (ecma_cha… in ecma_regexp_initialize_context()
1629 ctx_p->input_start_p = input_start_p; in ecma_regexp_initialize_context()
1630 ctx_p->input_end_p = input_end_p; in ecma_regexp_initialize_context()
1632 ctx_p->captures_count = bc_p->captures_count; in ecma_regexp_initialize_context()
1633 ctx_p->non_captures_count = bc_p->non_captures_count; in ecma_regexp_initialize_context()
1635ctx_p->captures_p = jmem_heap_alloc_block (ctx_p->captures_count * sizeof (ecma_regexp_capture_t)); in ecma_regexp_initialize_context()
1637 if (ctx_p->non_captures_count > 0) in ecma_regexp_initialize_context()
[all …]
/third_party/jerryscript/tests/unit-core/
Dtest-native-callback-nested.cpp72 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
73 jerry_port_default_set_current_context (ctx_p);
82 free (ctx_p);
Dtest-unicode.cpp68 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
69 jerry_port_default_set_current_context (ctx_p);
86 free(ctx_p);
Dtest-poolman.cpp71 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
72 jerry_port_default_set_current_context (ctx_p);
97 free (ctx_p);
Dtest-exec-stop.cpp73 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
74 jerry_port_default_set_current_context (ctx_p);
125 free (ctx_p);
Dtest-has-property.cpp57 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
58 jerry_port_default_set_current_context (ctx_p);
98 free (ctx_p);
Dtest-native-instanceof.cpp85 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
86 jerry_port_default_set_current_context (ctx_p);
110 free (ctx_p);
Dtest-api-errortype.cpp49 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
50 jerry_port_default_set_current_context (ctx_p);
107 free (ctx_p);
Dtest-regression-3588.cpp72 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
73 jerry_port_default_set_current_context (ctx_p);
131 free (ctx_p);
Dtest-to-length.cpp62 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
63 jerry_port_default_set_current_context (ctx_p);
147 free(ctx_p);
Dtest-lit-char-helpers.cpp89 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
90 jerry_port_default_set_current_context (ctx_p);
149 free (ctx_p);
Dtest-api-value-type.cpp70 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
71 jerry_port_default_set_current_context (ctx_p);
130 free (ctx_p);
Dtest-to-integer.cpp64 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
65 jerry_port_default_set_current_context (ctx_p);
161 free(ctx_p);
Dtest-jmem.cpp57 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
58 jerry_port_default_set_current_context (ctx_p);
139 free (ctx_p);
Dtest-resource-name.cpp72 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
73 jerry_port_default_set_current_context (ctx_p);
151 free (ctx_p);
Dtest-context-data.cpp169 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
170 jerry_port_default_set_current_context (ctx_p);
199 free (ctx_p);
Dtest-abort.cpp65 jerry_context_t* ctx_p = jerry_create_context(1024 * 1024 * 50, context_alloc_fn, NULL); variable
66 jerry_port_default_set_current_context(ctx_p);
163 free (ctx_p);
Dtest-dataview.cpp54 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
55 jerry_port_default_set_current_context (ctx_p);
127 free (ctx_p);
Dtest-container.cpp49 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
50 jerry_port_default_set_current_context (ctx_p);
114 free (ctx_p);
Dtest-promise.cpp147 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
148 jerry_port_default_set_current_context (ctx_p);
196 free (ctx_p);
Dtest-api-property.cpp48 jerry_context_t* ctx_p = jerry_create_context(1024 * 1024 * 50, context_alloc_fn, NULL); variable
49 jerry_port_default_set_current_context(ctx_p);
129 free (ctx_p);
Dtest-api-binary-operations-instanceof.cpp71 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
72 jerry_port_default_set_current_context (ctx_p);
147 free (ctx_p);
Dtest-newtarget.cpp138 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
139 jerry_port_default_set_current_context (ctx_p);
236 free(ctx_p);
Dtest-api-promise.cpp211 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); variable
212 jerry_port_default_set_current_context (ctx_p);
226 free (ctx_p);

12