dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnet ChangeLog engine/jitc_obj.c engine/jitc_ptr.c


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnet ChangeLog engine/jitc_obj.c engine/jitc_ptr.c
Date: Tue, 27 Jun 2006 19:25:10 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnet
Changes by:     Klaus Treichel <ktreichel>      06/06/27 19:25:10

Modified files:
        .              : ChangeLog 
        engine         : jitc_obj.c jitc_ptr.c 

Log message:
        2006-06-27  Klaus Treichel  <address@hidden>
        
                * engine/jitc_obj.c: Replace jit_insn_add with 
jit_insn_add_relative when
                loading a field address.
        
                * engine/jitc_ptr.c: Replace jit_insn_add with 
jit_insn_add_relative to
                get the pointer to the array data.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3332&r2=1.3333
http://cvs.savannah.gnu.org/viewcvs/pnet/engine/jitc_obj.c?cvsroot=dotgnu-pnet&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/pnet/engine/jitc_ptr.c?cvsroot=dotgnu-pnet&r1=1.11&r2=1.12

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3332
retrieving revision 1.3333
diff -u -b -r1.3332 -r1.3333
--- ChangeLog   26 Jun 2006 20:09:10 -0000      1.3332
+++ ChangeLog   27 Jun 2006 19:25:10 -0000      1.3333
@@ -1,3 +1,11 @@
+2006-06-27  Klaus Treichel  <address@hidden>
+
+       * engine/jitc_obj.c: Replace jit_insn_add with jit_insn_add_relative 
when
+       loading a field address.
+
+       * engine/jitc_ptr.c: Replace jit_insn_add with jit_insn_add_relative to
+       get the pointer to the array data.
+
 2006-06-26  Kirill Kononenko  <address@hidden>
 
        * engine/jitc_branch.c: Fixed a bug in the JIT_OP_BLE_UN condition code

Index: engine/jitc_obj.c
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/engine/jitc_obj.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- engine/jitc_obj.c   4 Jun 2006 15:56:51 -0000       1.19
+++ engine/jitc_obj.c   27 Jun 2006 19:25:10 -0000      1.20
@@ -198,17 +198,13 @@
 static ILJitValue _ILJitLoadFieldAddress(ILJITCoder *coder, ILJitValue base,
                                                                                
 ILUInt32 offset, int mayBeNull)
 {
-       ILJitValue jitOffset = 
jit_value_create_nint_constant(coder->jitFunction,
-                                                                               
                                  _IL_JIT_TYPE_UINT32,
-                                                                               
                                  (jit_nint)offset);
-
        if(mayBeNull)
        {
                _ILJitCheckNull(coder, base);
        }
        if(offset != 0)
        {
-               return jit_insn_add(coder->jitFunction, base, jitOffset);
+               return jit_insn_add_relative(coder->jitFunction, base, offset);
        }
        else
        {

Index: engine/jitc_ptr.c
===================================================================
RCS file: /sources/dotgnu-pnet/pnet/engine/jitc_ptr.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- engine/jitc_ptr.c   4 Jun 2006 15:56:51 -0000       1.11
+++ engine/jitc_ptr.c   27 Jun 2006 19:25:10 -0000      1.12
@@ -25,11 +25,7 @@
  */
 static ILJitValue GetArrayBase(ILJITCoder *coder, ILJitValue array)
 {
-       ILJitValue baseOffset = 
jit_value_create_nint_constant(coder->jitFunction,
-                                                                               
                                   _IL_JIT_TYPE_UINT32,
-                                                                               
                                   (jit_nint)(sizeof(System_Array)));
-
-       return jit_insn_add(coder->jitFunction, array, baseOffset);
+       return jit_insn_add_relative(coder->jitFunction, array, 
sizeof(System_Array));
 }
 
 /*




reply via email to

[Prev in Thread] Current Thread [Next in Thread]