#ifndef SPVM_OPCODE_H
#define SPVM_OPCODE_H

#include "spvm_base.h"






























































































enum {
  SPVM_OPCODE_C_ID_WIDE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_FETCH_BYTE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_FETCH_SHORT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_FETCH_INT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_FETCH_LONG,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_FETCH_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_FETCH_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_STORE_BYTE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_STORE_SHORT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_STORE_INT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_STORE_LONG,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_STORE_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FIELD_STORE_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FETCH_BYTE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FETCH_SHORT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FETCH_INT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FETCH_LONG,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FETCH_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_FETCH_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_STORE_BYTE,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_STORE_SHORT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_STORE_INT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_STORE_LONG,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_STORE_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_ARRAY_STORE_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_DEREF_BYTE,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SHORT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_INT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_LONG,
  SPVM_OPCODE_C_ID_VALUE_DEREF_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_DEREF_GET_FIELD_BYTE,
  SPVM_OPCODE_C_ID_VALUE_DEREF_GET_FIELD_SHORT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_GET_FIELD_INT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_GET_FIELD_LONG,
  SPVM_OPCODE_C_ID_VALUE_DEREF_GET_FIELD_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_GET_FIELD_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SET_FIELD_BYTE,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SET_FIELD_SHORT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SET_FIELD_INT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SET_FIELD_LONG,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SET_FIELD_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_DEREF_SET_FIELD_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_MOVE_BYTE,
  SPVM_OPCODE_C_ID_VALUE_MOVE_SHORT,
  SPVM_OPCODE_C_ID_VALUE_MOVE_INT,
  SPVM_OPCODE_C_ID_VALUE_MOVE_LONG,
  SPVM_OPCODE_C_ID_VALUE_MOVE_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_MOVE_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_SET_FIELD_BYTE,
  SPVM_OPCODE_C_ID_VALUE_SET_FIELD_SHORT,
  SPVM_OPCODE_C_ID_VALUE_SET_FIELD_INT,
  SPVM_OPCODE_C_ID_VALUE_SET_FIELD_LONG,
  SPVM_OPCODE_C_ID_VALUE_SET_FIELD_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_SET_FIELD_DOUBLE,
  SPVM_OPCODE_C_ID_VALUE_GET_FIELD_BYTE,
  SPVM_OPCODE_C_ID_VALUE_GET_FIELD_SHORT,
  SPVM_OPCODE_C_ID_VALUE_GET_FIELD_INT,
  SPVM_OPCODE_C_ID_VALUE_GET_FIELD_LONG,
  SPVM_OPCODE_C_ID_VALUE_GET_FIELD_FLOAT,
  SPVM_OPCODE_C_ID_VALUE_GET_FIELD_DOUBLE,
  SPVM_OPCODE_C_ID_CALL_SUB_VOID,
  SPVM_OPCODE_C_ID_CALL_SUB_BYTE,
  SPVM_OPCODE_C_ID_CALL_SUB_SHORT,
  SPVM_OPCODE_C_ID_CALL_SUB_INT,
  SPVM_OPCODE_C_ID_CALL_SUB_LONG,
  SPVM_OPCODE_C_ID_CALL_SUB_FLOAT,
  SPVM_OPCODE_C_ID_CALL_SUB_DOUBLE,
  SPVM_OPCODE_C_ID_CALL_SUB_OBJECT,
  SPVM_OPCODE_C_ID_CALL_SUB_VALUE_BYTE,
  SPVM_OPCODE_C_ID_CALL_SUB_VALUE_SHORT,
  SPVM_OPCODE_C_ID_CALL_SUB_VALUE_INT,
  SPVM_OPCODE_C_ID_CALL_SUB_VALUE_LONG,
  SPVM_OPCODE_C_ID_CALL_SUB_VALUE_FLOAT,
  SPVM_OPCODE_C_ID_CALL_SUB_VALUE_DOUBLE,
  SPVM_OPCODE_C_ID_CALL_METHOD_VOID,
  SPVM_OPCODE_C_ID_CALL_METHOD_BYTE,
  SPVM_OPCODE_C_ID_CALL_METHOD_SHORT,
  SPVM_OPCODE_C_ID_CALL_METHOD_INT,
  SPVM_OPCODE_C_ID_CALL_METHOD_LONG,
  SPVM_OPCODE_C_ID_CALL_METHOD_FLOAT,
  SPVM_OPCODE_C_ID_CALL_METHOD_DOUBLE,
  SPVM_OPCODE_C_ID_CALL_METHOD_OBJECT,
  SPVM_OPCODE_C_ID_CALL_METHOD_VALUE_BYTE,
  SPVM_OPCODE_C_ID_CALL_METHOD_VALUE_SHORT,
  SPVM_OPCODE_C_ID_CALL_METHOD_VALUE_INT,
  SPVM_OPCODE_C_ID_CALL_METHOD_VALUE_LONG,
  SPVM_OPCODE_C_ID_CALL_METHOD_VALUE_FLOAT,
  SPVM_OPCODE_C_ID_CALL_METHOD_VALUE_DOUBLE,
  SPVM_OPCODE_C_ID_ADD_INT,
  SPVM_OPCODE_C_ID_ADD_LONG,
  SPVM_OPCODE_C_ID_ADD_FLOAT,
  SPVM_OPCODE_C_ID_ADD_DOUBLE,
  SPVM_OPCODE_C_ID_SUBTRACT_INT,
  SPVM_OPCODE_C_ID_SUBTRACT_LONG,
  SPVM_OPCODE_C_ID_SUBTRACT_FLOAT,
  SPVM_OPCODE_C_ID_SUBTRACT_DOUBLE,
  SPVM_OPCODE_C_ID_MULTIPLY_INT,
  SPVM_OPCODE_C_ID_MULTIPLY_LONG,
  SPVM_OPCODE_C_ID_MULTIPLY_FLOAT,
  SPVM_OPCODE_C_ID_MULTIPLY_DOUBLE,
  SPVM_OPCODE_C_ID_DIVIDE_INT,
  SPVM_OPCODE_C_ID_DIVIDE_LONG,
  SPVM_OPCODE_C_ID_DIVIDE_FLOAT,
  SPVM_OPCODE_C_ID_DIVIDE_DOUBLE,
  SPVM_OPCODE_C_ID_REMAINDER_INT,
  SPVM_OPCODE_C_ID_REMAINDER_LONG,
  SPVM_OPCODE_C_ID_LEFT_SHIFT_INT,
  SPVM_OPCODE_C_ID_LEFT_SHIFT_LONG,
  SPVM_OPCODE_C_ID_RIGHT_ARITHMETIC_SHIFT_INT,
  SPVM_OPCODE_C_ID_RIGHT_ARITHMETIC_SHIFT_LONG,
  SPVM_OPCODE_C_ID_RIGHT_LOGICAL_SHIFT_INT,
  SPVM_OPCODE_C_ID_RIGHT_LOGICAL_SHIFT_LONG,
  SPVM_OPCODE_C_ID_BIT_AND_INT,
  SPVM_OPCODE_C_ID_BIT_AND_LONG,
  SPVM_OPCODE_C_ID_BIT_OR_INT,
  SPVM_OPCODE_C_ID_BIT_OR_LONG,
  SPVM_OPCODE_C_ID_BIT_XOR_INT,
  SPVM_OPCODE_C_ID_BIT_XOR_LONG,
  SPVM_OPCODE_C_ID_BIT_NOT_INT,
  SPVM_OPCODE_C_ID_BIT_NOT_LONG,
  SPVM_OPCODE_C_ID_NEGATE_INT,
  SPVM_OPCODE_C_ID_NEGATE_LONG,
  SPVM_OPCODE_C_ID_NEGATE_FLOAT,
  SPVM_OPCODE_C_ID_NEGATE_DOUBLE,
  SPVM_OPCODE_C_ID_GET_CONSTANT_CHAR,
  SPVM_OPCODE_C_ID_GET_CONSTANT_INT,
  SPVM_OPCODE_C_ID_GET_CONSTANT_LONG,
  SPVM_OPCODE_C_ID_GET_CONSTANT_FLOAT,
  SPVM_OPCODE_C_ID_GET_CONSTANT_DOUBLE,
  SPVM_OPCODE_C_ID_MOVE_BYTE,
  SPVM_OPCODE_C_ID_MOVE_SHORT,
  SPVM_OPCODE_C_ID_MOVE_INT,
  SPVM_OPCODE_C_ID_MOVE_LONG,
  SPVM_OPCODE_C_ID_MOVE_FLOAT,
  SPVM_OPCODE_C_ID_MOVE_DOUBLE,
  SPVM_OPCODE_C_ID_MOVE_OBJECT,
  SPVM_OPCODE_C_ID_MOVE_UNDEF,
  SPVM_OPCODE_C_ID_MOVE_REF,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_SHORT,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_INT,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_LONG,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_FLOAT,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_DOUBLE,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_BYTE,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_INT,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_LONG,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_FLOAT,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_DOUBLE,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_BYTE,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_SHORT,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_LONG,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_FLOAT,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_DOUBLE,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_BYTE,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_SHORT,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_INT,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_FLOAT,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_DOUBLE,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_BYTE,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_SHORT,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_INT,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_LONG,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_DOUBLE,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_BYTE,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_SHORT,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_INT,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_LONG,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_FLOAT,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_STRING,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_STRING,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_STRING,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_STRING,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_STRING,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_STRING,
  SPVM_OPCODE_C_ID_CONVERT_STRING_TO_BYTE_ARRAY,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_TO_BYTE_OBJECT,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_TO_SHORT_OBJECT,
  SPVM_OPCODE_C_ID_CONVERT_INT_TO_INT_OBJECT,
  SPVM_OPCODE_C_ID_CONVERT_LONG_TO_LONG_OBJECT,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_TO_FLOAT_OBJECT,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_TO_DOUBLE_OBJECT,
  SPVM_OPCODE_C_ID_CONVERT_BYTE_OBJECT_TO_BYTE,
  SPVM_OPCODE_C_ID_CONVERT_SHORT_OBJECT_TO_SHORT,
  SPVM_OPCODE_C_ID_CONVERT_INT_OBJECT_TO_INT,
  SPVM_OPCODE_C_ID_CONVERT_LONG_OBJECT_TO_LONG,
  SPVM_OPCODE_C_ID_CONVERT_FLOAT_OBJECT_TO_FLOAT,
  SPVM_OPCODE_C_ID_CONVERT_DOUBLE_OBJECT_TO_DOUBLE,
  SPVM_OPCODE_C_ID_CONCAT,
  SPVM_OPCODE_C_ID_EQ_INT,
  SPVM_OPCODE_C_ID_EQ_LONG,
  SPVM_OPCODE_C_ID_EQ_FLOAT,
  SPVM_OPCODE_C_ID_EQ_DOUBLE,
  SPVM_OPCODE_C_ID_EQ_OBJECT,
  SPVM_OPCODE_C_ID_NE_INT,
  SPVM_OPCODE_C_ID_NE_LONG,
  SPVM_OPCODE_C_ID_NE_FLOAT,
  SPVM_OPCODE_C_ID_NE_DOUBLE,
  SPVM_OPCODE_C_ID_NE_OBJECT,
  SPVM_OPCODE_C_ID_GT_INT,
  SPVM_OPCODE_C_ID_GT_LONG,
  SPVM_OPCODE_C_ID_GT_FLOAT,
  SPVM_OPCODE_C_ID_GT_DOUBLE,
  SPVM_OPCODE_C_ID_GE_INT,
  SPVM_OPCODE_C_ID_GE_LONG,
  SPVM_OPCODE_C_ID_GE_FLOAT,
  SPVM_OPCODE_C_ID_GE_DOUBLE,
  SPVM_OPCODE_C_ID_LT_INT,
  SPVM_OPCODE_C_ID_LT_LONG,
  SPVM_OPCODE_C_ID_LT_FLOAT,
  SPVM_OPCODE_C_ID_LT_DOUBLE,
  SPVM_OPCODE_C_ID_LE_INT,
  SPVM_OPCODE_C_ID_LE_LONG,
  SPVM_OPCODE_C_ID_LE_FLOAT,
  SPVM_OPCODE_C_ID_LE_DOUBLE,
  SPVM_OPCODE_C_ID_IS_UNDEF,
  SPVM_OPCODE_C_ID_IS_NOT_UNDEF,
  SPVM_OPCODE_C_ID_STRING_EQ,
  SPVM_OPCODE_C_ID_STRING_NE,
  SPVM_OPCODE_C_ID_STRING_GT,
  SPVM_OPCODE_C_ID_STRING_GE,
  SPVM_OPCODE_C_ID_STRING_LT,
  SPVM_OPCODE_C_ID_STRING_LE,
  SPVM_OPCODE_C_ID_BOOL_INT,
  SPVM_OPCODE_C_ID_BOOL_LONG,
  SPVM_OPCODE_C_ID_BOOL_FLOAT,
  SPVM_OPCODE_C_ID_BOOL_DOUBLE,
  SPVM_OPCODE_C_ID_BOOL_OBJECT,
  SPVM_OPCODE_C_ID_GOTO,
  SPVM_OPCODE_C_ID_IF_EQ_ZERO,
  SPVM_OPCODE_C_ID_IF_NE_ZERO,
  SPVM_OPCODE_C_ID_IF_EXCEPTION_CATCH,
  SPVM_OPCODE_C_ID_IF_EXCEPTION_RETURN,
  SPVM_OPCODE_C_ID_TABLE_SWITCH,
  SPVM_OPCODE_C_ID_LOOKUP_SWITCH,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_BYTE,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_SHORT,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_INT,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_LONG,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_FLOAT,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_DOUBLE,
  SPVM_OPCODE_C_ID_ARRAY_FETCH_OBJECT,
  SPVM_OPCODE_C_ID_ARRAY_STORE_BYTE,
  SPVM_OPCODE_C_ID_ARRAY_STORE_SHORT,
  SPVM_OPCODE_C_ID_ARRAY_STORE_INT,
  SPVM_OPCODE_C_ID_ARRAY_STORE_LONG,
  SPVM_OPCODE_C_ID_ARRAY_STORE_FLOAT,
  SPVM_OPCODE_C_ID_ARRAY_STORE_DOUBLE,
  SPVM_OPCODE_C_ID_ARRAY_STORE_OBJECT,
  SPVM_OPCODE_C_ID_ARRAY_STORE_OBJECT_CHECK_TYPE,
  SPVM_OPCODE_C_ID_ARRAY_STORE_UNDEF,
  SPVM_OPCODE_C_ID_ARRAY_LENGTH,
  SPVM_OPCODE_C_ID_NEW_OBJECT,
  SPVM_OPCODE_C_ID_NEW_STRING,
  SPVM_OPCODE_C_ID_NEW_OBJECT_ARRAY,
  SPVM_OPCODE_C_ID_NEW_MULTI_ARRAY,
  SPVM_OPCODE_C_ID_NEW_VALUE_ARRAY,
  SPVM_OPCODE_C_ID_NEW_BYTE_ARRAY,
  SPVM_OPCODE_C_ID_NEW_SHORT_ARRAY,
  SPVM_OPCODE_C_ID_NEW_INT_ARRAY,
  SPVM_OPCODE_C_ID_NEW_LONG_ARRAY,
  SPVM_OPCODE_C_ID_NEW_FLOAT_ARRAY,
  SPVM_OPCODE_C_ID_NEW_DOUBLE_ARRAY,
  SPVM_OPCODE_C_ID_GET_FIELD_BYTE,
  SPVM_OPCODE_C_ID_GET_FIELD_SHORT,
  SPVM_OPCODE_C_ID_GET_FIELD_INT,
  SPVM_OPCODE_C_ID_GET_FIELD_LONG,
  SPVM_OPCODE_C_ID_GET_FIELD_FLOAT,
  SPVM_OPCODE_C_ID_GET_FIELD_DOUBLE,
  SPVM_OPCODE_C_ID_GET_FIELD_OBJECT,
  SPVM_OPCODE_C_ID_SET_FIELD_BYTE,
  SPVM_OPCODE_C_ID_SET_FIELD_SHORT,
  SPVM_OPCODE_C_ID_SET_FIELD_INT,
  SPVM_OPCODE_C_ID_SET_FIELD_LONG,
  SPVM_OPCODE_C_ID_SET_FIELD_FLOAT,
  SPVM_OPCODE_C_ID_SET_FIELD_DOUBLE,
  SPVM_OPCODE_C_ID_SET_FIELD_OBJECT,
  SPVM_OPCODE_C_ID_SET_FIELD_UNDEF,
  SPVM_OPCODE_C_ID_IS_TYPE,
  SPVM_OPCODE_C_ID_HAS_INTERFACE,
  SPVM_OPCODE_C_ID_CHECK_OBJECT_TYPE,
  SPVM_OPCODE_C_ID_CHECK_INTERFACE,
  SPVM_OPCODE_C_ID_ENTER_SCOPE,
  SPVM_OPCODE_C_ID_PUSH_MORTAL,
  SPVM_OPCODE_C_ID_LEAVE_SCOPE,
  SPVM_OPCODE_C_ID_PUSH_ARG_BYTE,
  SPVM_OPCODE_C_ID_PUSH_ARG_SHORT,
  SPVM_OPCODE_C_ID_PUSH_ARG_INT,
  SPVM_OPCODE_C_ID_PUSH_ARG_LONG,
  SPVM_OPCODE_C_ID_PUSH_ARG_FLOAT,
  SPVM_OPCODE_C_ID_PUSH_ARG_DOUBLE,
  SPVM_OPCODE_C_ID_PUSH_ARG_OBJECT,
  SPVM_OPCODE_C_ID_PUSH_ARG_REF,
  SPVM_OPCODE_C_ID_PUSH_ARG_UNDEF,
  SPVM_OPCODE_C_ID_PUSH_ARG_VALUE_BYTE,
  SPVM_OPCODE_C_ID_PUSH_ARG_VALUE_SHORT,
  SPVM_OPCODE_C_ID_PUSH_ARG_VALUE_INT,
  SPVM_OPCODE_C_ID_PUSH_ARG_VALUE_LONG,
  SPVM_OPCODE_C_ID_PUSH_ARG_VALUE_FLOAT,
  SPVM_OPCODE_C_ID_PUSH_ARG_VALUE_DOUBLE,
  SPVM_OPCODE_C_ID_RETURN_VOID,
  SPVM_OPCODE_C_ID_RETURN_BYTE,
  SPVM_OPCODE_C_ID_RETURN_SHORT,
  SPVM_OPCODE_C_ID_RETURN_INT,
  SPVM_OPCODE_C_ID_RETURN_LONG,
  SPVM_OPCODE_C_ID_RETURN_FLOAT,
  SPVM_OPCODE_C_ID_RETURN_DOUBLE,
  SPVM_OPCODE_C_ID_RETURN_OBJECT,
  SPVM_OPCODE_C_ID_RETURN_UNDEF,
  SPVM_OPCODE_C_ID_RETURN_VALUE_BYTE,
  SPVM_OPCODE_C_ID_RETURN_VALUE_SHORT,
  SPVM_OPCODE_C_ID_RETURN_VALUE_INT,
  SPVM_OPCODE_C_ID_RETURN_VALUE_LONG,
  SPVM_OPCODE_C_ID_RETURN_VALUE_FLOAT,
  SPVM_OPCODE_C_ID_RETURN_VALUE_DOUBLE,
  SPVM_OPCODE_C_ID_SET_CROAK_FLAG_TRUE,
  SPVM_OPCODE_C_ID_CROAK,
  SPVM_OPCODE_C_ID_REF,
  SPVM_OPCODE_C_ID_REF_BYTE,
  SPVM_OPCODE_C_ID_REF_SHORT,
  SPVM_OPCODE_C_ID_REF_INT,
  SPVM_OPCODE_C_ID_REF_LONG,
  SPVM_OPCODE_C_ID_REF_FLOAT,
  SPVM_OPCODE_C_ID_REF_DOUBLE,
  SPVM_OPCODE_C_ID_GET_DEREF_BYTE,
  SPVM_OPCODE_C_ID_GET_DEREF_SHORT,
  SPVM_OPCODE_C_ID_GET_DEREF_INT,
  SPVM_OPCODE_C_ID_GET_DEREF_LONG,
  SPVM_OPCODE_C_ID_GET_DEREF_FLOAT,
  SPVM_OPCODE_C_ID_GET_DEREF_DOUBLE,
  SPVM_OPCODE_C_ID_SET_DEREF_BYTE,
  SPVM_OPCODE_C_ID_SET_DEREF_SHORT,
  SPVM_OPCODE_C_ID_SET_DEREF_INT,
  SPVM_OPCODE_C_ID_SET_DEREF_LONG,
  SPVM_OPCODE_C_ID_SET_DEREF_FLOAT,
  SPVM_OPCODE_C_ID_SET_DEREF_DOUBLE,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_BYTE,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_SHORT,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_INT,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_LONG,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_FLOAT,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_DOUBLE,
  SPVM_OPCODE_C_ID_GET_PACKAGE_VAR_OBJECT,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_BYTE,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_SHORT,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_INT,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_LONG,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_FLOAT,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_DOUBLE,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_OBJECT,
  SPVM_OPCODE_C_ID_SET_PACKAGE_VAR_UNDEF,
  SPVM_OPCODE_C_ID_GET_EXCEPTION_VAR,
  SPVM_OPCODE_C_ID_SET_EXCEPTION_VAR,
  SPVM_OPCODE_C_ID_SET_EXCEPTION_VAR_UNDEF,
  SPVM_OPCODE_C_ID_WEAKEN_FIELD,
  SPVM_OPCODE_C_ID_WEAKEN_ARRAY_ELEMENT,
  SPVM_OPCODE_C_ID_UNWEAKEN_FIELD,
  SPVM_OPCODE_C_ID_UNWEAKEN_ARRAY_ELEMENT,
  SPVM_OPCODE_C_ID_ISWEAK_FIELD,
  SPVM_OPCODE_C_ID_ISWEAK_ARRAY_ELEMENT,
  SPVM_OPCODE_C_ID_END_SUB,
};

extern const char* const SPVM_OPCODE_C_ID_NAMES[];

// Operation code is 64bit
struct SPVM_opcode {
  uint8_t id;
  uint8_t operand3;
  uint16_t operand0;
  uint16_t operand1;
  uint16_t operand2;
};

SPVM_OPCODE* SPVM_OPCODE_new();

#endif
