[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/engine verify_ptr.c,1.13,1.14
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine verify_ptr.c,1.13,1.14 |
Date: |
Sun, 29 Dec 2002 06:22:43 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv24733/engine
Modified Files:
verify_ptr.c
Log Message:
Allow M and T references to be used as pointers in unsafe mode.
Index: verify_ptr.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/verify_ptr.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** verify_ptr.c 14 Nov 2002 15:04:46 -0000 1.13
--- verify_ptr.c 29 Dec 2002 11:22:39 -0000 1.14
***************
*** 193,200 ****
if(STK_UNARY == ILEngineType_M || STK_UNARY == ILEngineType_T) \
{ \
! if(PtrCompatible(stack[stackSize - 1].typeInfo, (type))) \
{ \
ILCoderPtrAccess(coder, opcode); \
STK_UNARY = (engineType); \
} \
else \
--- 193,202 ----
if(STK_UNARY == ILEngineType_M || STK_UNARY == ILEngineType_T) \
{ \
! if(unsafeAllowed || \
! PtrCompatible(stack[stackSize - 1].typeInfo, (type))) \
{ \
ILCoderPtrAccess(coder, opcode); \
STK_UNARY = (engineType); \
+ STK_UNARY_TYPEINFO = 0; \
} \
else \
***************
*** 223,228 ****
if(STK_BINARY_1 == ILEngineType_M || STK_BINARY_1 == ILEngineType_T) \
{ \
! if(STK_BINARY_2 == (engineType) && \
! PtrCompatible(stack[stackSize - 2].typeInfo, (type))) \
{ \
ILCoderPtrAccess(coder, opcode); \
--- 225,231 ----
if(STK_BINARY_1 == ILEngineType_M || STK_BINARY_1 == ILEngineType_T) \
{ \
! if(unsafeAllowed || \
! (STK_BINARY_2 == (engineType) && \
! PtrCompatible(stack[stackSize - 2].typeInfo, (type)))) \
{ \
ILCoderPtrAccess(coder, opcode); \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine verify_ptr.c,1.13,1.14,
Rhys Weatherley <address@hidden> <=