/[dotgnu-pnet]/pnet/engine/cvmc_ptr.c
ViewVC logotype

Diff of /pnet/engine/cvmc_ptr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by rweather, Mon Jul 28 03:56:24 2003 UTC revision 1.12 by ktreichel, Tue Aug 23 10:45:52 2005 UTC
# Line 115  static void CVMCoder_ArrayAccess(ILCoder Line 115  static void CVMCoder_ArrayAccess(ILCoder
115                  case IL_OP_LDELEMA:                  case IL_OP_LDELEMA:
116                  {                  {
117                          /* Load the address of an array element */                          /* Load the address of an array element */
118                          size = _ILSizeOfTypeLocked(elemType);                          size = _ILSizeOfTypeLocked(_ILCoderToILCVMCoder(coder)->process,
119                                                                               elemType);
120                  #ifdef IL_NATIVE_INT64                  #ifdef IL_NATIVE_INT64
121                          if(indexType == ILEngineType_I4)                          if(indexType == ILEngineType_I4)
122                  #endif                  #endif
# Line 542  static void CVMCoder_PtrAccessManaged(IL Line 543  static void CVMCoder_PtrAccessManaged(IL
543                                                                            ILClass *classInfo)                                                                            ILClass *classInfo)
544  {  {
545          /* Compute the size of the managed value in memory and on the stack */          /* Compute the size of the managed value in memory and on the stack */
546          ILUInt32 memorySize = _ILSizeOfTypeLocked(ILType_FromValueType(classInfo));          ILUInt32 memorySize = _ILSizeOfTypeLocked(((ILCVMCoder *)coder)->process, ILType_FromValueType(classInfo));
547          ILUInt32 stackSize = (memorySize + sizeof(CVMWord) - 1) / sizeof(CVMWord);          ILUInt32 stackSize = (memorySize + sizeof(CVMWord) - 1) / sizeof(CVMWord);
548    
549          /* Generate the bytecode for the instruction */          /* Generate the bytecode for the instruction */

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26