Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/coreclr/tools/superpmi/superpmi-shared/lwmlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ LWM(GetSpecialCopyHelper, DWORDLONG, DWORDLONG)
LWM(GetThreadTLSIndex, DWORD, DLD)
LWM(GetTokenTypeAsHandle, GetTokenTypeAsHandleValue, DWORDLONG)
LWM(GetTypeForBox, DWORDLONG, DWORDLONG)
LWM(GetTypeForBoxOnStack, DWORDLONG, DWORDLONG)
LWM(GetTypeForPrimitiveValueClass, DWORDLONG, DWORD)
LWM(GetTypeForPrimitiveNumericClass, DWORDLONG, DWORD)
LWM(GetUnboxedEntry, DWORDLONG, DLD);
Expand Down
24 changes: 0 additions & 24 deletions src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1915,30 +1915,6 @@ CORINFO_CLASS_HANDLE MethodContext::repGetTypeForBox(CORINFO_CLASS_HANDLE cls)
return result;
}

void MethodContext::recGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls, CORINFO_CLASS_HANDLE result)
{
if (GetTypeForBoxOnStack == nullptr)
GetTypeForBoxOnStack = new LightWeightMap<DWORDLONG, DWORDLONG>();

DWORDLONG key = CastHandle(cls);
DWORDLONG value = CastHandle(result);
GetTypeForBoxOnStack->Add(key, value);
DEBUG_REC(dmpGetTypeForBoxOnStack(key, value));
}
void MethodContext::dmpGetTypeForBoxOnStack(DWORDLONG key, DWORDLONG value)
{
printf("GetTypeForBoxOnStack key cls-%016" PRIX64 ", value res-%016" PRIX64 "", key, value);
}

CORINFO_CLASS_HANDLE MethodContext::repGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls)
{
DWORDLONG key = CastHandle(cls);
DWORDLONG value = LookupByKeyOrMiss(GetTypeForBoxOnStack, key, ": key %016" PRIX64 "", key);
DEBUG_REP(dmpGetTypeForBoxOnStack(key, value));
CORINFO_CLASS_HANDLE result = (CORINFO_CLASS_HANDLE)value;
return result;
}

void MethodContext::recGetBoxHelper(CORINFO_CLASS_HANDLE cls, CorInfoHelpFunc result)
{
if (GetBoxHelper == nullptr)
Expand Down
6 changes: 1 addition & 5 deletions src/coreclr/tools/superpmi/superpmi-shared/methodcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,6 @@ class MethodContext
void dmpGetTypeForBox(DWORDLONG key, DWORDLONG value);
CORINFO_CLASS_HANDLE repGetTypeForBox(CORINFO_CLASS_HANDLE cls);

void recGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls, CORINFO_CLASS_HANDLE result);
void dmpGetTypeForBoxOnStack(DWORDLONG key, DWORDLONG value);
CORINFO_CLASS_HANDLE repGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls);

void recGetBoxHelper(CORINFO_CLASS_HANDLE cls, CorInfoHelpFunc result);
void dmpGetBoxHelper(DWORDLONG key, DWORD value);
CorInfoHelpFunc repGetBoxHelper(CORINFO_CLASS_HANDLE cls);
Expand Down Expand Up @@ -1199,7 +1195,7 @@ enum mcPackets
Packet_GetClassStaticDynamicInfo = 218,
Packet_GetClassThreadStaticDynamicInfo = 219,
Packet_IsGenericType = 220,
Packet_GetTypeForBoxOnStack = 221,
//Packet_GetTypeForBoxOnStack = 221,
Packet_GetTypeDefinition = 222,
Packet_GetFpStructLowering = 223,
Packet_GetSpecialCopyHelper = 224,
Expand Down
Loading