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:
@@ -200,11 +200,11 @@ extern void __noreturn jerry_fatal (jerry_fatal_code_t);
|
||||
*/
|
||||
|
||||
/**
|
||||
* Aligns @a value to @a alignment.
|
||||
* Aligns @a value to @a alignment. @a must be the power of 2.
|
||||
*
|
||||
* Returns minimum positive value, that divides @a alignment and is more than or equal to @a value
|
||||
*/
|
||||
#define JERRY_ALIGNUP(value, alignment) ((alignment) * (((value) + (alignment) - 1) / (alignment)))
|
||||
#define JERRY_ALIGNUP(value, alignment) (((value) + ((alignment) - 1)) & ~((alignment) - 1))
|
||||
|
||||
/**
|
||||
* min, max
|
||||
|
||||
Reference in New Issue
Block a user