Reduce try context stack consumption to 1 from 2. (#3898)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2020-06-17 14:39:53 +02:00
committed by GitHub
parent 5bcb78482a
commit 8e010146a9
5 changed files with 64 additions and 31 deletions
+5
View File
@@ -964,6 +964,11 @@ parser_post_processing (parser_context_t *context_p) /**< context */
PARSER_MINUS_EQUAL_U16 (context_p->context_stack_depth, PARSER_TRY_CONTEXT_STACK_ALLOCATION);
#endif /* !JERRY_NDEBUG */
if (context_p->stack_limit < PARSER_FINALLY_CONTEXT_STACK_ALLOCATION)
{
context_p->stack_limit = PARSER_FINALLY_CONTEXT_STACK_ALLOCATION;
}
parser_branch_t branch;
parser_stack_pop (context_p, &branch, sizeof (parser_branch_t));