@@ -148,7 +148,7 @@ InterpreterMethodInfo::InterpreterMethodInfo(CEEInfo* comp, CORINFO_METHOD_INFO*
148
148
// Now look at each local.
149
149
CORINFO_ARG_LIST_HANDLE localsPtr = methInfo->locals .args ;
150
150
CORINFO_CLASS_HANDLE vcTypeRet;
151
- unsigned curLargeStructOffset = 0 ;
151
+ size_t curLargeStructOffset = 0 ;
152
152
for (unsigned k = 0 ; k < methInfo->locals .numArgs ; k++)
153
153
{
154
154
// TODO: if this optimization succeeds, the switch below on localType
@@ -171,12 +171,12 @@ InterpreterMethodInfo::InterpreterMethodInfo(CEEInfo* comp, CORINFO_METHOD_INFO*
171
171
case CORINFO_TYPE_REFANY: // Just a special case: vcTypeRet is handle for TypedReference in this case...
172
172
{
173
173
InterpreterType tp = InterpreterType (comp, vcTypeRet);
174
- unsigned size = static_cast < unsigned >( tp.Size (comp) );
174
+ size_t size = tp.Size (comp);
175
175
size = max (size, sizeof (void *));
176
176
m_localDescs[k].m_type = tp;
177
177
if (tp.IsLargeStruct (comp))
178
178
{
179
- m_localDescs[k].m_offset = curLargeStructOffset;
179
+ m_localDescs[k].m_offset = ( unsigned ) curLargeStructOffset;
180
180
curLargeStructOffset += size;
181
181
}
182
182
}
@@ -193,7 +193,7 @@ InterpreterMethodInfo::InterpreterMethodInfo(CEEInfo* comp, CORINFO_METHOD_INFO*
193
193
m_localDescs[k].m_typeStackNormal = m_localDescs[k].m_type .StackNormalize ();
194
194
localsPtr = comp->getArgNext (localsPtr);
195
195
}
196
- m_largeStructLocalSize = curLargeStructOffset;
196
+ m_largeStructLocalSize = ( unsigned ) curLargeStructOffset;
197
197
}
198
198
199
199
void InterpreterMethodInfo::InitArgInfo (CEEInfo* comp, CORINFO_METHOD_INFO* methInfo, short * argOffsets_)
@@ -724,7 +724,7 @@ void Interpreter::ArgState::AddFPArg(unsigned canonIndex, unsigned short numSlot
724
724
CorJitResult Interpreter::GenerateInterpreterStub (CEEInfo* comp,
725
725
CORINFO_METHOD_INFO* info,
726
726
/* OUT*/ BYTE **nativeEntry,
727
- /* OUT*/ ULONG *nativeSizeOfCode,
727
+ /* OUT*/ uint32_t *nativeSizeOfCode,
728
728
InterpreterMethodInfo** ppInterpMethodInfo,
729
729
bool jmpCall)
730
730
{
@@ -1179,7 +1179,7 @@ CorJitResult Interpreter::GenerateInterpreterStub(CEEInfo* comp,
1179
1179
case CORINFO_TYPE_REFANY:
1180
1180
{
1181
1181
unsigned sz = getClassSize (vcTypeRet);
1182
- unsigned szSlots = max (1 , sz / sizeof (void *));
1182
+ unsigned szSlots = max (( unsigned ) 1 , ( unsigned )( sz / sizeof (void *) ));
1183
1183
#if defined(HOST_X86)
1184
1184
argState.AddArg (k, static_cast <short >(szSlots), /* noReg*/ true );
1185
1185
#elif defined(HOST_AMD64)
@@ -8138,7 +8138,7 @@ void Interpreter::LdElemWithType()
8138
8138
_ASSERTE (std::is_integral<T>::value);
8139
8139
8140
8140
// Widen narrow types.
8141
- int ires;
8141
+ int ires = 0 ;
8142
8142
switch (sizeof (T))
8143
8143
{
8144
8144
case 1 :
@@ -9419,7 +9419,7 @@ void Interpreter::DoCallWork(bool virtualCall, void* thisArg, CORINFO_RESOLVED_T
9419
9419
if ((sigInfo.callConv & CORINFO_CALLCONV_MASK) == CORINFO_CALLCONV_VARARG)
9420
9420
{
9421
9421
Module* module = GetModule (sig.scope );
9422
- vaSigCookie = CORINFO_VARARGS_HANDLE (module->GetVASigCookie (Signature (sig.pSig , sig.cbSig )));
9422
+ vaSigCookie = CORINFO_VARARGS_HANDLE (module->GetVASigCookie (Signature (sig.pSig , sig.cbSig ), NULL ));
9423
9423
}
9424
9424
doNotCache = true ;
9425
9425
}
@@ -9818,7 +9818,7 @@ void Interpreter::DoCallWork(bool virtualCall, void* thisArg, CORINFO_RESOLVED_T
9818
9818
// It will then copy *all* of this into the return buffer area we allocate. So make sure
9819
9819
// we allocate at least that much.
9820
9820
#ifdef ENREGISTERED_RETURNTYPE_MAXSIZE
9821
- retBuffSize = max (retTypeSz, ENREGISTERED_RETURNTYPE_MAXSIZE);
9821
+ retBuffSize = max (retTypeSz, ( size_t ) ENREGISTERED_RETURNTYPE_MAXSIZE);
9822
9822
#endif // ENREGISTERED_RETURNTYPE_MAXSIZE
9823
9823
pLargeStructRetVal = (BYTE*)_alloca (retBuffSize);
9824
9824
// Clear this in case a GC happens.
@@ -10391,7 +10391,7 @@ void Interpreter::CallI()
10391
10391
// It will then copy *all* of this into the return buffer area we allocate. So make sure
10392
10392
// we allocate at least that much.
10393
10393
#ifdef ENREGISTERED_RETURNTYPE_MAXSIZE
10394
- retBuffSize = max (retTypeSz, ENREGISTERED_RETURNTYPE_MAXSIZE);
10394
+ retBuffSize = max (retTypeSz, ( size_t ) ENREGISTERED_RETURNTYPE_MAXSIZE);
10395
10395
#endif // ENREGISTERED_RETURNTYPE_MAXSIZE
10396
10396
pLargeStructRetVal = (BYTE*)_alloca (retBuffSize);
10397
10397
@@ -10427,7 +10427,7 @@ void Interpreter::CallI()
10427
10427
if ((sigInfo.callConv & CORINFO_CALLCONV_MASK) == CORINFO_CALLCONV_VARARG)
10428
10428
{
10429
10429
Module* module = GetModule (sigInfo.scope );
10430
- CORINFO_VARARGS_HANDLE handle = CORINFO_VARARGS_HANDLE (module->GetVASigCookie (Signature (sigInfo.pSig , sigInfo.cbSig )));
10430
+ CORINFO_VARARGS_HANDLE handle = CORINFO_VARARGS_HANDLE (module->GetVASigCookie (Signature (sigInfo.pSig , sigInfo.cbSig ), &sigTypeCtxt ));
10431
10431
args[curArgSlot] = PtrToArgSlot (handle);
10432
10432
argTypes[curArgSlot] = InterpreterType (CORINFO_TYPE_NATIVEINT);
10433
10433
curArgSlot++;
@@ -11579,7 +11579,7 @@ void InterpreterCache<Key,Val>::EnsureCanInsert()
11579
11579
}
11580
11580
else
11581
11581
{
11582
- unsigned short newSize = min (m_allocSize * 2 , USHRT_MAX);
11582
+ unsigned short newSize = ( unsigned short ) min (m_allocSize * 2 , USHRT_MAX);
11583
11583
11584
11584
KeyValPair* newPairs = new KeyValPair[newSize];
11585
11585
memcpy (newPairs, m_pairs, m_count * sizeof (KeyValPair));
0 commit comments