Skip to content

Commit 15c22bf

Browse files
committed
Move getNamedIntrinsicID() and getMethodName() into Interpreter Type.
1 parent 5a7ca40 commit 15c22bf

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/coreclr/vm/interpreter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11728,7 +11728,7 @@ static const char* CorInfoTypeNames[] = {
1172811728
};
1172911729

1173011730
// Also see Compiler::lookupNamedIntrinsic
11731-
InterpreterNamedIntrinsics getNamedIntrinsicID(CEEInfo* info, CORINFO_METHOD_HANDLE methodHnd)
11731+
Interpreter::InterpreterNamedIntrinsics Interpreter::getNamedIntrinsicID(CEEInfo* info, CORINFO_METHOD_HANDLE methodHnd)
1173211732
{
1173311733
InterpreterNamedIntrinsics result = NI_Illegal;
1173411734

@@ -11773,7 +11773,7 @@ InterpreterNamedIntrinsics getNamedIntrinsicID(CEEInfo* info, CORINFO_METHOD_HAN
1177311773

1177411774
// Simple version of getMethodName which supports IL Stubs such as IL_STUB_PInvoke additionally.
1177511775
// Also see getMethodNameFromMetadata and printMethodName in corinfo.h
11776-
const char* getMethodName(CEEInfo* info, CORINFO_METHOD_HANDLE hnd, const char** className, const char** namespaceName, const char **enclosingClassName)
11776+
const char* Interpreter::getMethodName(CEEInfo* info, CORINFO_METHOD_HANDLE hnd, const char** className, const char** namespaceName, const char **enclosingClassName)
1177711777
{
1177811778
MethodDesc *pMD = GetMethod(hnd);
1177911779
if (pMD->IsILStub())
@@ -11801,7 +11801,7 @@ const char* eeGetMethodFullName(CEEInfo* info, CORINFO_METHOD_HANDLE hnd, const
1180111801
const char* returnType = NULL;
1180211802

1180311803
const char* className;
11804-
const char* methodName = getMethodName(info, hnd, &className);
11804+
const char* methodName = Interpreter::getMethodName(info, hnd, &className);
1180511805
if (clsName != NULL)
1180611806
{
1180711807
*clsName = className;

src/coreclr/vm/interpreter.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -537,17 +537,7 @@ struct CachedItem
537537
}
538538
};
539539

540-
// Also see namedintrinsiclist.h
541-
enum InterpreterNamedIntrinsics : unsigned short
542-
{
543-
NI_Illegal = 0,
544-
NI_System_StubHelpers_GetStubContext,
545-
NI_System_Runtime_InteropService_MemoryMarshal_GetArrayDataReference,
546-
};
547-
548-
InterpreterNamedIntrinsics getNamedIntrinsicID(CEEInfo* info, CORINFO_METHOD_HANDLE methodHnd);
549540

550-
const char* getMethodName(CEEInfo* info, CORINFO_METHOD_HANDLE hnd, const char** className, const char** namespaceName = NULL, const char **enclosingClassName = NULL);
551541
const char* eeGetMethodFullName(CEEInfo* info, CORINFO_METHOD_HANDLE hnd, const char** clsName = NULL);
552542

553543
// The per-InterpMethodInfo cache may map generic instantiation information to the
@@ -924,6 +914,16 @@ class Interpreter
924914

925915
void* GetParamTypeArg() { return m_genericsCtxtArg; }
926916

917+
// Also see namedintrinsiclist.h
918+
enum InterpreterNamedIntrinsics : unsigned short
919+
{
920+
NI_Illegal = 0,
921+
NI_System_StubHelpers_GetStubContext,
922+
NI_System_Runtime_InteropService_MemoryMarshal_GetArrayDataReference,
923+
};
924+
static InterpreterNamedIntrinsics getNamedIntrinsicID(CEEInfo* info, CORINFO_METHOD_HANDLE methodHnd);
925+
static const char* getMethodName(CEEInfo* info, CORINFO_METHOD_HANDLE hnd, const char** className, const char** namespaceName = NULL, const char **enclosingClassName = NULL);
926+
927927
private:
928928
// Architecture-dependent helpers.
929929
inline static unsigned short NumberOfIntegerRegArgs();

0 commit comments

Comments
 (0)