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:
@@ -619,7 +619,7 @@ parser_set_breaks_to_current_position (parser_context_t *context_p, /**< context
|
||||
{
|
||||
parser_set_branch_to_current_position (context_p, ¤t_p->branch);
|
||||
}
|
||||
parser_free (current_p);
|
||||
parser_free (current_p, sizeof (parser_branch_node_t));
|
||||
current_p = next_p;
|
||||
}
|
||||
} /* parser_set_breaks_to_current_position */
|
||||
|
||||
Reference in New Issue
Block a user