Evaluation of expressions passed in arguments lists just before corresponding 'varg' opcodes.

This commit is contained in:
Ruben Ayrapetyan
2014-08-26 21:39:54 +04:00
parent 6f58335f23
commit 6cfcedb053
4 changed files with 142 additions and 84 deletions
+3
View File
@@ -68,6 +68,7 @@ run_int (void)
switch ((ecma_completion_type_t) completion.type)
{
case ECMA_COMPLETION_TYPE_NORMAL:
case ECMA_COMPLETION_TYPE_VARG:
{
JERRY_UNREACHABLE ();
}
@@ -169,6 +170,8 @@ run_int_from_pos (opcode_counter_t start_pos,
completion = run_int_loop (&int_data);
JERRY_ASSERT (completion.type != ECMA_COMPLETION_TYPE_VARG);
for (uint32_t reg_index = 0;
reg_index < regs_num;
reg_index++)