New Allocator and improved String handling.
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -52,11 +52,11 @@
|
||||
|
||||
/* Malloc functions. */
|
||||
|
||||
#define PARSER_MALLOC(size) mem_heap_alloc_block (size, MEM_HEAP_ALLOC_LONG_TERM)
|
||||
#define PARSER_FREE(ptr) mem_heap_free_block ((void *) ptr)
|
||||
#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 (size, MEM_HEAP_ALLOC_SHORT_TERM)
|
||||
#define PARSER_FREE_LOCAL(ptr) mem_heap_free_block (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