summaryrefslogtreecommitdiff
path: root/src/vm/runtimehandles.cpp
diff options
context:
space:
mode:
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>2018-08-03 13:03:35 -0700
committerGitHub <noreply@github.com>2018-08-03 13:03:35 -0700
commitb3db1041998be9c63a730240a8f16918597c0ed5 (patch)
tree9ffcd3b7fcaa6e2331ca67212215a7db27ff6d8c /src/vm/runtimehandles.cpp
parentf6e2b9c3b311f58497ccfc337e5925a95a2d008a (diff)
downloadcoreclr-b3db1041998be9c63a730240a8f16918597c0ed5.tar.gz
coreclr-b3db1041998be9c63a730240a8f16918597c0ed5.tar.bz2
coreclr-b3db1041998be9c63a730240a8f16918597c0ed5.zip
Moved LocalVariableInfo to shared (#19184)
* File Modified * Moved to shared * Introducing RuntimeLocalVariableInfo * Build Corefx change * sealed added
Diffstat (limited to 'src/vm/runtimehandles.cpp')
-rw-r--r--src/vm/runtimehandles.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vm/runtimehandles.cpp b/src/vm/runtimehandles.cpp
index 1d0fb955c2..f587b4c7f1 100644
--- a/src/vm/runtimehandles.cpp
+++ b/src/vm/runtimehandles.cpp
@@ -2430,7 +2430,7 @@ FCIMPL2(MethodBody *, RuntimeMethodHandle::GetMethodBody, ReflectMethodObject *p
{
METHODBODYREF MethodBodyObj;
EXCEPTIONHANDLINGCLAUSEREF EHClauseObj;
- LOCALVARIABLEINFOREF LocalVariableInfoObj;
+ RUNTIMELOCALVARIABLEINFOREF RuntimeLocalVariableInfoObj;
U1ARRAYREF U1Array;
BASEARRAYREF TempArray;
REFLECTCLASSBASEREF declaringType;
@@ -2439,7 +2439,7 @@ FCIMPL2(MethodBody *, RuntimeMethodHandle::GetMethodBody, ReflectMethodObject *p
gc.MethodBodyObj = NULL;
gc.EHClauseObj = NULL;
- gc.LocalVariableInfoObj = NULL;
+ gc.RuntimeLocalVariableInfoObj = NULL;
gc.U1Array = NULL;
gc.TempArray = NULL;
gc.declaringType = (REFLECTCLASSBASEREF)ObjectToOBJECTREF(pDeclaringTypeUNSAFE);
@@ -2469,7 +2469,7 @@ FCIMPL2(MethodBody *, RuntimeMethodHandle::GetMethodBody, ReflectMethodObject *p
MethodTable * pExceptionHandlingClauseMT = MscorlibBinder::GetClass(CLASS__EH_CLAUSE);
TypeHandle thEHClauseArray = ClassLoader::LoadArrayTypeThrowing(TypeHandle(pExceptionHandlingClauseMT), ELEMENT_TYPE_SZARRAY);
- MethodTable * pLocalVariableMT = MscorlibBinder::GetClass(CLASS__LOCAL_VARIABLE_INFO);
+ MethodTable * pLocalVariableMT = MscorlibBinder::GetClass(CLASS__RUNTIME_LOCAL_VARIABLE_INFO);
TypeHandle thLocalVariableArray = ClassLoader::LoadArrayTypeThrowing(TypeHandle(pLocalVariableMT), ELEMENT_TYPE_SZARRAY);
Module* pModule = pMethod->GetModule();
@@ -2551,21 +2551,21 @@ FCIMPL2(MethodBody *, RuntimeMethodHandle::GetMethodBody, ReflectMethodObject *p
for (INT32 i = 0; i < cLocals; i ++)
{
- gc.LocalVariableInfoObj = (LOCALVARIABLEINFOREF)AllocateObject(pLocalVariableMT);
+ gc.RuntimeLocalVariableInfoObj = (RUNTIMELOCALVARIABLEINFOREF)AllocateObject(pLocalVariableMT);
- gc.LocalVariableInfoObj->m_localIndex = i;
+ gc.RuntimeLocalVariableInfoObj->_localIndex = i;
metaSig.NextArg();
CorElementType eType;
IfFailThrow(metaSig.GetArgProps().PeekElemType(&eType));
if (ELEMENT_TYPE_PINNED == eType)
- gc.LocalVariableInfoObj->m_bIsPinned = TRUE;
+ gc.RuntimeLocalVariableInfoObj->_isPinned = TRUE;
TypeHandle tempType= metaSig.GetArgProps().GetTypeHandleThrowing(pModule, &sigTypeContext);
OBJECTREF refLocalType = tempType.GetManagedClassObject();
- gc.LocalVariableInfoObj->SetType(refLocalType);
- gc.MethodBodyObj->m_localVariables->SetAt(i, (OBJECTREF) gc.LocalVariableInfoObj);
+ gc.RuntimeLocalVariableInfoObj->SetType(refLocalType);
+ gc.MethodBodyObj->m_localVariables->SetAt(i, (OBJECTREF) gc.RuntimeLocalVariableInfoObj);
}
}
else