From bc2f8274474b1933541dd6c4ec612a41d51f81d0 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Wed, 27 Aug 2014 13:45:27 +0400 Subject: [PATCH] Implementing 'unreachable' handler for 'meta' opcode. --- src/libcoreint/opcodes.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/libcoreint/opcodes.c b/src/libcoreint/opcodes.c index 24ba67ff8..99c36856a 100644 --- a/src/libcoreint/opcodes.c +++ b/src/libcoreint/opcodes.c @@ -126,7 +126,6 @@ free_string_literal_copy (string_literal_copy *str_lit_descr_p) /**< string lite op (delete) \ op (with) \ op (end_with) \ - op (meta) \ static char __unused unimplemented_list_end #define DEFINE_UNIMPLEMENTED_OP(op) \ @@ -1637,6 +1636,18 @@ opfunc_typeof (opcode_t opdata, /**< operation data */ return ret_value; } /* opfunc_typeof */ +/** + * 'meta' opcode handler. + * + * The opcode is meta-opcode that is not supposed to be executed. + */ +ecma_completion_value_t +opfunc_meta (opcode_t opdata __unused, /**< operation data */ + int_data_t *int_data __unused) /**< interpreter context */ +{ + JERRY_UNREACHABLE (); +} /* opfunc_meta */ + #define GETOP_DEF_1(a, name, field1) \ inline opcode_t getop_##name (idx_t arg1) \ { \