@@ -2519,6 +2519,21 @@ static uint _getExpectedTargetArchitecture(IntPtr thisHandle, IntPtr* ppExceptio
25192519 }
25202520 }
25212521
2522+ [ UnmanagedCallersOnly ]
2523+ static uint _getEmptyStringMdToken ( IntPtr thisHandle , IntPtr * ppException )
2524+ {
2525+ var _this = GetThis ( thisHandle ) ;
2526+ try
2527+ {
2528+ return _this . getEmptyStringMdToken ( ) ;
2529+ }
2530+ catch ( Exception ex )
2531+ {
2532+ * ppException = _this . AllocException ( ex ) ;
2533+ return default ;
2534+ }
2535+ }
2536+
25222537 [ UnmanagedCallersOnly ]
25232538 static uint _getJitFlags ( IntPtr thisHandle , IntPtr * ppException , CORJIT_FLAGS * flags , uint sizeInBytes )
25242539 {
@@ -2552,7 +2567,7 @@ static byte _doesFieldBelongToClass(IntPtr thisHandle, IntPtr* ppException, CORI
25522567
25532568 static IntPtr GetUnmanagedCallbacks ( )
25542569 {
2555- void * * callbacks = ( void * * ) Marshal . AllocCoTaskMem ( sizeof ( IntPtr ) * 172 ) ;
2570+ void * * callbacks = ( void * * ) Marshal . AllocCoTaskMem ( sizeof ( IntPtr ) * 173 ) ;
25562571
25572572 callbacks [ 0 ] = ( delegate * unmanaged< IntPtr , IntPtr * , CORINFO_METHOD_STRUCT_ * , byte > ) & _isIntrinsic ;
25582573 callbacks [ 1 ] = ( delegate * unmanaged< IntPtr , IntPtr * , CORINFO_METHOD_STRUCT_ * , uint > ) & _getMethodAttribs ;
@@ -2724,8 +2739,9 @@ static IntPtr GetUnmanagedCallbacks()
27242739 callbacks [ 167 ] = ( delegate * unmanaged< IntPtr , IntPtr * , void * , void * , void * , ushort , ushort , int , void > ) & _recordRelocation ;
27252740 callbacks [ 168 ] = ( delegate * unmanaged< IntPtr , IntPtr * , void * , ushort > ) & _getRelocTypeHint ;
27262741 callbacks [ 169 ] = ( delegate * unmanaged< IntPtr , IntPtr * , uint > ) & _getExpectedTargetArchitecture ;
2727- callbacks [ 170 ] = ( delegate * unmanaged< IntPtr , IntPtr * , CORJIT_FLAGS * , uint , uint > ) & _getJitFlags ;
2728- callbacks [ 171 ] = ( delegate * unmanaged< IntPtr , IntPtr * , CORINFO_FIELD_STRUCT_ * , CORINFO_CLASS_STRUCT_ * , byte > ) & _doesFieldBelongToClass ;
2742+ callbacks [ 170 ] = ( delegate * unmanaged< IntPtr , IntPtr * , uint > ) & _getEmptyStringMdToken ;
2743+ callbacks [ 171 ] = ( delegate * unmanaged< IntPtr , IntPtr * , CORJIT_FLAGS * , uint , uint > ) & _getJitFlags ;
2744+ callbacks [ 172 ] = ( delegate * unmanaged< IntPtr , IntPtr * , CORINFO_FIELD_STRUCT_ * , CORINFO_CLASS_STRUCT_ * , byte > ) & _doesFieldBelongToClass ;
27292745
27302746 return ( IntPtr ) callbacks ;
27312747 }
0 commit comments