Home
last modified time | relevance | path

Searched refs:jmem_heap_alloc_block (Results 1 – 19 of 19) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/base/
Decma-alloc.c109 return jmem_heap_alloc_block (size); in ecma_alloc_extended_object()
166 return (ecma_extended_string_t *) jmem_heap_alloc_block (sizeof (ecma_extended_string_t)); in ecma_alloc_extended_string()
194 return jmem_heap_alloc_block (size); in ecma_alloc_string_buffer()
223 return jmem_heap_alloc_block (sizeof (ecma_property_pair_t)); in ecma_alloc_property_pair()
Decma-module.c48 lit_utf8_byte_t *path_p = (lit_utf8_byte_t *) jmem_heap_alloc_block (size + 1u); in ecma_module_create_normalized_path()
66 module_path_p = (lit_utf8_byte_t *) jmem_heap_alloc_block (module_path_size + 1); in ecma_module_create_normalized_path()
76 …lit_utf8_byte_t *normalized_out_p = (lit_utf8_byte_t *) jmem_heap_alloc_block (ECMA_MODULE_MAX_PAT… in ecma_module_create_normalized_path()
128 ecma_module_t *module_p = (ecma_module_t *) jmem_heap_alloc_block (sizeof (ecma_module_t)); in ecma_module_create_module()
178 …ecma_module_context_t *context_p = (ecma_module_context_t *) jmem_heap_alloc_block (sizeof (ecma_m… in ecma_module_create_module_context()
211 new_p = (ecma_module_resolve_set_t *) jmem_heap_alloc_block (sizeof (ecma_module_resolve_set_t)); in ecma_module_resolve_set_insert()
248 …new_frame_p = (ecma_module_resolve_stack_t *) jmem_heap_alloc_block (sizeof (ecma_module_resolve_s… in ecma_module_resolve_stack_push()
858 lit_utf8_byte_t *module_path_p = (lit_utf8_byte_t *) jmem_heap_alloc_block (module_path_size + 1); in ecma_module_parse()
Decma-helpers-external-pointers.c61 native_pointer_p = jmem_heap_alloc_block (sizeof (ecma_native_pointer_t)); in ecma_create_native_pointer_property()
92 native_pointer_p = jmem_heap_alloc_block (sizeof (ecma_native_pointer_t)); in ecma_create_native_pointer_property()
Decma-helpers-collection.c38 collection_p = (ecma_collection_t *) jmem_heap_alloc_block (sizeof (ecma_collection_t)); in ecma_new_collection()
43 collection_p->buffer_p = (ecma_value_t *) jmem_heap_alloc_block (size); in ecma_new_collection()
Decma-helpers-string.c1423 result_p = (const lit_utf8_byte_t *) jmem_heap_alloc_block (size); in ecma_string_get_chars()
1475 result_p = (const lit_utf8_byte_t *) jmem_heap_alloc_block (size); in ecma_string_get_chars()
2560 …ecma_stringbuilder_header_t *header_p = (ecma_stringbuilder_header_t *) jmem_heap_alloc_block (ini… in ecma_stringbuilder_create()
2581 …ecma_stringbuilder_header_t *header_p = (ecma_stringbuilder_header_t *) jmem_heap_alloc_block (ini… in ecma_stringbuilder_create_from()
2607 …ecma_stringbuilder_header_t *header_p = (ecma_stringbuilder_header_t *) jmem_heap_alloc_block (ini… in ecma_stringbuilder_create_raw()
Decma-literal-storage.c499 map_p = jmem_heap_alloc_block (total_count * sizeof (lit_mem_to_snapshot_id_map_entry_t)); in ecma_save_literals_for_snapshot()
/third_party/jerryscript/tests/unit-core/
Dtest-jmem.cpp63 uint8_t *block1_p = (uint8_t *) jmem_heap_alloc_block (BASIC_SIZE);
64 uint8_t *block2_p = (uint8_t *) jmem_heap_alloc_block (BASIC_SIZE);
65 uint8_t *block3_p = (uint8_t *) jmem_heap_alloc_block (BASIC_SIZE);
89 uint8_t *block4_p = (uint8_t *) jmem_heap_alloc_block (BASIC_SIZE * 2);
/third_party/jerryscript/jerry-core/jmem/
Djmem.h145 void *jmem_heap_alloc_block (const size_t size);
205 type *var_name = (type *) (jmem_heap_alloc_block (var_name ## ___size));
Djmem-heap.c357 jmem_heap_alloc_block (const size_t size) /**< required memory size */ in jmem_heap_alloc_block() function
550 void *newBuffer = jmem_heap_alloc_block(new_size); in jmem_heap_realloc_block()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-jobqueue.c284 …job_p = (ecma_job_promise_reaction_t *) jmem_heap_alloc_block (sizeof (ecma_job_promise_reaction_t… in ecma_enqueue_promise_reaction_job()
306 …job_p = (ecma_job_promise_resolve_thenable_t *) jmem_heap_alloc_block (sizeof (ecma_job_promise_re… in ecma_enqueue_promise_resolve_thenable_job()
Decma-array-object.c340 new_values_p = jmem_heap_alloc_block (new_length_aligned * sizeof (ecma_value_t)); in ecma_fast_array_extend()
Decma-regexp-object.c1635 …ctx_p->captures_p = jmem_heap_alloc_block (ctx_p->captures_count * sizeof (ecma_regexp_capture_t)); in ecma_regexp_initialize_context()
1639 …ctx_p->non_captures_p = jmem_heap_alloc_block (ctx_p->non_captures_count * sizeof (ecma_regexp_non… in ecma_regexp_initialize_context()
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-bytecode.c37 re_ctx_p->bytecode_start_p = jmem_heap_alloc_block (initial_size); in re_initialize_regexp_bytecode()
/third_party/jerryscript/jerry-core/debugger/
Ddebugger.c1018 eval_uint8_data_p = (jerry_debugger_uint8_data_t *) jmem_heap_alloc_block (eval_data_size); in jerry_debugger_process_message()
1068 …client_source_data_p = (jerry_debugger_uint8_data_t *) jmem_heap_alloc_block (client_source_data_s… in jerry_debugger_process_message()
/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-module.c301 …module_context_p = (ecma_module_context_t *) jmem_heap_alloc_block (sizeof (ecma_module_context_t)… in parser_module_context_init()
Djs-parser-mem.c74 result = jmem_heap_alloc_block (size); in parser_malloc_local()
Djs-lexer.c2421 literal_p->u.char_p = (uint8_t *) jmem_heap_alloc_block (length); in lexer_construct_literal_object()
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c616 bytecode_p = (ecma_compiled_code_t *) jmem_heap_alloc_block (code_size); in snapshot_load_compiled_code()
638 bytecode_p = (ecma_compiled_code_t *) jmem_heap_alloc_block (new_code_size); in snapshot_load_compiled_code()
Djerry.c316 item_p = jmem_heap_alloc_block (sizeof (jerry_context_data_header_t) + manager_p->bytes_needed); in jerry_get_context_data()