[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_cast.tc,1.12,1.13 cg_nodes.tc
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/codegen cg_cast.tc,1.12,1.13 cg_nodes.tc,1.67,1.68 cg_misc.tc,1.40,1.41 cg_stmt.tc,1.31,1.32 |
Date: |
Wed, 13 Nov 2002 15:33:32 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/codegen
In directory subversions:/tmp/cvs-serv29949/codegen
Modified Files:
cg_cast.tc cg_nodes.tc cg_misc.tc cg_stmt.tc
Log Message:
fix for Foreach on Structs
Index: cg_cast.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_cast.tc,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** cg_cast.tc 3 Nov 2002 15:58:21 -0000 1.12
--- cg_cast.tc 13 Nov 2002 20:33:26 -0000 1.13
***************
*** 1653,1656 ****
--- 1653,1657 ----
ILGenCast(ILMachineType_TransientPtr, ILMachineType_TransientPtr),
ILGenCast(ILMachineType_ManagedValue, ILMachineType_ManagedValue),
+ ILGenCast(ILMachineType_ManagedValue, ILMachineType_ObjectRef),
ILGenCast(ILMachineType_NativeInt, ILMachineType_UnmanagedPtr),
ILGenCast(ILMachineType_NativeUInt, ILMachineType_UnmanagedPtr)
Index: cg_nodes.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_nodes.tc,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -r1.67 -r1.68
*** cg_nodes.tc 3 Nov 2002 08:09:24 -0000 1.67
--- cg_nodes.tc 13 Nov 2002 20:33:27 -0000 1.68
***************
*** 658,661 ****
--- 658,662 ----
ILNode *expr;
ILNode *stmt;
+ ILType *arrayType;
unsigned long varIndex ;
ILMachineType varType ;
Index: cg_misc.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_misc.tc,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** cg_misc.tc 6 Nov 2002 20:24:22 -0000 1.40
--- cg_misc.tc 13 Nov 2002 20:33:27 -0000 1.41
***************
*** 1125,1129 ****
*/
unsigned ILGenPrepareForThisAccess(ILGenInfo *info, ILNode *thisExpr,
! ILClass
*classInfo, int isFieldLoad);
/*
--- 1125,1129 ----
*/
unsigned ILGenPrepareForThisAccess(ILGenInfo *info, ILNode *thisExpr,
! ILClass
*classInfo, int isLoadOnly);
/*
***************
*** 1137,1141 ****
unsigned ILGenPrepareForThisAccess(ILGenInfo *info, ILNode *thisExpr,
! ILClass
*classInfo, int isFieldLoad)
{
ILType *fullType;
--- 1137,1141 ----
unsigned ILGenPrepareForThisAccess(ILGenInfo *info, ILNode *thisExpr,
! ILClass
*classInfo, int isLoadOnly)
{
ILType *fullType;
***************
*** 1199,1203 ****
ILGenLoadLocalAddr(info, tempVar);
ILGenAdjust(info, 1);
! if(isFieldLoad)
{
ILGenReleaseTempVar(info,tempVar);
--- 1199,1203 ----
ILGenLoadLocalAddr(info, tempVar);
ILGenAdjust(info, 1);
! if(isLoadOnly)
{
ILGenReleaseTempVar(info,tempVar);
Index: cg_stmt.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_stmt.tc,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** cg_stmt.tc 5 Nov 2002 22:20:02 -0000 1.31
--- cg_stmt.tc 13 Nov 2002 20:33:27 -0000 1.32
***************
*** 921,926 ****
/* Evaluate the collection expression and get the enumerator */
! ILGenCast(info, ILNode_GenValue(node->expr, info),
! ILMachineType_ObjectRef);
if(ILMethod_IsVirtual(node->getEnumerator))
--- 921,927 ----
/* Evaluate the collection expression and get the enumerator */
!
! ILGenPrepareForThisAccess(info,node->expr,ILTypeToClass(info,
!
node->arrayType),1);
if(ILMethod_IsVirtual(node->getEnumerator))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/codegen cg_cast.tc,1.12,1.13 cg_nodes.tc,1.67,1.68 cg_misc.tc,1.40,1.41 cg_stmt.tc,1.31,1.32,
Gopal.V <address@hidden> <=