@@ -851,7 +851,7 @@ void MethodContext::repGetVars(CORINFO_METHOD_HANDLE ftn,
851
851
// Note - the jit will call freearray on the array we give back....
852
852
void MethodContext::recGetBoundaries (CORINFO_METHOD_HANDLE ftn,
853
853
unsigned int * cILOffsets,
854
- DWORD** pILOffsets,
854
+ uint32_t ** pILOffsets,
855
855
ICorDebugInfo::BoundaryTypes* implictBoundaries)
856
856
{
857
857
if (GetBoundaries == nullptr )
@@ -882,7 +882,7 @@ void MethodContext::dmpGetBoundaries(DWORDLONG key, const Agnostic_GetBoundaries
882
882
}
883
883
void MethodContext::repGetBoundaries (CORINFO_METHOD_HANDLE ftn,
884
884
unsigned int * cILOffsets,
885
- DWORD** pILOffsets,
885
+ uint32_t ** pILOffsets,
886
886
ICorDebugInfo::BoundaryTypes* implictBoundaries)
887
887
{
888
888
Agnostic_GetBoundaries value;
@@ -891,7 +891,7 @@ void MethodContext::repGetBoundaries(CORINFO_METHOD_HANDLE ftn,
891
891
892
892
*cILOffsets = (unsigned int )value.cILOffsets ;
893
893
if (*cILOffsets > 0 )
894
- *pILOffsets = (DWORD *)GetBoundaries->GetBuffer (value.pILOffset_offset );
894
+ *pILOffsets = (uint32_t *)GetBoundaries->GetBuffer (value.pILOffset_offset );
895
895
*implictBoundaries = (ICorDebugInfo::BoundaryTypes)value.implicitBoundaries ;
896
896
897
897
DEBUG_REP (dmpGetBoundaries (CastHandle (ftn), value));
@@ -1164,7 +1164,7 @@ LPCWSTR MethodContext::repGetJitTimeLogFilename()
1164
1164
1165
1165
void MethodContext::recCanInline (CORINFO_METHOD_HANDLE callerHnd,
1166
1166
CORINFO_METHOD_HANDLE calleeHnd,
1167
- DWORD * pRestrictions,
1167
+ uint32_t * pRestrictions,
1168
1168
CorInfoInline response,
1169
1169
DWORD exceptionCode)
1170
1170
{
@@ -1196,7 +1196,7 @@ void MethodContext::dmpCanInline(DLDL key, const Agnostic_CanInline& value)
1196
1196
}
1197
1197
CorInfoInline MethodContext::repCanInline (CORINFO_METHOD_HANDLE callerHnd,
1198
1198
CORINFO_METHOD_HANDLE calleeHnd,
1199
- DWORD* pRestrictions,
1199
+ uint32_t * pRestrictions,
1200
1200
DWORD* exceptionCode)
1201
1201
{
1202
1202
DLDL key;
@@ -4161,7 +4161,7 @@ const void* MethodContext::repGetInlinedCallFrameVptr(void** ppIndirection)
4161
4161
return (const void *)value.B ;
4162
4162
}
4163
4163
4164
- void MethodContext::recGetAddrOfCaptureThreadGlobal (void ** ppIndirection, LONG * result)
4164
+ void MethodContext::recGetAddrOfCaptureThreadGlobal (void ** ppIndirection, int32_t * result)
4165
4165
{
4166
4166
if (GetAddrOfCaptureThreadGlobal == nullptr )
4167
4167
GetAddrOfCaptureThreadGlobal = new LightWeightMap<DWORD, DLDL>();
@@ -4181,7 +4181,7 @@ void MethodContext::dmpGetAddrOfCaptureThreadGlobal(DWORD key, DLDL value)
4181
4181
{
4182
4182
printf (" GetAddrOfCaptureThreadGlobal key %u, value ppi-%016llX res-%016llX" , key, value.A , value.B );
4183
4183
}
4184
- LONG * MethodContext::repGetAddrOfCaptureThreadGlobal (void ** ppIndirection)
4184
+ int32_t * MethodContext::repGetAddrOfCaptureThreadGlobal (void ** ppIndirection)
4185
4185
{
4186
4186
DLDL value;
4187
4187
@@ -4191,7 +4191,7 @@ LONG* MethodContext::repGetAddrOfCaptureThreadGlobal(void** ppIndirection)
4191
4191
LogDebug (" Sparse - repGetAddrOfCaptureThreadGlobal returning nullptr and 0xCAFE0001" );
4192
4192
if (ppIndirection != nullptr )
4193
4193
*ppIndirection = nullptr ;
4194
- return (LONG *)(size_t )0xCAFE0001 ;
4194
+ return (int32_t *)(size_t )0xCAFE0001 ;
4195
4195
#else
4196
4196
LogException (EXCEPTIONCODE_MC, " Didn't find anything for GetAddrOfCaptureThreadGlobal" , " " );
4197
4197
#endif
@@ -4201,7 +4201,7 @@ LONG* MethodContext::repGetAddrOfCaptureThreadGlobal(void** ppIndirection)
4201
4201
if (ppIndirection != nullptr )
4202
4202
*ppIndirection = (void *)value.A ;
4203
4203
DEBUG_REP (dmpGetAddrOfCaptureThreadGlobal ((DWORD)0 , value));
4204
- return (LONG *)value.B ;
4204
+ return (int32_t *)value.B ;
4205
4205
}
4206
4206
4207
4207
void MethodContext::recGetClassDomainID (CORINFO_CLASS_HANDLE cls, void ** ppIndirection, unsigned result)
@@ -4586,7 +4586,7 @@ bool MethodContext::repIsValidStringRef(CORINFO_MODULE_HANDLE module, unsigned m
4586
4586
}
4587
4587
4588
4588
4589
- void MethodContext::recGetStringLiteral (CORINFO_MODULE_HANDLE module, unsigned metaTOK, int length, LPCWSTR result)
4589
+ void MethodContext::recGetStringLiteral (CORINFO_MODULE_HANDLE module, unsigned metaTOK, int length, const char16_t * result)
4590
4590
{
4591
4591
if (GetStringLiteral == nullptr )
4592
4592
GetStringLiteral = new LightWeightMap<DLD, DD>();
@@ -4600,7 +4600,7 @@ void MethodContext::recGetStringLiteral(CORINFO_MODULE_HANDLE module, unsigned m
4600
4600
4601
4601
DWORD strBuf = (DWORD)-1 ;
4602
4602
if (result != nullptr )
4603
- strBuf = (DWORD)GetStringLiteral->AddBuffer ((unsigned char *)result, (unsigned int )((wcslen (result) * 2 ) + 2 ));
4603
+ strBuf = (DWORD)GetStringLiteral->AddBuffer ((unsigned char *)result, (unsigned int )((wcslen ((LPCWSTR) result) * 2 ) + 2 ));
4604
4604
4605
4605
DD value;
4606
4606
value.A = (DWORD)length;
@@ -4615,7 +4615,7 @@ void MethodContext::dmpGetStringLiteral(DLD key, DD value)
4615
4615
GetStringLiteral->GetBuffer (value.B ), value.A );
4616
4616
}
4617
4617
4618
- LPCWSTR MethodContext::repGetStringLiteral (CORINFO_MODULE_HANDLE module, unsigned metaTOK, int * length)
4618
+ const char16_t * MethodContext::repGetStringLiteral (CORINFO_MODULE_HANDLE module, unsigned metaTOK, int * length)
4619
4619
{
4620
4620
if (GetStringLiteral == nullptr )
4621
4621
{
@@ -4640,7 +4640,7 @@ LPCWSTR MethodContext::repGetStringLiteral(CORINFO_MODULE_HANDLE module, unsigne
4640
4640
{
4641
4641
DD result = GetStringLiteral->Get (key);
4642
4642
*length = (int )result.A ;
4643
- return (LPCWSTR )GetStringLiteral->GetBuffer (itemIndex);
4643
+ return (const char16_t * )GetStringLiteral->GetBuffer (itemIndex);
4644
4644
}
4645
4645
}
4646
4646
@@ -6187,7 +6187,7 @@ CORINFO_CLASS_HANDLE MethodContext::repGetTypeInstantiationArgument(CORINFO_CLAS
6187
6187
}
6188
6188
6189
6189
void MethodContext::recAppendClassName (
6190
- CORINFO_CLASS_HANDLE cls, bool fNamespace , bool fFullInst , bool fAssembly , const WCHAR * result)
6190
+ CORINFO_CLASS_HANDLE cls, bool fNamespace , bool fFullInst , bool fAssembly , const char16_t * result)
6191
6191
{
6192
6192
if (AppendClassName == nullptr )
6193
6193
AppendClassName = new LightWeightMap<Agnostic_AppendClassName, DWORD>();
@@ -6202,7 +6202,7 @@ void MethodContext::recAppendClassName(
6202
6202
6203
6203
DWORD temp = (DWORD)-1 ;
6204
6204
if (result != nullptr )
6205
- temp = (DWORD)AppendClassName->AddBuffer ((unsigned char *)result, (unsigned int )((wcslen (result) * 2 ) + 2 ));
6205
+ temp = (DWORD)AppendClassName->AddBuffer ((unsigned char *)result, (unsigned int )((wcslen ((LPCWSTR) result) * 2 ) + 2 ));
6206
6206
6207
6207
AppendClassName->Add (key, (DWORD)temp);
6208
6208
DEBUG_REC (dmpAppendClassName (key, (DWORD)temp));
0 commit comments