Home
last modified time | relevance | path

Searched refs:collection_p (Results 1 – 14 of 14) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-collection.c37 ecma_collection_t *collection_p; in ecma_new_collection() local
38 collection_p = (ecma_collection_t *) jmem_heap_alloc_block (sizeof (ecma_collection_t)); in ecma_new_collection()
40 collection_p->item_count = 0; in ecma_new_collection()
41 collection_p->capacity = ECMA_COLLECTION_INITIAL_CAPACITY; in ecma_new_collection()
43 collection_p->buffer_p = (ecma_value_t *) jmem_heap_alloc_block (size); in ecma_new_collection()
45 return collection_p; in ecma_new_collection()
52 ecma_collection_destroy (ecma_collection_t *collection_p) /**< value collection */ in ecma_collection_destroy() argument
54 JERRY_ASSERT (collection_p != NULL); in ecma_collection_destroy()
56 …jmem_heap_free_block (collection_p->buffer_p, ECMA_COLLECTION_ALLOCATED_SIZE (collection_p->capaci… in ecma_collection_destroy()
57 jmem_heap_free_block (collection_p, sizeof (ecma_collection_t)); in ecma_collection_destroy()
[all …]
Decma-helpers.h417 void ecma_collection_push_back (ecma_collection_t *collection_p, ecma_value_t value);
418 void ecma_collection_reserve (ecma_collection_t *collection_p, uint32_t count);
419 void ecma_collection_append (ecma_collection_t *collection_p, const ecma_value_t *buffer_p, uint32_…
420 void ecma_collection_destroy (ecma_collection_t *collection_p);
421 void ecma_collection_free (ecma_collection_t *collection_p);
422 void ecma_collection_free_if_not_object (ecma_collection_t *collection_p);
423 void ecma_collection_free_objects (ecma_collection_t *collection_p);
Decma-globals.h1055 #define ECMA_CONTAINER_ENTRY_COUNT(collection_p) \ argument
1056 (collection_p->item_count - 1)
1061 #define ECMA_CONTAINER_START(collection_p) \ argument
1062 (collection_p->buffer_p + 1)
Decma-gc.c299 ecma_collection_t *collection_p = promise_object_p->reactions; in ecma_gc_mark_promise_object() local
301 if (collection_p != NULL) in ecma_gc_mark_promise_object()
303 ecma_value_t *buffer_p = collection_p->buffer_p; in ecma_gc_mark_promise_object()
304 ecma_value_t *buffer_end_p = buffer_p + collection_p->item_count; in ecma_gc_mark_promise_object()
Decma-helpers.c1444 … ecma_collection_t *collection_p = ecma_compiled_code_get_tagged_template_collection (bytecode_p); in ecma_bytecode_deref() local
1448 JERRY_CONTEXT (ecma_gc_new_objects) += collection_p->item_count; in ecma_bytecode_deref()
1449 ecma_collection_free (collection_p); in ecma_bytecode_deref()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-helpers-json.c66 ecma_has_string_value_in_collection (ecma_collection_t *collection_p, /**< collection */ in ecma_has_string_value_in_collection() argument
69 ecma_value_t *buffer_p = collection_p->buffer_p; in ecma_has_string_value_in_collection()
71 for (uint32_t i = 0; i < collection_p->item_count; i++) in ecma_has_string_value_in_collection()
Decma-builtin-helpers.c890 JERRY_ASSERT (ctx_p->u.collection_p != NULL); in ecma_builtin_replace_substitute()
891 JERRY_ASSERT (ctx_p->u.collection_p->item_count > 0); in ecma_builtin_replace_substitute()
892 const ecma_value_t match_value = ctx_p->u.collection_p->buffer_p[0]; in ecma_builtin_replace_substitute()
915 JERRY_ASSERT (ctx_p->u.collection_p != NULL); in ecma_builtin_replace_substitute()
916 JERRY_ASSERT (ctx_p->u.collection_p->item_count > 0); in ecma_builtin_replace_substitute()
917 const ecma_value_t match_value = ctx_p->u.collection_p->buffer_p[0]; in ecma_builtin_replace_substitute()
945 if (capture_count == 0 && ctx_p->u.collection_p != NULL) in ecma_builtin_replace_substitute()
947 capture_count = ctx_p->u.collection_p->item_count; in ecma_builtin_replace_substitute()
981 else if (ctx_p->u.collection_p != NULL) in ecma_builtin_replace_substitute()
983 const ecma_value_t capture_value = ctx_p->u.collection_p->buffer_p[idx]; in ecma_builtin_replace_substitute()
Decma-builtin-helpers.h89 const ecma_collection_t *collection_p; /**< collection of captured substrings */ member
219 bool ecma_has_string_value_in_collection (ecma_collection_t *collection_p, ecma_string_t *string_p);
/third_party/jerryscript/jerry-core/vm/
Dvm-stack.c98 ecma_collection_t *collection_p; in vm_stack_context_abort() local
99 collection_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_collection_t, vm_stack_top_p[-2]); in vm_stack_context_abort()
101 ecma_value_t *buffer_p = collection_p->buffer_p; in vm_stack_context_abort()
103 for (uint32_t index = vm_stack_top_p[-3]; index < collection_p->item_count; index++) in vm_stack_context_abort()
108 ecma_collection_destroy (collection_p); in vm_stack_context_abort()
Dvm.c552 ecma_collection_t *collection_p = NULL; in vm_super_call() local
558 collection_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_collection_t, collection); in vm_super_call()
559 arguments_p = collection_p->buffer_p; in vm_super_call()
560 arguments_list_len = collection_p->item_count; in vm_super_call()
613 if (collection_p != NULL) in vm_super_call()
615 ecma_collection_destroy (collection_p); in vm_super_call()
666 ecma_collection_t *collection_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_collection_t, collection); in vm_spread_operation() local
683 collection_p->buffer_p, in vm_spread_operation()
684 collection_p->item_count); in vm_spread_operation()
702 collection_p->buffer_p, in vm_spread_operation()
[all …]
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-container-object.c50 ecma_collection_t *collection_p = ecma_new_collection (); in ecma_op_create_internal_buffer() local
51 ecma_collection_push_back (collection_p, (ecma_value_t) 0); in ecma_op_create_internal_buffer()
53 return collection_p; in ecma_op_create_internal_buffer()
Decma-regexp-object.c3165 replace_ctx.u.collection_p = arguments_p; in ecma_regexp_replace_helper()
/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-expr.c1416 ecma_collection_t *collection_p; in parser_parse_tagged_template_literal() local
1420 collection_p = ecma_new_collection (); in parser_parse_tagged_template_literal()
1421 ECMA_SET_INTERNAL_VALUE_POINTER (context_p->tagged_template_literal_cp, collection_p); in parser_parse_tagged_template_literal()
1425collection_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_collection_t, context_p->tagged_template_lite… in parser_parse_tagged_template_literal()
1426 if (collection_p->item_count > CBC_MAXIMUM_BYTE_VALUE) in parser_parse_tagged_template_literal()
1432 const uint32_t tagged_id = collection_p->item_count; in parser_parse_tagged_template_literal()
1436 ecma_collection_push_back (collection_p, ecma_make_object_value (template_obj_p)); in parser_parse_tagged_template_literal()
Djs-parser.c1650 ecma_collection_t *collection_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_collection_t, in parser_post_processing() local
1653 for (uint32_t i = 0; i < collection_p->item_count; i++) in parser_post_processing()
1655 ecma_free_value (collection_p->buffer_p[i]); in parser_post_processing()