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
|
||||
|
||||
@@ -348,7 +348,6 @@ void dump_prop_setter (jsp_operand_t, jsp_operand_t, jsp_operand_t);
|
||||
void dump_function_end_for_rewrite (void);
|
||||
void rewrite_function_end ();
|
||||
|
||||
void dump_this (jsp_operand_t);
|
||||
jsp_operand_t dump_this_res (void);
|
||||
|
||||
void dump_post_increment (jsp_operand_t, jsp_operand_t);
|
||||
|
||||
@@ -350,7 +350,6 @@ generate_instr (linked_list instr_list, /**< instruction list */
|
||||
case VM_OP_FUNC_DECL_N:
|
||||
case VM_OP_ARRAY_DECL:
|
||||
case VM_OP_OBJ_DECL:
|
||||
case VM_OP_THIS_BINDING:
|
||||
case VM_OP_WITH:
|
||||
case VM_OP_FOR_IN:
|
||||
case VM_OP_THROW_VALUE:
|
||||
@@ -492,7 +491,6 @@ count_new_literals_in_instr (op_meta *om_p) /**< instruction */
|
||||
case VM_OP_FUNC_DECL_N:
|
||||
case VM_OP_ARRAY_DECL:
|
||||
case VM_OP_OBJ_DECL:
|
||||
case VM_OP_THIS_BINDING:
|
||||
case VM_OP_WITH:
|
||||
case VM_OP_THROW_VALUE:
|
||||
case VM_OP_IS_TRUE_JMP_UP:
|
||||
|
||||
Reference in New Issue
Block a user