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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user