/third_party/jerryscript/jerry-core/ecma/base/ |
D | ecma-helpers-collection.c | 37 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 …]
|
D | ecma-helpers.h | 417 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);
|
D | ecma-globals.h | 1055 #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)
|
D | ecma-gc.c | 299 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()
|
D | ecma-helpers.c | 1444 … 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/ |
D | ecma-builtin-helpers-json.c | 66 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()
|
D | ecma-builtin-helpers.c | 890 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()
|
D | ecma-builtin-helpers.h | 89 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/ |
D | vm-stack.c | 98 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()
|
D | vm.c | 552 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/ |
D | ecma-container-object.c | 50 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()
|
D | ecma-regexp-object.c | 3165 replace_ctx.u.collection_p = arguments_p; in ecma_regexp_replace_helper()
|
/third_party/jerryscript/jerry-core/parser/js/ |
D | js-parser-expr.c | 1416 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() 1425 …collection_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()
|
D | js-parser.c | 1650 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()
|