Add 'reg_var_decl' opcode
This commit is contained in:
@@ -460,8 +460,11 @@ OP_CODE_DECL_VOID (end_with)
|
||||
// Variable declaration
|
||||
OP_CODE_DECL (var_decl, T_IDX,
|
||||
variable_name)
|
||||
|
||||
OP_CODE_DECL (reg_var_decl, T_IDX_IDX,
|
||||
min,
|
||||
max)
|
||||
|
||||
// TODO New constructor
|
||||
|
||||
#endif /* OPCODE_STRUCTURES_H */
|
||||
|
||||
|
||||
@@ -371,7 +371,8 @@ do_number_arithmetic(struct __int_data *int_data, /**< interpreter context */
|
||||
op(logical_not) \
|
||||
op(b_not) \
|
||||
op(instanceof) \
|
||||
op(in)
|
||||
op(in) \
|
||||
op(reg_var_decl)
|
||||
|
||||
#define DEFINE_UNIMPLEMENTED_OP(op) \
|
||||
ecma_completion_value_t opfunc_ ## op(OPCODE opdata, struct __int_data *int_data) { \
|
||||
@@ -942,4 +943,5 @@ GETOP_IMPL_2 (delete, lhs, obj)
|
||||
GETOP_IMPL_2 (typeof, lhs, obj)
|
||||
GETOP_IMPL_1 (with, expr)
|
||||
GETOP_IMPL_0 (end_with)
|
||||
GETOP_IMPL_2 (reg_var_decl, min, max)
|
||||
|
||||
|
||||
@@ -138,7 +138,8 @@ typedef ecma_completion_value_t (*opfunc)(OPCODE, struct __int_data *);
|
||||
OP_ARITHMETIC(op) \
|
||||
OP_UNCONDITIONAL_JUMPS(op) \
|
||||
OP_UNARY_OPS(op) \
|
||||
op(var_decl)
|
||||
op(var_decl) \
|
||||
op(reg_var_decl)
|
||||
|
||||
#include "opcode-structures.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user