Storing byte code size in the byte code header. This reduces the
memory consumption, because the new allocator uses less memory if the size as available when a block is freed. Snapshot generation is also simplified. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -47,17 +47,6 @@
|
||||
#include "lit-literal.h"
|
||||
#include "mem-heap.h"
|
||||
|
||||
/* The utilites here are just for compiling purposes, JS
|
||||
* engines should have an optimized version for them. */
|
||||
|
||||
/* Malloc functions. */
|
||||
|
||||
#define PARSER_MALLOC(size) mem_heap_alloc_block_store_size (size)
|
||||
#define PARSER_FREE(ptr) mem_heap_free_block_size_stored ((void *) ptr)
|
||||
|
||||
#define PARSER_MALLOC_LOCAL(size) mem_heap_alloc_block_store_size (size)
|
||||
#define PARSER_FREE_LOCAL(ptr) mem_heap_free_block_size_stored (ptr)
|
||||
|
||||
/* UTF character management. Only ASCII characters are
|
||||
* supported for simplicity. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user