2005-02-20 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / mini / mini-ops.h
index 6a36e36464f7e5ba5e0430e6ba061ecab12ee681..06af090acee887beb5e620445467b3cd5f98e18c 100644 (file)
@@ -344,6 +344,8 @@ MINI_OP(OP_GROUP, "group")
 
 /* aot compiler */
 MINI_OP(OP_AOTCONST, "aot_const")
+MINI_OP(OP_PATCH_INFO, "patch_info")
+MINI_OP(OP_GOT_ENTRY, "got_entry")
 
 /* used to impl unbox */
 MINI_OP(OP_UNBOXCAST  , "unboxcast")
@@ -387,6 +389,7 @@ MINI_OP(OP_SQRT,    "sqrt")
 MINI_OP(OP_GETCHR, "getchar")
 MINI_OP(OP_STRLEN, "strlen")
 MINI_OP(OP_GETTYPE, "gettype")
+MINI_OP(OP_GETHASHCODE, "gethashcode")
 /* get adrress of element in a 2D array */
 MINI_OP(OP_LDELEMA2D, "getldelema2")
 /* inlined small memcpy with constant length */
@@ -399,19 +402,36 @@ MINI_OP(OP_CCASTCLASS, "ccastclass")
 MINI_OP(OP_SAVE_LMF, "save_lmf")
 MINI_OP(OP_RESTORE_LMF, "restore_lmf")
 
-/* atomic specific */
+/* arch-dep tls access */
+MINI_OP(OP_TLS_GET,            "tls_get")
+
+MINI_OP(OP_LOAD_GOTADDR, "load_gotaddr")
+MINI_OP(OP_DUMMY_USE, "dummy_use")
+MINI_OP(OP_DUMMY_STORE, "dummy_store")
+MINI_OP(OP_NOT_REACHED, "not_reached")
+
+/* Atomic specific
+
+       Note, OP_ATOMIC_ADD_IMM_NEW_I4 and
+       OP_ATOMIC_ADD_NEW_I4 returns the new
+       value compared to OP_ATOMIC_ADD_I4 that
+       returns the old value.
+
+       OP_ATOMIC_ADD_NEW_I4 is used by
+       Interlocked::Increment and Interlocked:Decrement
+       and atomic_add_i4 by Interlocked::Add
+*/
 MINI_OP(OP_ATOMIC_ADD_I4, "atomic_add_i4")
+MINI_OP(OP_ATOMIC_ADD_NEW_I4, "atomic_add_new_i4")
 MINI_OP(OP_ATOMIC_ADD_IMM_I4, "atomic_add_imm_i4")
-/* Note, OP_ATOMIC_ADD_IMM_PREV_I4 is used by Interlocked::Add and 
-       returns the value before add compared to OP_ATOMIC_ADD_IMM_I4
-       that returns the value after inc/dec */
-MINI_OP(OP_ATOMIC_ADD_IMM_PREV_I4, "atomic_add_imm_prev_i4")
+MINI_OP(OP_ATOMIC_ADD_IMM_NEW_I4, "atomic_add_imm_new_i4")
 MINI_OP(OP_ATOMIC_EXCHANGE_I4, "atomic_exchange_i4")
 
 /* x86 specific */
 MINI_OP(OP_X86_TEST_NULL,          "x86_test_null")
 MINI_OP(OP_X86_COMPARE_MEMBASE_REG,"x86_compare_membase_reg")
 MINI_OP(OP_X86_COMPARE_MEMBASE_IMM,"x86_compare_membase_imm")
+MINI_OP(OP_X86_COMPARE_MEM_IMM,    "x86_compare_mem_imm")
 MINI_OP(OP_X86_COMPARE_MEMBASE8_IMM,"x86_compare_membase8_imm")
 MINI_OP(OP_X86_COMPARE_REG_MEMBASE,"x86_compare_reg_membase")
 MINI_OP(OP_X86_INC_REG,            "x86_inc_reg")
@@ -425,6 +445,7 @@ MINI_OP(OP_X86_PUSH_IMM,           "x86_push_imm")
 MINI_OP(OP_X86_PUSH,               "x86_push")
 MINI_OP(OP_X86_PUSH_FP,            "x86_push_fp")
 MINI_OP(OP_X86_PUSH_OBJ,           "x86_push_obj")
+MINI_OP(OP_X86_PUSH_GOT_ENTRY,     "x86_push_got_entry")
 MINI_OP(OP_X86_LEA,                "x86_lea")
 MINI_OP(OP_X86_LEA_MEMBASE,        "x86_lea_membase")
 MINI_OP(OP_X86_XCHG,               "x86_xchg")
@@ -436,7 +457,6 @@ MINI_OP(OP_X86_SETNE_MEMBASE,      "x86_setne_membase")
 MINI_OP(OP_X86_ADD_MEMBASE,        "x86_add_membase")
 MINI_OP(OP_X86_SUB_MEMBASE,        "x86_sub_membase")
 MINI_OP(OP_X86_MUL_MEMBASE,        "x86_mul_membase")
-MINI_OP(OP_X86_TLS_GET,            "x86_tls_get")
 
 MINI_OP(OP_AMD64_TEST_NULL,              "amd64_test_null")
 MINI_OP(OP_AMD64_SET_XMMREG_R4,          "amd64_set_xmmreg_r4")
@@ -479,4 +499,3 @@ MINI_OP(OP_S390_ARGPTR,        "s390_argptr")
 MINI_OP(OP_S390_STKARG,           "s390_stkarg")
 MINI_OP(OP_S390_MOVE,             "s390_move")
 MINI_OP(OP_S390_SETF4RET,         "s390_setf4ret")
-MINI_OP(OP_S390_TLS_GET,           "s390_tls_get")