Home
last modified time | relevance | path

Searched refs:JMEM_ALIGNMENT (Results 1 – 12 of 12) sorted by relevance

/third_party/jerryscript/jerry-core/jmem/
Djmem-heap.c93 JERRY_ASSERT ((uintptr_t) JERRY_HEAP_CONTEXT (area) % JMEM_ALIGNMENT == 0); in jmem_heap_init()
140 const size_t required_size = ((size + JMEM_ALIGNMENT - 1) / JMEM_ALIGNMENT) * JMEM_ALIGNMENT; in jmem_heap_alloc()
146 if (required_size == JMEM_ALIGNMENT in jmem_heap_alloc()
153 JERRY_CONTEXT (jmem_heap_allocated_size) += JMEM_ALIGNMENT; in jmem_heap_alloc()
160 if (data_space_p->size == JMEM_ALIGNMENT) in jmem_heap_alloc()
166 JERRY_ASSERT (data_space_p->size > JMEM_ALIGNMENT); in jmem_heap_alloc()
172 remaining_p->size = data_space_p->size - JMEM_ALIGNMENT; in jmem_heap_alloc()
255 JERRY_ASSERT ((uintptr_t) data_space_p % JMEM_ALIGNMENT == 0); in jmem_heap_alloc()
416 JERRY_ASSERT ((uintptr_t) block_p % JMEM_ALIGNMENT == 0); in jmem_heap_insert_block()
417 JERRY_ASSERT (size % JMEM_ALIGNMENT == 0); in jmem_heap_insert_block()
[all …]
Djmem-allocator.c186 JERRY_ASSERT (uint_ptr % JMEM_ALIGNMENT == 0); in jmem_compress_pointer()
222 JERRY_ASSERT (uint_ptr % JMEM_ALIGNMENT == 0); in jmem_decompress_pointer()
Djmem.h41 #define JMEM_ALIGNMENT (1u << JMEM_ALIGNMENT_LOG) macro
269 JERRY_ASSERT ((uintptr_t) tag < (uintptr_t) (JMEM_ALIGNMENT)); \
/third_party/jerryscript/jerry-core/jcontext/
Djcontext.c140 #pragma data_alignment = JMEM_ALIGNMENT
143 jmem_heap_t jerry_global_heap JERRY_ATTR_ALIGNED (JMEM_ALIGNMENT) JERRY_ATTR_GLOBAL_HEAP;
Djcontext.h262 #define JMEM_HEAP_AREA_SIZE (JMEM_HEAP_SIZE - JMEM_ALIGNMENT)
305 #define JMEM_HEAP_AREA_SIZE (JMEM_HEAP_SIZE - JMEM_ALIGNMENT)
/third_party/jerryscript/jerry-core/api/
Dexternal-context-helpers.c12 #pragma data_alignment = JMEM_ALIGNMENT
Djerry-snapshot.c147 JERRY_ASSERT ((globals_p->snapshot_buffer_write_offset & (JMEM_ALIGNMENT - 1)) == 0); in snapshot_add_compiled_code()
217 JMEM_ALIGNMENT); in snapshot_add_compiled_code()
223 copied_code_p->size = (uint16_t) ((pattern_size + JMEM_ALIGNMENT - 1) >> JMEM_ALIGNMENT_LOG); in snapshot_add_compiled_code()
332 JERRY_ASSERT ((globals_p->snapshot_buffer_write_offset & (JMEM_ALIGNMENT - 1)) == 0); in static_snapshot_add_compiled_code()
636 new_code_size = JERRY_ALIGNUP (new_code_size, JMEM_ALIGNMENT); in snapshot_load_compiled_code()
754 JMEM_ALIGNMENT); in jerry_generate_snapshot_with_args()
1280 functions_size += JERRY_ALIGNUP ((number_of_funcs - 1) * sizeof (uint32_t), JMEM_ALIGNMENT); in jerry_merge_snapshots()
1313 dst_p += JERRY_ALIGNUP ((number_of_funcs - 1) * sizeof (uint32_t), JMEM_ALIGNMENT); in jerry_merge_snapshots()
Djerry.c3498 size_t total_size = sizeof (jerry_context_t) + JMEM_ALIGNMENT; in jerry_create_context()
3501 heap_size = JERRY_ALIGNUP (heap_size, JMEM_ALIGNMENT); in jerry_create_context()
3512 total_size = JERRY_ALIGNUP (total_size, JMEM_ALIGNMENT); in jerry_create_context()
3524 context_ptr = JERRY_ALIGNUP (context_ptr, (uintptr_t) JMEM_ALIGNMENT); in jerry_create_context()
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-compiler.c143 const uint32_t final_size = JERRY_ALIGNUP (re_ctx.bytecode_size, JMEM_ALIGNMENT); in re_compile_bytecode()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-arraybuffer-object.c139 … uint32_t maximum_size_in_byte = UINT32_MAX - sizeof (ecma_extended_object_t) - JMEM_ALIGNMENT + 1; in ecma_op_create_arraybuffer_object()
Decma-typedarray-object.c517 if (byte_length > UINT32_MAX - sizeof (ecma_extended_object_t) - JMEM_ALIGNMENT + 1) in ecma_typedarray_create_object_with_length()
/third_party/jerryscript/jerry-core/parser/js/
Djs-parser.c1218 total_size = JERRY_ALIGNUP (total_size, JMEM_ALIGNMENT); in parser_post_processing()