Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 118218e

Browse files
committed
[tfs-changeset: 1682429]
1 parent 39e99ca commit 118218e

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

src/ToolBox/superpmi/superpmi-shim-collector/icorjitinfo.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,17 @@ const char* interceptor_ICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ft
14371437
return temp;
14381438
}
14391439

1440+
const char* interceptor_ICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ftn, /* IN */
1441+
const char** className, /* OUT */
1442+
const char** namespaceName /* OUT */
1443+
)
1444+
{
1445+
mc->cr->AddCall("getMethodNameFromMetadata");
1446+
const char* temp = original_ICorJitInfo->getMethodNameFromMetadata(ftn, className, namespaceName);
1447+
mc->recGetMethodNameFromMetadata(ftn, (char*)temp, className, namespaceName);
1448+
return temp;
1449+
}
1450+
14401451
// this function is for debugging only. It returns a value that
14411452
// is will always be the same for a given method. It is used
14421453
// to implement the 'jitRange' functionality

src/ToolBox/superpmi/superpmi-shim-counter/icorjitinfo.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,15 @@ const char* interceptor_ICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ft
11191119
return original_ICorJitInfo->getMethodNameFromMetadata(ftn, className, namespaceName);
11201120
}
11211121

1122+
const char* interceptor_ICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ftn, /* IN */
1123+
const char** className, /* OUT */
1124+
const char** namespaceName /* OUT */
1125+
)
1126+
{
1127+
mcs->AddCall("getMethodNameFromMetadata");
1128+
return original_ICorJitInfo->getMethodNameFromMetadata(ftn, className, namespaceName);
1129+
}
1130+
11221131
// this function is for debugging only. It returns a value that
11231132
// is will always be the same for a given method. It is used
11241133
// to implement the 'jitRange' functionality

src/ToolBox/superpmi/superpmi-shim-simple/icorjitinfo.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,14 @@ const char* interceptor_ICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ft
10081008
return original_ICorJitInfo->getMethodNameFromMetadata(ftn, className, namespaceName);
10091009
}
10101010

1011+
const char* interceptor_ICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ftn, /* IN */
1012+
const char** className, /* OUT */
1013+
const char** namespaceName /* OUT */
1014+
)
1015+
{
1016+
return original_ICorJitInfo->getMethodNameFromMetadata(ftn, className, namespaceName);
1017+
}
1018+
10111019
// this function is for debugging only. It returns a value that
10121020
// is will always be the same for a given method. It is used
10131021
// to implement the 'jitRange' functionality

src/ToolBox/superpmi/superpmi/icorjitinfo.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,15 @@ const char* MyICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ftn,
12241224
return jitInstance->mc->repGetMethodNameFromMetadata(ftn, className, namespaceName);
12251225
}
12261226

1227+
const char* MyICJI::getMethodNameFromMetadata(CORINFO_METHOD_HANDLE ftn, /* IN */
1228+
const char** className, /* OUT */
1229+
const char** namespaceName /* OUT */
1230+
)
1231+
{
1232+
jitInstance->mc->cr->AddCall("getMethodNameFromMetadata");
1233+
return jitInstance->mc->repGetMethodNameFromMetadata(ftn, className, namespaceName);
1234+
}
1235+
12271236
// this function is for debugging only. It returns a value that
12281237
// is will always be the same for a given method. It is used
12291238
// to implement the 'jitRange' functionality

0 commit comments

Comments
 (0)