/*
struct BlockCounts // Also defined here: code:CORBBTPROF_BLOCK_DATA
{
- ULONG ILOffset;
- ULONG ExecutionCount;
+ UINT32 ILOffset;
+ UINT32 ExecutionCount;
};
*/
// allocate a basic block profile buffer where execution counts will be stored
// for jitted basic blocks.
-HRESULT allocMethodBlockCounts(DWORD count, // The number of basic blocks that we have
+HRESULT allocMethodBlockCounts(UINT32 count, // The number of basic blocks that we have
BlockCounts** pBlockCounts);
// get profile information to be used for optimizing the current method. The format
// of the buffer is the same as the format the JIT passes to allocMethodBlockCounts.
HRESULT getMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount, // The number of basic blocks that we have
+ UINT32 * pCount, // The number of basic blocks that we have
BlockCounts** pBlockCounts,
- DWORD* pNumRuns);
+ UINT32 * pNumRuns);
// Associates a native call site, identified by its offset in the native code stream, with
// the signature information and method handle the JIT used to lay out the call site. If
}
void MethodContext::recGetMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount,
+ UINT32 * pCount,
ICorJitInfo::BlockCounts** pBlockCounts,
- DWORD* pNumRuns,
+ UINT32 * pNumRuns,
HRESULT result)
{
if (GetMethodBlockCounts == nullptr)
printf(" numRuns-%u result-%u", value.numRuns, value.result);
}
HRESULT MethodContext::repGetMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount,
+ UINT32 * pCount,
ICorJitInfo::BlockCounts** pBlockCounts,
- DWORD* pNumRuns)
+ UINT32 * pNumRuns)
{
Agnostic_GetMethodBlockCounts tempValue;
tempValue = GetMethodBlockCounts->Get((DWORDLONG)ftnHnd);
- *pCount = (ULONG)tempValue.count;
+ *pCount = (UINT32)tempValue.count;
*pBlockCounts = (ICorJitInfo::BlockCounts*)GetMethodBlockCounts->GetBuffer(tempValue.pBlockCounts_index);
- *pNumRuns = (ULONG)tempValue.numRuns;
+ *pNumRuns = (UINT32)tempValue.numRuns;
HRESULT result = (HRESULT)tempValue.result;
return result;
}
DWORD repGetFieldThreadLocalStoreID(CORINFO_FIELD_HANDLE field, void** ppIndirection);
void recGetMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount,
- ICorJitInfo::BlockCounts** pBlockCounts,
- DWORD* pNumRuns,
- HRESULT result);
+ UINT32 * pCount,
+ ICorJitInfo::BlockCounts** pBlockCounts,
+ UINT32 * pNumRuns,
+ HRESULT result);
void dmpGetMethodBlockCounts(DWORDLONG key, const Agnostic_GetMethodBlockCounts& value);
HRESULT repGetMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount,
- ICorJitInfo::BlockCounts** pBlockCounts,
- DWORD* pNumRuns);
+ UINT32 * pCount,
+ ICorJitInfo::BlockCounts** pBlockCounts,
+ UINT32 * pNumRuns);
void recMergeClasses(CORINFO_CLASS_HANDLE cls1, CORINFO_CLASS_HANDLE cls2, CORINFO_CLASS_HANDLE result);
void dmpMergeClasses(DLDL key, DWORDLONG value);
// allocate a basic block profile buffer where execution counts will be stored
// for jitted basic blocks.
-HRESULT interceptor_ICJI::allocMethodBlockCounts(DWORD count, // The number of basic blocks that we have
+HRESULT interceptor_ICJI::allocMethodBlockCounts(UINT32 count, // The number of basic blocks that we have
BlockCounts** pBlockCounts)
{
mc->cr->AddCall("allocMethodBlockCounts");
// get profile information to be used for optimizing the current method. The format
// of the buffer is the same as the format the JIT passes to allocMethodBlockCounts.
HRESULT interceptor_ICJI::getMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount, // The number of basic blocks that we have
+ UINT32 * pCount, // The number of basic blocks that we have
BlockCounts** pBlockCounts,
- DWORD* pNumRuns)
+ UINT32 * pNumRuns)
{
mc->cr->AddCall("getMethodBlockCounts");
HRESULT temp = original_ICorJitInfo->getMethodBlockCounts(ftnHnd, pCount, pBlockCounts, pNumRuns);
/*
struct BlockCounts // Also defined here: code:CORBBTPROF_BLOCK_DATA
{
- ULONG ILOffset;
- ULONG ExecutionCount;
+ UINT32 ILOffset;
+ UINT32 ExecutionCount;
};
*/
// allocate a basic block profile buffer where execution counts will be stored
// for jitted basic blocks.
-HRESULT interceptor_ICJI::allocMethodBlockCounts(DWORD count, // The number of basic blocks that we have
+HRESULT interceptor_ICJI::allocMethodBlockCounts(UINT32 count, // The number of basic blocks that we have
BlockCounts** pBlockCounts)
{
mcs->AddCall("allocMethodBlockCounts");
// get profile information to be used for optimizing the current method. The format
// of the buffer is the same as the format the JIT passes to allocMethodBlockCounts.
HRESULT interceptor_ICJI::getMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount, // The number of basic blocks that we have
+ UINT32 * pCount, // The number of basic blocks that we have
BlockCounts** pBlockCounts,
- DWORD* pNumRuns)
+ UINT32 * pNumRuns)
{
mcs->AddCall("getMethodBlockCounts");
return original_ICorJitInfo->getMethodBlockCounts(ftnHnd, pCount, pBlockCounts, pNumRuns);
// allocate a basic block profile buffer where execution counts will be stored
// for jitted basic blocks.
-HRESULT interceptor_ICJI::allocMethodBlockCounts(DWORD count, // The number of basic blocks that we have
+HRESULT interceptor_ICJI::allocMethodBlockCounts(UINT32 count, // The number of basic blocks that we have
BlockCounts** pBlockCounts)
{
return original_ICorJitInfo->allocMethodBlockCounts(count, pBlockCounts);
// get profile information to be used for optimizing the current method. The format
// of the buffer is the same as the format the JIT passes to allocMethodBlockCounts.
HRESULT interceptor_ICJI::getMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount, // The number of basic blocks that we have
+ UINT32 * pCount, // The number of basic blocks that we have
BlockCounts** pBlockCounts,
- DWORD* pNumRuns)
+ UINT32 * pNumRuns)
{
return original_ICorJitInfo->getMethodBlockCounts(ftnHnd, pCount, pBlockCounts, pNumRuns);
}
// allocate a basic block profile buffer where execution counts will be stored
// for jitted basic blocks.
-HRESULT MyICJI::allocMethodBlockCounts(DWORD count, // The number of basic blocks that we have
+HRESULT MyICJI::allocMethodBlockCounts(UINT32 count, // The number of basic blocks that we have
BlockCounts** pBlockCounts)
{
jitInstance->mc->cr->AddCall("allocMethodBlockCounts");
// get profile information to be used for optimizing the current method. The format
// of the buffer is the same as the format the JIT passes to allocMethodBlockCounts.
HRESULT MyICJI::getMethodBlockCounts(CORINFO_METHOD_HANDLE ftnHnd,
- DWORD* pCount, // The number of basic blocks that we have
+ UINT32 * pCount, // The number of basic blocks that we have
BlockCounts** pBlockCounts,
- DWORD* pNumRuns)
+ UINT32 * pNumRuns)
{
jitInstance->mc->cr->AddCall("getMethodBlockCounts");
return jitInstance->mc->repGetMethodBlockCounts(ftnHnd, pCount, pBlockCounts, pNumRuns);
struct CORBBTPROF_BLOCK_DATA // This struct is also defined by: ICorJitInfo.BlockCounts
{
- DWORD ILOffset;
- DWORD ExecutionCount;
+ UINT32 ILOffset;
+ UINT32 ExecutionCount;
};
struct CORBBTPROF_METHOD_DETAIL_HEADER
struct BlockCounts // Also defined by: CORBBTPROF_BLOCK_DATA
{
- ULONG ILOffset;
- ULONG ExecutionCount;
+ UINT32 ILOffset;
+ UINT32 ExecutionCount;
};
// allocate a basic block profile buffer where execution counts will be stored
// for jitted basic blocks.
virtual HRESULT allocMethodBlockCounts (
- DWORD count, // The number of basic blocks that we have
+ UINT32 count, // The number of basic blocks that we have
BlockCounts ** pBlockCounts // pointer to array of <ILOffset, ExecutionCount> tuples
) = 0;
// of the buffer is the same as the format the JIT passes to allocBBProfileBuffer.
virtual HRESULT getMethodBlockCounts(
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
+ UINT32 * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
- DWORD * pNumRuns // pointer to the total number of profile scenarios run
+ UINT32 * pNumRuns // pointer to the total number of profile scenarios run
) = 0;
// Associates a native call site, identified by its offset in the native code stream, with
}
HRESULT WrapICorJitInfo::allocMethodBlockCounts(
- DWORD count,
+ UINT32 count,
BlockCounts **pBlockCounts)
{
API_ENTER(allocMethodBlockCounts);
HRESULT WrapICorJitInfo::getMethodBlockCounts(
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD *pCount,
+ UINT32 *pCount,
BlockCounts **pBlockCounts,
- DWORD *numRuns)
+ UINT32 *numRuns)
{
API_ENTER(getMethodBlockCounts);
HRESULT temp = wrapHnd->getMethodBlockCounts(ftnHnd, pCount, pBlockCounts, numRuns);
bool fgProfileData_ILSizeMismatch;
ICorJitInfo::BlockCounts* fgBlockCounts;
- DWORD fgBlockCountsCount;
- DWORD fgNumProfileRuns;
+ UINT32 fgBlockCountsCount;
+ UINT32 fgNumProfileRuns;
unsigned fgStressBBProf()
{
}
// Reset all of the basic block counts to zero
- for (DWORD i=0; (i < pInfo->method.cBlock); i++ )
+ for (UINT32 i=0; (i < pInfo->method.cBlock); i++ )
{
//
// If methodWasExecuted is false then every block's ExecutionCount should also be zero
/*********************************************************************/
HRESULT CEEJitInfo::allocMethodBlockCounts (
- DWORD count, // count of <ILOffset, ExecutionCount> tuples
+ UINT32 count, // count of <ILOffset, ExecutionCount> tuples
ICorJitInfo::BlockCounts ** pBlockCounts // pointer to array of <ILOffset, ExecutionCount> tuples
)
{
// to use profile info in codegen for non zapped images.
HRESULT CEEJitInfo::getMethodBlockCounts (
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
+ UINT32 * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
ICorJitInfo::BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
- DWORD * pNumRuns
+ UINT32 * pNumRuns
)
{
LIMITED_METHOD_CONTRACT;
}
HRESULT CEEInfo::allocMethodBlockCounts (
- DWORD count, // the count of <ILOffset, ExecutionCount> tuples
+ UINT32 count, // the count of <ILOffset, ExecutionCount> tuples
BlockCounts ** pBlockCounts // pointer to array of <ILOffset, ExecutionCount> tuples
)
{
HRESULT CEEInfo::getMethodBlockCounts(
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
+ UINT32 * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
- DWORD * pNumRuns
+ UINT32 * pNumRuns
)
{
LIMITED_METHOD_CONTRACT;
CORINFO_METHOD_HANDLE methodHnd);
HRESULT allocMethodBlockCounts (
- DWORD count, // the count of <ILOffset, ExecutionCount> tuples
+ UINT32 count, // the count of <ILOffset, ExecutionCount> tuples
BlockCounts ** pBlockCounts // pointer to array of <ILOffset, ExecutionCount> tuples
);
HRESULT getMethodBlockCounts(
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
+ UINT32 * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
- DWORD * pNumRuns
+ UINT32 * pNumRuns
);
void recordCallSite(
HRESULT allocMethodBlockCounts (
- DWORD count, // the count of <ILOffset, ExecutionCount> tuples
+ UINT32 count, // the count of <ILOffset, ExecutionCount> tuples
ICorJitInfo::BlockCounts ** pBlockCounts // pointer to array of <ILOffset, ExecutionCount> tuples
);
HRESULT getMethodBlockCounts(
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
- BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
- DWORD * pNumRuns
+ UINT32 * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
+ BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
+ UINT32 * pNumRuns
);
void recordCallSite(
}
HRESULT ZapInfo::allocMethodBlockCounts (
- DWORD count, // the count of <ILOffset, ExecutionCount> tuples
+ UINT32 count, // the count of <ILOffset, ExecutionCount> tuples
ICorJitInfo::BlockCounts ** pBlockCounts // pointer to array of <ILOffset, ExecutionCount> tuples
)
{
HRESULT ZapInfo::getMethodBlockCounts (
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
+ UINT32 * pCount, // pointer to the count of <ILOffset, ExecutionCount> tuples
BlockCounts ** pBlockCounts, // pointer to array of <ILOffset, ExecutionCount> tuples
- DWORD * pNumRuns
+ UINT32 * pNumRuns
)
{
_ASSERTE(pBlockCounts != nullptr);
BOOL ZapInfo::CurrentMethodHasProfileData()
{
WRAPPER_NO_CONTRACT;
- DWORD size;
+ UINT32 size;
ICorJitInfo::BlockCounts * pBlockCounts;
return SUCCEEDED(getMethodBlockCounts(m_currentMethodHandle, &size, &pBlockCounts, NULL));
}
void reportFatalError(CorJitResult result);
HRESULT allocMethodBlockCounts (
- DWORD count,
+ UINT32 count,
ICorJitInfo::BlockCounts ** pBlockCounts);
HRESULT getMethodBlockCounts (
CORINFO_METHOD_HANDLE ftnHnd,
- DWORD * pCount,
+ UINT32 * pCount,
ICorJitInfo::BlockCounts ** pBlockCounts,
- DWORD * pNumRuns);
+ UINT32 * pNumRuns);
DWORD getJitFlags(CORJIT_FLAGS* jitFlags, DWORD sizeInBytes);