Add meta opcode.

This commit is contained in:
e.gavrin
2014-08-21 16:07:05 +04:00
parent 5b2b04f5f9
commit 1261820838
3 changed files with 9 additions and 1 deletions
+5
View File
@@ -419,5 +419,10 @@ OP_CODE_DECL (reg_var_decl, T_IDX_IDX,
min,
max)
/** meta */
OP_CODE_DECL (meta, T_IDX_IDX_IDX,
type,
data_1,
data_2)
#endif /* OPCODE_STRUCTURES_H */
+2
View File
@@ -451,6 +451,7 @@ do_number_bitwise_logic (struct __int_data *int_data, /**< interpreter context *
op (b_shift_uright) \
op (instanceof) \
op (in) \
op (meta) \
static char __unused unimplemented_list_end
#define DEFINE_UNIMPLEMENTED_OP(op) \
@@ -2059,3 +2060,4 @@ GETOP_IMPL_2 (typeof, lhs, obj)
GETOP_IMPL_1 (with, expr)
GETOP_IMPL_0 (end_with)
GETOP_IMPL_2 (reg_var_decl, min, max)
GETOP_IMPL_3 (meta, type, data_1, data_2)
+2 -1
View File
@@ -131,7 +131,8 @@ ecma_completion_value_t (*opfunc) (OPCODE, struct __int_data *);
OP_UNCONDITIONAL_JUMPS (op) \
OP_UNARY_OPS (op) \
op (var_decl) \
op (reg_var_decl)
op (reg_var_decl)\
op (meta)
#include "opcode-structures.h"