/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-helpers.c | 843 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/ |
D | ecma-regexp-object.c | 1616 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() 1627 …ctx_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() 1635 …ctx_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/ |
D | test-native-callback-nested.cpp | 72 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);
|
D | test-unicode.cpp | 68 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);
|
D | test-poolman.cpp | 71 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);
|
D | test-exec-stop.cpp | 73 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);
|
D | test-has-property.cpp | 57 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);
|
D | test-native-instanceof.cpp | 85 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);
|
D | test-api-errortype.cpp | 49 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);
|
D | test-regression-3588.cpp | 72 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);
|
D | test-to-length.cpp | 62 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);
|
D | test-lit-char-helpers.cpp | 89 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);
|
D | test-api-value-type.cpp | 70 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);
|
D | test-to-integer.cpp | 64 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);
|
D | test-jmem.cpp | 57 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);
|
D | test-resource-name.cpp | 72 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);
|
D | test-context-data.cpp | 169 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);
|
D | test-abort.cpp | 65 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);
|
D | test-dataview.cpp | 54 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);
|
D | test-container.cpp | 49 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);
|
D | test-promise.cpp | 147 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);
|
D | test-api-property.cpp | 48 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);
|
D | test-api-binary-operations-instanceof.cpp | 71 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);
|
D | test-newtarget.cpp | 138 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);
|
D | test-api-promise.cpp | 211 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);
|