Replacing 'varg' opcode with 'meta' opcode with corresponding type.

This commit is contained in:
Ruben Ayrapetyan
2014-08-27 19:35:53 +04:00
parent 2feb159fd8
commit d286a93e2c
8 changed files with 90 additions and 99 deletions
+2 -2
View File
@@ -52,7 +52,8 @@ typedef enum
*/
typedef enum
{
OPCODE_META_TYPE_THIS_ARG /**< value of this used during call */
OPCODE_META_TYPE_THIS_ARG, /**< value of this used during call */
OPCODE_META_TYPE_VARG /**< element of arguments' list */
} opcode_meta_type;
typedef struct
@@ -78,7 +79,6 @@ typedef struct
p##_3 (a, func_decl_2, name_lit_idx, arg1_lit_idx, arg2_lit_idx) \
p##_2 (a, func_decl_n, name_lit_idx, arg_list) \
p##_3 (a, func_expr_n, lhs, name_lit_idx, arg_list) \
p##_1 (a, varg, arg_lit_idx) \
p##_1 (a, exitval, status_code) \
p##_1 (a, retval, ret_value) \
p##_0 (a, ret)