Remove of 'this_binding' opcode.

- introduce 'const' register type;
 - adding constant register for reading ThisBinding value of active interpreter context.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-10-06 11:52:14 +03:00
parent f2c3e59bbe
commit 1e2dfc73f5
9 changed files with 10 additions and 47 deletions
+1 -9
View File
@@ -1182,18 +1182,10 @@ rewrite_function_end ()
STACK_DROP (function_ends, 1);
}
void
dump_this (jsp_operand_t op)
{
dump_single_address (VM_OP_THIS_BINDING, op);
}
jsp_operand_t
dump_this_res (void)
{
const jsp_operand_t res = tmp_operand ();
dump_this (res);
return res;
return jsp_operand_t::make_reg_operand (VM_REG_SPECIAL_THIS_BINDING);
}
void