Skip to content

Commit 3c6b264

Browse files
authored
Delete dead code in superpmi (#118717)
1 parent 2d5c982 commit 3c6b264

File tree

3 files changed

+1
-30
lines changed

3 files changed

+1
-30
lines changed

src/coreclr/tools/superpmi/superpmi-shared/lwmlist.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ LWM(GetSpecialCopyHelper, DWORDLONG, DWORDLONG)
135135
LWM(GetThreadTLSIndex, DWORD, DLD)
136136
LWM(GetTokenTypeAsHandle, GetTokenTypeAsHandleValue, DWORDLONG)
137137
LWM(GetTypeForBox, DWORDLONG, DWORDLONG)
138-
LWM(GetTypeForBoxOnStack, DWORDLONG, DWORDLONG)
139138
LWM(GetTypeForPrimitiveValueClass, DWORDLONG, DWORD)
140139
LWM(GetTypeForPrimitiveNumericClass, DWORDLONG, DWORD)
141140
LWM(GetUnboxedEntry, DWORDLONG, DLD);

src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,30 +1915,6 @@ CORINFO_CLASS_HANDLE MethodContext::repGetTypeForBox(CORINFO_CLASS_HANDLE cls)
19151915
return result;
19161916
}
19171917

1918-
void MethodContext::recGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls, CORINFO_CLASS_HANDLE result)
1919-
{
1920-
if (GetTypeForBoxOnStack == nullptr)
1921-
GetTypeForBoxOnStack = new LightWeightMap<DWORDLONG, DWORDLONG>();
1922-
1923-
DWORDLONG key = CastHandle(cls);
1924-
DWORDLONG value = CastHandle(result);
1925-
GetTypeForBoxOnStack->Add(key, value);
1926-
DEBUG_REC(dmpGetTypeForBoxOnStack(key, value));
1927-
}
1928-
void MethodContext::dmpGetTypeForBoxOnStack(DWORDLONG key, DWORDLONG value)
1929-
{
1930-
printf("GetTypeForBoxOnStack key cls-%016" PRIX64 ", value res-%016" PRIX64 "", key, value);
1931-
}
1932-
1933-
CORINFO_CLASS_HANDLE MethodContext::repGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls)
1934-
{
1935-
DWORDLONG key = CastHandle(cls);
1936-
DWORDLONG value = LookupByKeyOrMiss(GetTypeForBoxOnStack, key, ": key %016" PRIX64 "", key);
1937-
DEBUG_REP(dmpGetTypeForBoxOnStack(key, value));
1938-
CORINFO_CLASS_HANDLE result = (CORINFO_CLASS_HANDLE)value;
1939-
return result;
1940-
}
1941-
19421918
void MethodContext::recGetBoxHelper(CORINFO_CLASS_HANDLE cls, CorInfoHelpFunc result)
19431919
{
19441920
if (GetBoxHelper == nullptr)

src/coreclr/tools/superpmi/superpmi-shared/methodcontext.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,6 @@ class MethodContext
242242
void dmpGetTypeForBox(DWORDLONG key, DWORDLONG value);
243243
CORINFO_CLASS_HANDLE repGetTypeForBox(CORINFO_CLASS_HANDLE cls);
244244

245-
void recGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls, CORINFO_CLASS_HANDLE result);
246-
void dmpGetTypeForBoxOnStack(DWORDLONG key, DWORDLONG value);
247-
CORINFO_CLASS_HANDLE repGetTypeForBoxOnStack(CORINFO_CLASS_HANDLE cls);
248-
249245
void recGetBoxHelper(CORINFO_CLASS_HANDLE cls, CorInfoHelpFunc result);
250246
void dmpGetBoxHelper(DWORDLONG key, DWORD value);
251247
CorInfoHelpFunc repGetBoxHelper(CORINFO_CLASS_HANDLE cls);
@@ -1199,7 +1195,7 @@ enum mcPackets
11991195
Packet_GetClassStaticDynamicInfo = 218,
12001196
Packet_GetClassThreadStaticDynamicInfo = 219,
12011197
Packet_IsGenericType = 220,
1202-
Packet_GetTypeForBoxOnStack = 221,
1198+
//Packet_GetTypeForBoxOnStack = 221,
12031199
Packet_GetTypeDefinition = 222,
12041200
Packet_GetFpStructLowering = 223,
12051201
Packet_GetSpecialCopyHelper = 224,

0 commit comments

Comments
 (0)