mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Ilmir's fix of register variables counting.
This commit is contained in:
parent
b582d56ecb
commit
116a80f8ae
@ -75,7 +75,7 @@ static void
|
||||
start_new_scope (void)
|
||||
{
|
||||
JERRY_ASSERT (temp_name_stack_head < MAX_OPCODES);
|
||||
temp_name_stack[temp_name_stack_head++] = temp_name;
|
||||
temp_name_stack[temp_name_stack_head++] = max_temp_name;
|
||||
max_temp_name = min_temp_name;
|
||||
}
|
||||
|
||||
@ -83,6 +83,7 @@ static void
|
||||
finish_scope (void)
|
||||
{
|
||||
temp_name = temp_name_stack[--temp_name_stack_head];
|
||||
max_temp_name = temp_name;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user