diff --git a/src/libcoreint/opcode-structures.h b/src/libcoreint/opcode-structures.h index 45fcba1ce..f6e7f1434 100644 --- a/src/libcoreint/opcode-structures.h +++ b/src/libcoreint/opcode-structures.h @@ -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 */ diff --git a/src/libcoreint/opcodes.c b/src/libcoreint/opcodes.c index 1effafe32..1ae013a33 100644 --- a/src/libcoreint/opcodes.c +++ b/src/libcoreint/opcodes.c @@ -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) diff --git a/src/libcoreint/opcodes.h b/src/libcoreint/opcodes.h index 9bf26250d..e14ec0ee3 100644 --- a/src/libcoreint/opcodes.h +++ b/src/libcoreint/opcodes.h @@ -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"