Ilmir's fix of register variables counting.

This commit is contained in:
Ruben Ayrapetyan
2014-08-15 19:46:02 +04:00
parent b582d56ecb
commit 116a80f8ae
+2 -1
View File
@@ -75,7 +75,7 @@ static void
start_new_scope (void) start_new_scope (void)
{ {
JERRY_ASSERT (temp_name_stack_head < MAX_OPCODES); 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; max_temp_name = min_temp_name;
} }
@@ -83,6 +83,7 @@ static void
finish_scope (void) finish_scope (void)
{ {
temp_name = temp_name_stack[--temp_name_stack_head]; temp_name = temp_name_stack[--temp_name_stack_head];
max_temp_name = temp_name;
} }
static void static void