2008-09-11 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / method-to-ir.c
index ac9493a3aefa03471dd3ce5b890a063da1e86bbc..72487f9c984793877dff19f09173fc1eb8f7bc18 100644 (file)
@@ -267,6 +267,12 @@ mono_print_bb (MonoBasicBlock *bb, const char *msg)
                mono_print_ins_index (-1, tree);
 }
 
+/* 
+ * Can't put this at the beginning, since other files reference stuff from this
+ * file.
+ */
+#ifndef DISABLE_JIT
+
 #define UNVERIFIED do { if (mini_get_debug_options ()->break_on_unverified) G_BREAKPOINT (); else goto unverified; } while (0)
 
 #define GET_BBLOCK(cfg,tblock,ip) do { \
@@ -1701,6 +1707,8 @@ mini_emit_memset (MonoCompile *cfg, int destreg, int offset, int size, int val,
        }
 }
 
+#endif /* DISABLE_JIT */
+
 void 
 mini_emit_memcpy2 (MonoCompile *cfg, int destreg, int doffset, int srcreg, int soffset, int size, int align)
 {
@@ -1757,6 +1765,8 @@ mini_emit_memcpy2 (MonoCompile *cfg, int destreg, int doffset, int srcreg, int s
        }
 }
 
+#ifndef DISABLE_JIT
+
 static void
 mini_emit_check_array_type (MonoCompile *cfg, MonoInst *obj, MonoClass *array_class)
 {
@@ -9281,6 +9291,8 @@ store_membase_reg_to_store_membase_imm (int opcode)
        return -1;
 }              
 
+#endif /* DISABLE_JIT */
+
 int
 mono_op_to_op_imm (int opcode)
 {
@@ -9722,6 +9734,8 @@ mono_op_to_op_imm_noemul (int opcode)
        }
 }
 
+#ifndef DISABLE_JIT
+
 /**
  * mono_handle_global_vregs:
  *
@@ -10470,3 +10484,5 @@ NOTES
 - Instead of the to_end stuff in the old JIT, simply call the function handling
   the values on the stack before emitting the last instruction of the bb.
 */
+
+#endif /* DISABLE_JIT */