2003-09-04 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mono / mini / jit-icalls.c
index 2e2a6d19707bbfb1f44c4be4976c925ed14dd5b0..02b3dd9b42949b37c6c804ef1813238337b20162 100644 (file)
@@ -17,9 +17,7 @@ mono_ldftn (MonoMethod *method)
 
        MONO_ARCH_SAVE_REGS;
 
-       EnterCriticalSection (metadata_section);
        addr = mono_compile_method (method);
-       LeaveCriticalSection (metadata_section);
 
        return addr;
 }
@@ -77,7 +75,7 @@ helper_stelem_ref (MonoArray *array, int index, MonoObject *val)
 static gint64 
 mono_llmult (gint64 a, gint64 b)
 {
-       MONO_ARCH_SAVE_REGS;
+       /* no need, no exceptions: MONO_ARCH_SAVE_REGS;*/
        return a * b;
 }
 
@@ -232,7 +230,7 @@ mono_lshl (guint64 a, gint32 shamt)
 {
        guint64 res;
 
-       MONO_ARCH_SAVE_REGS;
+       /* no need, no exceptions: MONO_ARCH_SAVE_REGS;*/
        res = a << shamt;
 
        /*printf ("TESTL %lld << %d = %lld\n", a, shamt, res);*/
@@ -245,7 +243,7 @@ mono_lshr_un (guint64 a, gint32 shamt)
 {
        guint64 res;
 
-       MONO_ARCH_SAVE_REGS;
+       /* no need, no exceptions: MONO_ARCH_SAVE_REGS;*/
        res = a >> shamt;
 
        /*printf ("TESTR %lld >> %d = %lld\n", a, shamt, res);*/
@@ -258,7 +256,7 @@ mono_lshr (gint64 a, gint32 shamt)
 {
        gint64 res;
 
-       MONO_ARCH_SAVE_REGS;
+       /* no need, no exceptions: MONO_ARCH_SAVE_REGS;*/
        res = a >> shamt;
 
        /*printf ("TESTR %lld >> %d = %lld\n", a, shamt, res);*/
@@ -389,14 +387,14 @@ mono_ldtoken_wrapper (MonoImage *image, int token)
 static guint64
 mono_fconv_u8 (double v)
 {
-       MONO_ARCH_SAVE_REGS;
+       /* no need, no exceptions: MONO_ARCH_SAVE_REGS;*/
        return (guint64)v;
 }
 
 static guint32
 mono_fconv_u4 (double v)
 {
-       MONO_ARCH_SAVE_REGS;
+       /* no need, no exceptions: MONO_ARCH_SAVE_REGS;*/
        return (guint32)v;
 }