Home
last modified time | relevance | path

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

/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 …]
Decma-builtin-helpers.h97 ecma_builtin_replace_substitute (ecma_replace_context_t *ctx_p);
/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.c56 jerry_context_t *ctx_p = jerry_create_context (1024, context_alloc_fn, NULL); in main() local
57 jerry_port_default_set_current_context (ctx_p); in main()
66 free (ctx_p); in main()
/third_party/libuv/src/win/
Dthread.c98 struct thread_ctx *ctx_p; in uv__thread_start() local
101 ctx_p = arg; in uv__thread_start()
102 ctx = *ctx_p; in uv__thread_start()
103 uv__free(ctx_p); in uv__thread_start()