repo_name
stringclasses
6 values
pr_number
int64
512
78.9k
pr_title
stringlengths
3
144
pr_description
stringlengths
0
30.3k
author
stringlengths
2
21
date_created
unknown
date_merged
unknown
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
17
30.4k
filepath
stringlengths
9
210
before_content
stringlengths
0
112M
after_content
stringlengths
0
112M
label
int64
-1
1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/debug/di/nativepipeline.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // NativePipeline.h // // // defines native pipeline abstraction, which includes debug-support // for event redirection. //***************************************************************************** #ifndef _NATIVE_PIPELINE_H #define _NATIVE_PIPELINE_H //----------------------------------------------------------------------------- // Interface for native-debugging pipeline associated with a single process // that is being debugged. // // On windows, this is a wrapper around the win32 debugging API // (eg, kernel32!WaitForDebugEvent). On most Unix-like platforms, // it has an alternative implementation. See code:IEventChannel and // platformspecific.cpp for more information. // @dbgtodo : All of the APIs that return BOOL should probably be changed to // return HRESULTS so we don't have to rely on some implicit GetLastError protocol. //----------------------------------------------------------------------------- class INativeEventPipeline { public: // Call to delete the pipeline. This can only be called once. virtual void Delete() = 0; // // set whether to kill outstanding debuggees when the debugger exits. // // Arguments: // fKillOnExit - When the debugger thread (this thread) exits, outstanding debuggees will be // terminated (if true), else detached (if false) // // Returns: // True on success, False on failure. // // Notes: // This is a cross-platform wrapper around Kernel32!DebugSetProcessKillOnExit. // This affects all debuggees handled by this thread. // This is not supported or necessary for Mac debugging. The only reason we need this on Windows is to // ask the OS not to terminate the debuggee when the debugger exits. The Mac debugging pipeline // doesn't automatically kill the debuggee when the debugger exits. // virtual BOOL DebugSetProcessKillOnExit(bool fKillOnExit) = 0; // Create virtual HRESULT CreateProcessUnderDebugger( MachineInfo machineInfo, LPCWSTR lpApplicationName, LPCWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) = 0; // Attach virtual HRESULT DebugActiveProcess(MachineInfo machineInfo, const ProcessDescriptor& processDescriptor) = 0; // Detach virtual HRESULT DebugActiveProcessStop(DWORD processId) =0; // // Block and wait for the next debug event from the debuggee process. // // Arguments: // pEvent - buffer for the debug event to be returned // dwTimeout - number of milliseconds to wait before timing out // pProcess - the CordbProcess associated with this pipeline; used to look up a thread ID if necessary // // Return Value: // TRUE if a debug event is available // // Notes: // Once a debug event is returned, it is consumed from the pipeline and will not be accessible in the // future. Caller is responsible for saving the debug event if necessary. // virtual BOOL WaitForDebugEvent(DEBUG_EVENT * pEvent, DWORD dwTimeout, CordbProcess * pProcess) =0; // // This is specific to Windows. When a debug event is sent to the debugger, the debuggee process is // suspended. The debugger must call this function to resume the debuggee process. // // Arguments: // dwProcessId - process ID of the debuggee // dwThreadId - thread ID of the thread which has triggered a debug event before // dwContinueStatus - whether to handle the exception (if any) reported on the specified thread // // Return Value: // TRUE if successful // // Notes: // For Mac debugging, the process isn't actually suspended when a debug event is raised. As such, // this function is a nop for Mac debugging. See code:Debugger::SendRawEvent. // // Of course, this is a semantic difference from Windows. However, in most cases, the LS suspends // all managed threads by calling code:Debugger::TrapAllRuntimeThreads immediately after raising a // debug event. The only case where this is not true is code:Debugger::SendCreateProcess, but that // doesn't seem to be a problem at this point. // virtual BOOL ContinueDebugEvent( DWORD dwProcessId, DWORD dwThreadId, DWORD dwContinueStatus ) =0; // // Return a handle for the debuggee process. // // Return Value: // handle for the debuggee process (see below) // // Notes: // Handles are a Windows-specific concept. For Mac debugging, the handle returned by this function is // only valid for waiting on process termination. This is ok for now because the only cases where a // real process handle is needed are related to interop-debugging, which isn't supported on the Mac. // virtual HANDLE GetProcessHandle() = 0; // // Terminate the debuggee process. // // Arguments: // exitCode - the exit code for the debuggee process // // Return Value: // TRUE if successful // // Notes: // The exit code is ignored for Mac debugging. // virtual BOOL TerminateProcess(UINT32 exitCode) = 0; #ifdef TARGET_UNIX // Used by debugger side (RS) to cleanup the target (LS) named pipes // and semaphores when the debugger detects the debuggee process exited. virtual void CleanupTargetProcess() { } #endif }; // // Helper accessors for manipulating native pipeline. // These also provide some platform abstractions for DEBUG_EVENT. // // Returns process ID that the debug event is on. DWORD GetProcessId(const DEBUG_EVENT * pEvent); // Returns Thread ID of the thread that fired the debug event. DWORD GetThreadId(const DEBUG_EVENT * pEvent); // // Determines if this is an exception event. // // Arguments: // pEvent - [required, in]: debug event to inspect // pfFirstChance - [required, out]: set if this is an 1st-chance exception. // ppRecord - [required, out]: if this is an exception, pointer into to the exception record. // this pointer has the same lifetime semantics as the DEBUG_EVENT (it may // likely be a pointer into the debug-event). // // Returns: // True if this is an exception. Sets outparameters to exception values. // Else false. // // Notes: // Exceptions are spceial because they need to be sent to the CLR for filtering. BOOL IsExceptionEvent(const DEBUG_EVENT * pEvent, BOOL * pfFirstChance, const EXCEPTION_RECORD ** ppRecord); //----------------------------------------------------------------------------- // Allocate and return a pipeline object for this platform // // Returns: // newly allocated pipeline object. Caller must call Dispose() on it. INativeEventPipeline * NewPipelineForThisPlatform(); //----------------------------------------------------------------------------- // Allocate and return a pipeline object for this platform // Has debug checks (such as for event redirection) // // Returns: // newly allocated pipeline object. Caller must call Dispose() on it. INativeEventPipeline * NewPipelineWithDebugChecks(); #endif // _NATIVE_PIPELINE_H
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // NativePipeline.h // // // defines native pipeline abstraction, which includes debug-support // for event redirection. //***************************************************************************** #ifndef _NATIVE_PIPELINE_H #define _NATIVE_PIPELINE_H //----------------------------------------------------------------------------- // Interface for native-debugging pipeline associated with a single process // that is being debugged. // // On windows, this is a wrapper around the win32 debugging API // (eg, kernel32!WaitForDebugEvent). On most Unix-like platforms, // it has an alternative implementation. See code:IEventChannel and // platformspecific.cpp for more information. // @dbgtodo : All of the APIs that return BOOL should probably be changed to // return HRESULTS so we don't have to rely on some implicit GetLastError protocol. //----------------------------------------------------------------------------- class INativeEventPipeline { public: // Call to delete the pipeline. This can only be called once. virtual void Delete() = 0; // // set whether to kill outstanding debuggees when the debugger exits. // // Arguments: // fKillOnExit - When the debugger thread (this thread) exits, outstanding debuggees will be // terminated (if true), else detached (if false) // // Returns: // True on success, False on failure. // // Notes: // This is a cross-platform wrapper around Kernel32!DebugSetProcessKillOnExit. // This affects all debuggees handled by this thread. // This is not supported or necessary for Mac debugging. The only reason we need this on Windows is to // ask the OS not to terminate the debuggee when the debugger exits. The Mac debugging pipeline // doesn't automatically kill the debuggee when the debugger exits. // virtual BOOL DebugSetProcessKillOnExit(bool fKillOnExit) = 0; // Create virtual HRESULT CreateProcessUnderDebugger( MachineInfo machineInfo, LPCWSTR lpApplicationName, LPCWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) = 0; // Attach virtual HRESULT DebugActiveProcess(MachineInfo machineInfo, const ProcessDescriptor& processDescriptor) = 0; // Detach virtual HRESULT DebugActiveProcessStop(DWORD processId) =0; // // Block and wait for the next debug event from the debuggee process. // // Arguments: // pEvent - buffer for the debug event to be returned // dwTimeout - number of milliseconds to wait before timing out // pProcess - the CordbProcess associated with this pipeline; used to look up a thread ID if necessary // // Return Value: // TRUE if a debug event is available // // Notes: // Once a debug event is returned, it is consumed from the pipeline and will not be accessible in the // future. Caller is responsible for saving the debug event if necessary. // virtual BOOL WaitForDebugEvent(DEBUG_EVENT * pEvent, DWORD dwTimeout, CordbProcess * pProcess) =0; // // This is specific to Windows. When a debug event is sent to the debugger, the debuggee process is // suspended. The debugger must call this function to resume the debuggee process. // // Arguments: // dwProcessId - process ID of the debuggee // dwThreadId - thread ID of the thread which has triggered a debug event before // dwContinueStatus - whether to handle the exception (if any) reported on the specified thread // // Return Value: // TRUE if successful // // Notes: // For Mac debugging, the process isn't actually suspended when a debug event is raised. As such, // this function is a nop for Mac debugging. See code:Debugger::SendRawEvent. // // Of course, this is a semantic difference from Windows. However, in most cases, the LS suspends // all managed threads by calling code:Debugger::TrapAllRuntimeThreads immediately after raising a // debug event. The only case where this is not true is code:Debugger::SendCreateProcess, but that // doesn't seem to be a problem at this point. // virtual BOOL ContinueDebugEvent( DWORD dwProcessId, DWORD dwThreadId, DWORD dwContinueStatus ) =0; // // Return a handle for the debuggee process. // // Return Value: // handle for the debuggee process (see below) // // Notes: // Handles are a Windows-specific concept. For Mac debugging, the handle returned by this function is // only valid for waiting on process termination. This is ok for now because the only cases where a // real process handle is needed are related to interop-debugging, which isn't supported on the Mac. // virtual HANDLE GetProcessHandle() = 0; // // Terminate the debuggee process. // // Arguments: // exitCode - the exit code for the debuggee process // // Return Value: // TRUE if successful // // Notes: // The exit code is ignored for Mac debugging. // virtual BOOL TerminateProcess(UINT32 exitCode) = 0; #ifdef TARGET_UNIX // Used by debugger side (RS) to cleanup the target (LS) named pipes // and semaphores when the debugger detects the debuggee process exited. virtual void CleanupTargetProcess() { } #endif }; // // Helper accessors for manipulating native pipeline. // These also provide some platform abstractions for DEBUG_EVENT. // // Returns process ID that the debug event is on. DWORD GetProcessId(const DEBUG_EVENT * pEvent); // Returns Thread ID of the thread that fired the debug event. DWORD GetThreadId(const DEBUG_EVENT * pEvent); // // Determines if this is an exception event. // // Arguments: // pEvent - [required, in]: debug event to inspect // pfFirstChance - [required, out]: set if this is an 1st-chance exception. // ppRecord - [required, out]: if this is an exception, pointer into to the exception record. // this pointer has the same lifetime semantics as the DEBUG_EVENT (it may // likely be a pointer into the debug-event). // // Returns: // True if this is an exception. Sets outparameters to exception values. // Else false. // // Notes: // Exceptions are spceial because they need to be sent to the CLR for filtering. BOOL IsExceptionEvent(const DEBUG_EVENT * pEvent, BOOL * pfFirstChance, const EXCEPTION_RECORD ** ppRecord); //----------------------------------------------------------------------------- // Allocate and return a pipeline object for this platform // // Returns: // newly allocated pipeline object. Caller must call Dispose() on it. INativeEventPipeline * NewPipelineForThisPlatform(); //----------------------------------------------------------------------------- // Allocate and return a pipeline object for this platform // Has debug checks (such as for event redirection) // // Returns: // newly allocated pipeline object. Caller must call Dispose() on it. INativeEventPipeline * NewPipelineWithDebugChecks(); #endif // _NATIVE_PIPELINE_H
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/pal/tests/palsuite/c_runtime/fwprintf/test8/test8.cpp
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test8.c ** ** Purpose: Tests the decimal specifier (%d). ** This test is modeled after the sprintf series. ** ** **==========================================================================*/ #include <palsuite.h> #include "../fwprintf.h" /* * Depends on memcmp, strlen, fopen, fseek and fgets. */ PALTEST(c_runtime_fwprintf_test8_paltest_fwprintf_test8, "c_runtime/fwprintf/test8/paltest_fwprintf_test8") { int neg = -42; int pos = 42; INT64 l = 42; if (PAL_Initialize(argc, argv) != 0) { return(FAIL); } DoNumTest(convert("foo %d"), pos, "foo 42"); DoNumTest(convert("foo %ld"), 0xFFFF, "foo 65535"); DoNumTest(convert("foo %hd"), 0xFFFF, "foo -1"); DoNumTest(convert("foo %Ld"), pos, "foo 42"); DoI64Test(convert("foo %I64d"), l, "42", "foo 42", "foo 42"); DoNumTest(convert("foo %3d"), pos, "foo 42"); DoNumTest(convert("foo %-3d"), pos, "foo 42 "); DoNumTest(convert("foo %.1d"), pos, "foo 42"); DoNumTest(convert("foo %.3d"), pos, "foo 042"); DoNumTest(convert("foo %03d"), pos, "foo 042"); DoNumTest(convert("foo %#d"), pos, "foo 42"); DoNumTest(convert("foo %+d"), pos, "foo +42"); DoNumTest(convert("foo % d"), pos, "foo 42"); DoNumTest(convert("foo %+d"), neg, "foo -42"); DoNumTest(convert("foo % d"), neg, "foo -42"); PAL_Terminate(); return PASS; }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*============================================================================ ** ** Source: test8.c ** ** Purpose: Tests the decimal specifier (%d). ** This test is modeled after the sprintf series. ** ** **==========================================================================*/ #include <palsuite.h> #include "../fwprintf.h" /* * Depends on memcmp, strlen, fopen, fseek and fgets. */ PALTEST(c_runtime_fwprintf_test8_paltest_fwprintf_test8, "c_runtime/fwprintf/test8/paltest_fwprintf_test8") { int neg = -42; int pos = 42; INT64 l = 42; if (PAL_Initialize(argc, argv) != 0) { return(FAIL); } DoNumTest(convert("foo %d"), pos, "foo 42"); DoNumTest(convert("foo %ld"), 0xFFFF, "foo 65535"); DoNumTest(convert("foo %hd"), 0xFFFF, "foo -1"); DoNumTest(convert("foo %Ld"), pos, "foo 42"); DoI64Test(convert("foo %I64d"), l, "42", "foo 42", "foo 42"); DoNumTest(convert("foo %3d"), pos, "foo 42"); DoNumTest(convert("foo %-3d"), pos, "foo 42 "); DoNumTest(convert("foo %.1d"), pos, "foo 42"); DoNumTest(convert("foo %.3d"), pos, "foo 042"); DoNumTest(convert("foo %03d"), pos, "foo 042"); DoNumTest(convert("foo %#d"), pos, "foo 42"); DoNumTest(convert("foo %+d"), pos, "foo +42"); DoNumTest(convert("foo % d"), pos, "foo 42"); DoNumTest(convert("foo %+d"), neg, "foo -42"); DoNumTest(convert("foo % d"), neg, "foo -42"); PAL_Terminate(); return PASS; }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/mono/mono/metadata/icall-decl.h
/** * \file * Copyright 2018 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_METADATA_ICALL_DECL_H__ #define __MONO_METADATA_ICALL_DECL_H__ #include "appdomain-icalls.h" #include <mono/metadata/class.h> #include <mono/metadata/environment.h> #include "gc-internals.h" #include "handle-decl.h" #include "handle.h" #include "marshal.h" #include "monitor.h" #include "mono-perfcounters.h" #include <mono/metadata/object-forward.h> #include "object-internals.h" #include <mono/metadata/reflection.h> #include "string-icalls.h" #include "mono/utils/mono-digest.h" #include "mono/utils/mono-forward-internal.h" #include "w32event.h" #include "w32file.h" #include "mono/utils/mono-proclib.h" /* From MonoProperty.cs */ typedef enum { PInfo_Attributes = 1, PInfo_GetMethod = 1 << 1, PInfo_SetMethod = 1 << 2, PInfo_ReflectedType = 1 << 3, PInfo_DeclaringType = 1 << 4, PInfo_Name = 1 << 5 } PInfo; #include "icall-table.h" #define NOHANDLES(inner) inner #define HANDLES_REUSE_WRAPPER(...) /* nothing */ // Generate prototypes for coop icall wrappers and coop icalls. #define MONO_HANDLE_REGISTER_ICALL(func, ret, nargs, argtypes) \ MONO_HANDLE_DECLARE (,,func ## _impl, ret, nargs, argtypes); \ MONO_HANDLE_REGISTER_ICALL_DECLARE_RAW (func, ret, nargs, argtypes); #define ICALL_TYPE(id, name, first) /* nothing */ #define ICALL(id, name, func) /* nothing */ #define HANDLES(id, name, func, ret, nargs, argtypes) \ MONO_HANDLE_DECLARE_RAW (id, name, func, ret, nargs, argtypes); \ MONO_HANDLE_DECLARE (id, name, func, ret, nargs, argtypes); #include "icall-def.h" #undef ICALL_TYPE #undef ICALL #undef HANDLES #undef HANDLES_REUSE_WRAPPER #undef NOHANDLES #undef MONO_HANDLE_REGISTER_ICALL // This is sorted. // grep ICALL_EXPORT | sort | uniq ICALL_EXPORT MonoAssemblyName* ves_icall_System_Reflection_AssemblyName_GetNativeName (MonoAssembly*); ICALL_EXPORT MonoBoolean ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_SufficientExecutionStack (void); ICALL_EXPORT MonoBoolean ves_icall_System_Threading_Thread_YieldInternal (void); ICALL_EXPORT MonoThread *ves_icall_System_Threading_Thread_GetCurrentThread (void); ICALL_EXPORT void ves_icall_System_ArgIterator_Setup (MonoArgIterator*, char*, char*); ICALL_EXPORT MonoType* ves_icall_System_ArgIterator_IntGetNextArgType (MonoArgIterator*); ICALL_EXPORT void ves_icall_System_ArgIterator_IntGetNextArg (MonoArgIterator*, MonoTypedRef*); ICALL_EXPORT void ves_icall_System_ArgIterator_IntGetNextArgWithType (MonoArgIterator*, MonoTypedRef*, MonoType*); ICALL_EXPORT double ves_icall_System_Math_Acos (double); ICALL_EXPORT double ves_icall_System_Math_Acosh (double); ICALL_EXPORT double ves_icall_System_Math_Asin (double); ICALL_EXPORT double ves_icall_System_Math_Asinh (double); ICALL_EXPORT double ves_icall_System_Math_Atan (double); ICALL_EXPORT double ves_icall_System_Math_Atan2 (double, double); ICALL_EXPORT double ves_icall_System_Math_Atanh (double); ICALL_EXPORT double ves_icall_System_Math_Cbrt (double); ICALL_EXPORT double ves_icall_System_Math_Ceiling (double); ICALL_EXPORT double ves_icall_System_Math_Cos (double); ICALL_EXPORT double ves_icall_System_Math_Cosh (double); ICALL_EXPORT double ves_icall_System_Math_Exp (double); ICALL_EXPORT double ves_icall_System_Math_FMod (double, double); ICALL_EXPORT double ves_icall_System_Math_Floor (double); ICALL_EXPORT double ves_icall_System_Math_Log (double); ICALL_EXPORT double ves_icall_System_Math_Log10 (double); ICALL_EXPORT double ves_icall_System_Math_ModF (double, double*); ICALL_EXPORT double ves_icall_System_Math_Pow (double, double); ICALL_EXPORT double ves_icall_System_Math_Round (double); ICALL_EXPORT double ves_icall_System_Math_Sin (double); ICALL_EXPORT double ves_icall_System_Math_Sinh (double); ICALL_EXPORT double ves_icall_System_Math_Sqrt (double); ICALL_EXPORT double ves_icall_System_Math_Tan (double); ICALL_EXPORT double ves_icall_System_Math_Tanh (double); ICALL_EXPORT float ves_icall_System_MathF_Acos (float); ICALL_EXPORT float ves_icall_System_MathF_Acosh (float); ICALL_EXPORT float ves_icall_System_MathF_Asin (float); ICALL_EXPORT float ves_icall_System_MathF_Asinh (float); ICALL_EXPORT float ves_icall_System_MathF_Atan (float); ICALL_EXPORT float ves_icall_System_MathF_Atan2 (float, float); ICALL_EXPORT float ves_icall_System_MathF_Atanh (float); ICALL_EXPORT float ves_icall_System_MathF_Cbrt (float); ICALL_EXPORT float ves_icall_System_MathF_Ceiling (float); ICALL_EXPORT float ves_icall_System_MathF_Cos (float); ICALL_EXPORT float ves_icall_System_MathF_Cosh (float); ICALL_EXPORT float ves_icall_System_MathF_Exp (float); ICALL_EXPORT float ves_icall_System_MathF_FMod (float, float); ICALL_EXPORT float ves_icall_System_MathF_Floor (float); ICALL_EXPORT float ves_icall_System_MathF_Log (float); ICALL_EXPORT float ves_icall_System_MathF_Log10 (float); ICALL_EXPORT float ves_icall_System_MathF_ModF (float, float*); ICALL_EXPORT float ves_icall_System_MathF_Pow (float, float); ICALL_EXPORT float ves_icall_System_MathF_Sin (float); ICALL_EXPORT float ves_icall_System_MathF_Sinh (float); ICALL_EXPORT float ves_icall_System_MathF_Sqrt (float); ICALL_EXPORT float ves_icall_System_MathF_Tan (float); ICALL_EXPORT float ves_icall_System_MathF_Tanh (float); ICALL_EXPORT double ves_icall_System_Math_Log2 (double); ICALL_EXPORT double ves_icall_System_Math_FusedMultiplyAdd (double, double, double); ICALL_EXPORT float ves_icall_System_MathF_Log2 (float); ICALL_EXPORT float ves_icall_System_MathF_FusedMultiplyAdd (float, float, float); ICALL_EXPORT gint32 ves_icall_System_Environment_get_ProcessorCount (void); ICALL_EXPORT gint32 ves_icall_System_Environment_get_TickCount (void); ICALL_EXPORT gint64 ves_icall_System_Environment_get_TickCount64 (void); ICALL_EXPORT gint64 ves_icall_System_GC_GetTotalMemory (MonoBoolean forceCollection); ICALL_EXPORT int ves_icall_Interop_Sys_DoubleToString (double, char*, char*, int); ICALL_EXPORT int ves_icall_System_GC_GetCollectionCount (int); ICALL_EXPORT int ves_icall_System_GC_GetMaxGeneration (void); ICALL_EXPORT gint64 ves_icall_System_GC_GetAllocatedBytesForCurrentThread (void); ICALL_EXPORT int ves_icall_get_method_attributes (MonoMethod* method); ICALL_EXPORT void ves_icall_System_Array_GetGenericValue_icall (MonoArray**, guint32, gpointer); ICALL_EXPORT void ves_icall_System_Array_SetGenericValue_icall (MonoArray**, guint32, gpointer); ICALL_EXPORT void ves_icall_System_Environment_Exit (int); ICALL_EXPORT void ves_icall_System_GC_InternalCollect (int generation); ICALL_EXPORT void ves_icall_System_GC_RecordPressure (gint64); ICALL_EXPORT void ves_icall_System_GC_WaitForPendingFinalizers (void); ICALL_EXPORT void ves_icall_System_GC_GetGCMemoryInfo (gint64*, gint64*, gint64*, gint64*, gint64*, gint64*); ICALL_EXPORT void ves_icall_System_Runtime_RuntimeImports_Memmove (guint8*, guint8*, size_t); ICALL_EXPORT void ves_icall_System_Buffer_BulkMoveWithWriteBarrier (guint8 *, guint8 *, size_t, MonoType *); ICALL_EXPORT void ves_icall_System_Runtime_RuntimeImports_ZeroMemory (guint8*, size_t); ICALL_EXPORT void ves_icall_System_Array_InternalCreate (MonoArray *volatile* result, MonoType* type, gint32 rank, gint32* pLengths, gint32* pLowerBounds); ICALL_EXPORT MonoBoolean ves_icall_System_Array_CanChangePrimitive (MonoReflectionType *volatile* ref_src_type_handle, MonoReflectionType *volatile* ref_dst_type_handle, MonoBoolean reliable); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Debugger_IsAttached_internal (void); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Debugger_IsLogging (void); ICALL_EXPORT void ves_icall_System_Diagnostics_Debugger_Log (int level, MonoString *volatile* category, MonoString *volatile* message); ICALL_EXPORT intptr_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_DefineEvent (intptr_t prov_handle, uint32_t event_id, int64_t keywords, uint32_t event_version, uint32_t level, const uint8_t *metadata, uint32_t metadata_len); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_EventPipeInternal_DeleteProvider (intptr_t prov_handle); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_EventPipeInternal_Disable (uint64_t session_id); ICALL_EXPORT uint64_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_Enable (const_gunichar2_ptr output_file, int32_t format, uint32_t circular_buffer_size_mb, const void *providers, uint32_t num_providers); ICALL_EXPORT int32_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_EventActivityIdControl (uint32_t control_code, uint8_t *activity_id); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetNextEvent (uint64_t session_id, void *instance); ICALL_EXPORT intptr_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetProvider (const_gunichar2_ptr provider_name); ICALL_EXPORT guint64 ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetRuntimeCounterValue (gint32 counter); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetSessionInfo (uint64_t session_id, void *session_info); ICALL_EXPORT intptr_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetWaitHandle (uint64_t session_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_EventPipeInternal_WriteEventData (intptr_t event_handle, void *event_data, uint32_t event_data_len, const uint8_t *activity_id, const uint8_t *related_activity_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolIODequeue (intptr_t native_overlapped, intptr_t overlapped, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolIOEnqueue (intptr_t native_overlapped, intptr_t overlapped, MonoBoolean multi_dequeues, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentAdjustment (double average_throughput, uint32_t networker_thread_count, int32_t reason, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentSample (double throughput, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentStats (double duration, double throughput, double threadpool_worker_thread_wait, double throughput_wave, double throughput_error_estimate, double average_throughput_error_estimate, double throughput_ratio, double confidence, double new_control_setting, uint16_t new_thread_wave_magnitude, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadStart (uint32_t active_thread_count, uint32_t retired_worker_thread_count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadStop (uint32_t active_thread_count, uint32_t retired_worker_thread_count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadWait (uint32_t active_thread_count, uint32_t retired_worker_thread_count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkingThreadCount (uint16_t count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_Mono_RuntimeGPtrArrayHandle_GPtrArrayFree (GPtrArray *ptr_array); ICALL_EXPORT void ves_icall_Mono_RuntimeMarshal_FreeAssemblyName (MonoAssemblyName *aname, MonoBoolean free_struct); ICALL_EXPORT void ves_icall_Mono_SafeStringMarshal_GFree (void *c_str); ICALL_EXPORT char* ves_icall_Mono_SafeStringMarshal_StringToUtf8 (MonoString *volatile* s); ICALL_EXPORT MonoType* ves_icall_Mono_RuntimeClassHandle_GetTypeFromClass (MonoClass *klass); ICALL_EXPORT gpointer ves_icall_System_Threading_LowLevelLifoSemaphore_InitInternal (void); ICALL_EXPORT void ves_icall_System_Threading_LowLevelLifoSemaphore_DeleteInternal (gpointer sem_ptr); ICALL_EXPORT gint32 ves_icall_System_Threading_LowLevelLifoSemaphore_TimedWaitInternal (gpointer sem_ptr, gint32 timeout_ms); ICALL_EXPORT void ves_icall_System_Threading_LowLevelLifoSemaphore_ReleaseInternal (gpointer sem_ptr, gint32 count); #ifdef TARGET_AMD64 ICALL_EXPORT void ves_icall_System_Runtime_Intrinsics_X86_X86Base___cpuidex (int abcd[4], int function_id, int subfunction_id); #endif ICALL_EXPORT void ves_icall_AssemblyExtensions_ApplyUpdate (MonoAssembly *assm, gconstpointer dmeta_bytes, int32_t dmeta_len, gconstpointer dil_bytes, int32_t dil_len, gconstpointer dpdb_bytes, int32_t dpdb_len); ICALL_EXPORT gint32 ves_icall_AssemblyExtensions_ApplyUpdateEnabled (gint32 just_component_check); ICALL_EXPORT guint32 ves_icall_RuntimeTypeHandle_GetCorElementType (MonoQCallTypeHandle type_handle); ICALL_EXPORT MonoBoolean ves_icall_RuntimeTypeHandle_HasInstantiation (MonoQCallTypeHandle type_handle); ICALL_EXPORT guint32 ves_icall_RuntimeTypeHandle_GetAttributes (MonoQCallTypeHandle type_handle); ICALL_EXPORT MonoBoolean ves_icall_RuntimeTypeHandle_IsGenericTypeDefinition (MonoQCallTypeHandle type_handle); ICALL_EXPORT gint32 ves_icall_RuntimeType_GetGenericParameterPosition (MonoQCallTypeHandle type_handle); ICALL_EXPORT int ves_icall_System_Enum_InternalGetCorElementType (MonoQCallTypeHandle type_handle); ICALL_EXPORT MonoBoolean ves_icall_System_Runtime_InteropServices_Marshal_IsPinnableType (MonoQCallTypeHandle type_handle); #endif // __MONO_METADATA_ICALL_DECL_H__
/** * \file * Copyright 2018 Microsoft * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifndef __MONO_METADATA_ICALL_DECL_H__ #define __MONO_METADATA_ICALL_DECL_H__ #include "appdomain-icalls.h" #include <mono/metadata/class.h> #include <mono/metadata/environment.h> #include "gc-internals.h" #include "handle-decl.h" #include "handle.h" #include "marshal.h" #include "monitor.h" #include "mono-perfcounters.h" #include <mono/metadata/object-forward.h> #include "object-internals.h" #include <mono/metadata/reflection.h> #include "string-icalls.h" #include "mono/utils/mono-digest.h" #include "mono/utils/mono-forward-internal.h" #include "w32event.h" #include "w32file.h" #include "mono/utils/mono-proclib.h" /* From MonoProperty.cs */ typedef enum { PInfo_Attributes = 1, PInfo_GetMethod = 1 << 1, PInfo_SetMethod = 1 << 2, PInfo_ReflectedType = 1 << 3, PInfo_DeclaringType = 1 << 4, PInfo_Name = 1 << 5 } PInfo; #include "icall-table.h" #define NOHANDLES(inner) inner #define HANDLES_REUSE_WRAPPER(...) /* nothing */ // Generate prototypes for coop icall wrappers and coop icalls. #define MONO_HANDLE_REGISTER_ICALL(func, ret, nargs, argtypes) \ MONO_HANDLE_DECLARE (,,func ## _impl, ret, nargs, argtypes); \ MONO_HANDLE_REGISTER_ICALL_DECLARE_RAW (func, ret, nargs, argtypes); #define ICALL_TYPE(id, name, first) /* nothing */ #define ICALL(id, name, func) /* nothing */ #define HANDLES(id, name, func, ret, nargs, argtypes) \ MONO_HANDLE_DECLARE_RAW (id, name, func, ret, nargs, argtypes); \ MONO_HANDLE_DECLARE (id, name, func, ret, nargs, argtypes); #include "icall-def.h" #undef ICALL_TYPE #undef ICALL #undef HANDLES #undef HANDLES_REUSE_WRAPPER #undef NOHANDLES #undef MONO_HANDLE_REGISTER_ICALL // This is sorted. // grep ICALL_EXPORT | sort | uniq ICALL_EXPORT MonoAssemblyName* ves_icall_System_Reflection_AssemblyName_GetNativeName (MonoAssembly*); ICALL_EXPORT MonoBoolean ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_SufficientExecutionStack (void); ICALL_EXPORT MonoBoolean ves_icall_System_Threading_Thread_YieldInternal (void); ICALL_EXPORT MonoThread *ves_icall_System_Threading_Thread_GetCurrentThread (void); ICALL_EXPORT void ves_icall_System_ArgIterator_Setup (MonoArgIterator*, char*, char*); ICALL_EXPORT MonoType* ves_icall_System_ArgIterator_IntGetNextArgType (MonoArgIterator*); ICALL_EXPORT void ves_icall_System_ArgIterator_IntGetNextArg (MonoArgIterator*, MonoTypedRef*); ICALL_EXPORT void ves_icall_System_ArgIterator_IntGetNextArgWithType (MonoArgIterator*, MonoTypedRef*, MonoType*); ICALL_EXPORT double ves_icall_System_Math_Acos (double); ICALL_EXPORT double ves_icall_System_Math_Acosh (double); ICALL_EXPORT double ves_icall_System_Math_Asin (double); ICALL_EXPORT double ves_icall_System_Math_Asinh (double); ICALL_EXPORT double ves_icall_System_Math_Atan (double); ICALL_EXPORT double ves_icall_System_Math_Atan2 (double, double); ICALL_EXPORT double ves_icall_System_Math_Atanh (double); ICALL_EXPORT double ves_icall_System_Math_Cbrt (double); ICALL_EXPORT double ves_icall_System_Math_Ceiling (double); ICALL_EXPORT double ves_icall_System_Math_Cos (double); ICALL_EXPORT double ves_icall_System_Math_Cosh (double); ICALL_EXPORT double ves_icall_System_Math_Exp (double); ICALL_EXPORT double ves_icall_System_Math_FMod (double, double); ICALL_EXPORT double ves_icall_System_Math_Floor (double); ICALL_EXPORT double ves_icall_System_Math_Log (double); ICALL_EXPORT double ves_icall_System_Math_Log10 (double); ICALL_EXPORT double ves_icall_System_Math_ModF (double, double*); ICALL_EXPORT double ves_icall_System_Math_Pow (double, double); ICALL_EXPORT double ves_icall_System_Math_Round (double); ICALL_EXPORT double ves_icall_System_Math_Sin (double); ICALL_EXPORT double ves_icall_System_Math_Sinh (double); ICALL_EXPORT double ves_icall_System_Math_Sqrt (double); ICALL_EXPORT double ves_icall_System_Math_Tan (double); ICALL_EXPORT double ves_icall_System_Math_Tanh (double); ICALL_EXPORT float ves_icall_System_MathF_Acos (float); ICALL_EXPORT float ves_icall_System_MathF_Acosh (float); ICALL_EXPORT float ves_icall_System_MathF_Asin (float); ICALL_EXPORT float ves_icall_System_MathF_Asinh (float); ICALL_EXPORT float ves_icall_System_MathF_Atan (float); ICALL_EXPORT float ves_icall_System_MathF_Atan2 (float, float); ICALL_EXPORT float ves_icall_System_MathF_Atanh (float); ICALL_EXPORT float ves_icall_System_MathF_Cbrt (float); ICALL_EXPORT float ves_icall_System_MathF_Ceiling (float); ICALL_EXPORT float ves_icall_System_MathF_Cos (float); ICALL_EXPORT float ves_icall_System_MathF_Cosh (float); ICALL_EXPORT float ves_icall_System_MathF_Exp (float); ICALL_EXPORT float ves_icall_System_MathF_FMod (float, float); ICALL_EXPORT float ves_icall_System_MathF_Floor (float); ICALL_EXPORT float ves_icall_System_MathF_Log (float); ICALL_EXPORT float ves_icall_System_MathF_Log10 (float); ICALL_EXPORT float ves_icall_System_MathF_ModF (float, float*); ICALL_EXPORT float ves_icall_System_MathF_Pow (float, float); ICALL_EXPORT float ves_icall_System_MathF_Sin (float); ICALL_EXPORT float ves_icall_System_MathF_Sinh (float); ICALL_EXPORT float ves_icall_System_MathF_Sqrt (float); ICALL_EXPORT float ves_icall_System_MathF_Tan (float); ICALL_EXPORT float ves_icall_System_MathF_Tanh (float); ICALL_EXPORT double ves_icall_System_Math_Log2 (double); ICALL_EXPORT double ves_icall_System_Math_FusedMultiplyAdd (double, double, double); ICALL_EXPORT float ves_icall_System_MathF_Log2 (float); ICALL_EXPORT float ves_icall_System_MathF_FusedMultiplyAdd (float, float, float); ICALL_EXPORT gint32 ves_icall_System_Environment_get_ProcessorCount (void); ICALL_EXPORT gint32 ves_icall_System_Environment_get_TickCount (void); ICALL_EXPORT gint64 ves_icall_System_Environment_get_TickCount64 (void); ICALL_EXPORT gint64 ves_icall_System_GC_GetTotalMemory (MonoBoolean forceCollection); ICALL_EXPORT int ves_icall_Interop_Sys_DoubleToString (double, char*, char*, int); ICALL_EXPORT int ves_icall_System_GC_GetCollectionCount (int); ICALL_EXPORT int ves_icall_System_GC_GetMaxGeneration (void); ICALL_EXPORT gint64 ves_icall_System_GC_GetAllocatedBytesForCurrentThread (void); ICALL_EXPORT int ves_icall_get_method_attributes (MonoMethod* method); ICALL_EXPORT void ves_icall_System_Array_GetGenericValue_icall (MonoArray**, guint32, gpointer); ICALL_EXPORT void ves_icall_System_Array_SetGenericValue_icall (MonoArray**, guint32, gpointer); ICALL_EXPORT void ves_icall_System_Environment_Exit (int); ICALL_EXPORT void ves_icall_System_GC_InternalCollect (int generation); ICALL_EXPORT void ves_icall_System_GC_RecordPressure (gint64); ICALL_EXPORT void ves_icall_System_GC_WaitForPendingFinalizers (void); ICALL_EXPORT void ves_icall_System_GC_GetGCMemoryInfo (gint64*, gint64*, gint64*, gint64*, gint64*, gint64*); ICALL_EXPORT void ves_icall_System_Runtime_RuntimeImports_Memmove (guint8*, guint8*, size_t); ICALL_EXPORT void ves_icall_System_Buffer_BulkMoveWithWriteBarrier (guint8 *, guint8 *, size_t, MonoType *); ICALL_EXPORT void ves_icall_System_Runtime_RuntimeImports_ZeroMemory (guint8*, size_t); ICALL_EXPORT void ves_icall_System_Array_InternalCreate (MonoArray *volatile* result, MonoType* type, gint32 rank, gint32* pLengths, gint32* pLowerBounds); ICALL_EXPORT MonoBoolean ves_icall_System_Array_CanChangePrimitive (MonoReflectionType *volatile* ref_src_type_handle, MonoReflectionType *volatile* ref_dst_type_handle, MonoBoolean reliable); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Debugger_IsAttached_internal (void); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Debugger_IsLogging (void); ICALL_EXPORT void ves_icall_System_Diagnostics_Debugger_Log (int level, MonoString *volatile* category, MonoString *volatile* message); ICALL_EXPORT intptr_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_DefineEvent (intptr_t prov_handle, uint32_t event_id, int64_t keywords, uint32_t event_version, uint32_t level, const uint8_t *metadata, uint32_t metadata_len); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_EventPipeInternal_DeleteProvider (intptr_t prov_handle); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_EventPipeInternal_Disable (uint64_t session_id); ICALL_EXPORT uint64_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_Enable (const_gunichar2_ptr output_file, int32_t format, uint32_t circular_buffer_size_mb, const void *providers, uint32_t num_providers); ICALL_EXPORT int32_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_EventActivityIdControl (uint32_t control_code, uint8_t *activity_id); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetNextEvent (uint64_t session_id, void *instance); ICALL_EXPORT intptr_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetProvider (const_gunichar2_ptr provider_name); ICALL_EXPORT guint64 ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetRuntimeCounterValue (gint32 counter); ICALL_EXPORT MonoBoolean ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetSessionInfo (uint64_t session_id, void *session_info); ICALL_EXPORT intptr_t ves_icall_System_Diagnostics_Tracing_EventPipeInternal_GetWaitHandle (uint64_t session_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_EventPipeInternal_WriteEventData (intptr_t event_handle, void *event_data, uint32_t event_data_len, const uint8_t *activity_id, const uint8_t *related_activity_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolIODequeue (intptr_t native_overlapped, intptr_t overlapped, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolIOEnqueue (intptr_t native_overlapped, intptr_t overlapped, MonoBoolean multi_dequeues, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentAdjustment (double average_throughput, uint32_t networker_thread_count, int32_t reason, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentSample (double throughput, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadAdjustmentStats (double duration, double throughput, double threadpool_worker_thread_wait, double throughput_wave, double throughput_error_estimate, double average_throughput_error_estimate, double throughput_ratio, double confidence, double new_control_setting, uint16_t new_thread_wave_magnitude, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadStart (uint32_t active_thread_count, uint32_t retired_worker_thread_count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadStop (uint32_t active_thread_count, uint32_t retired_worker_thread_count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkerThreadWait (uint32_t active_thread_count, uint32_t retired_worker_thread_count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_System_Diagnostics_Tracing_NativeRuntimeEventSource_LogThreadPoolWorkingThreadCount (uint16_t count, uint16_t clr_instance_id); ICALL_EXPORT void ves_icall_Mono_RuntimeGPtrArrayHandle_GPtrArrayFree (GPtrArray *ptr_array); ICALL_EXPORT void ves_icall_Mono_RuntimeMarshal_FreeAssemblyName (MonoAssemblyName *aname, MonoBoolean free_struct); ICALL_EXPORT void ves_icall_Mono_SafeStringMarshal_GFree (void *c_str); ICALL_EXPORT char* ves_icall_Mono_SafeStringMarshal_StringToUtf8 (MonoString *volatile* s); ICALL_EXPORT MonoType* ves_icall_Mono_RuntimeClassHandle_GetTypeFromClass (MonoClass *klass); ICALL_EXPORT gpointer ves_icall_System_Threading_LowLevelLifoSemaphore_InitInternal (void); ICALL_EXPORT void ves_icall_System_Threading_LowLevelLifoSemaphore_DeleteInternal (gpointer sem_ptr); ICALL_EXPORT gint32 ves_icall_System_Threading_LowLevelLifoSemaphore_TimedWaitInternal (gpointer sem_ptr, gint32 timeout_ms); ICALL_EXPORT void ves_icall_System_Threading_LowLevelLifoSemaphore_ReleaseInternal (gpointer sem_ptr, gint32 count); #ifdef TARGET_AMD64 ICALL_EXPORT void ves_icall_System_Runtime_Intrinsics_X86_X86Base___cpuidex (int abcd[4], int function_id, int subfunction_id); #endif ICALL_EXPORT void ves_icall_AssemblyExtensions_ApplyUpdate (MonoAssembly *assm, gconstpointer dmeta_bytes, int32_t dmeta_len, gconstpointer dil_bytes, int32_t dil_len, gconstpointer dpdb_bytes, int32_t dpdb_len); ICALL_EXPORT gint32 ves_icall_AssemblyExtensions_ApplyUpdateEnabled (gint32 just_component_check); ICALL_EXPORT guint32 ves_icall_RuntimeTypeHandle_GetCorElementType (MonoQCallTypeHandle type_handle); ICALL_EXPORT MonoBoolean ves_icall_RuntimeTypeHandle_HasInstantiation (MonoQCallTypeHandle type_handle); ICALL_EXPORT guint32 ves_icall_RuntimeTypeHandle_GetAttributes (MonoQCallTypeHandle type_handle); ICALL_EXPORT MonoBoolean ves_icall_RuntimeTypeHandle_IsGenericTypeDefinition (MonoQCallTypeHandle type_handle); ICALL_EXPORT gint32 ves_icall_RuntimeType_GetGenericParameterPosition (MonoQCallTypeHandle type_handle); ICALL_EXPORT int ves_icall_System_Enum_InternalGetCorElementType (MonoQCallTypeHandle type_handle); ICALL_EXPORT MonoBoolean ves_icall_System_Runtime_InteropServices_Marshal_IsPinnableType (MonoQCallTypeHandle type_handle); #endif // __MONO_METADATA_ICALL_DECL_H__
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/pal/src/libunwind/include/tdep-aarch64/libunwind_i.h
/* libunwind - a platform-independent unwind library Copyright (C) 2001-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Copyright (C) 2013 Linaro Limited This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef AARCH64_LIBUNWIND_I_H #define AARCH64_LIBUNWIND_I_H /* Target-dependent definitions that are internal to libunwind but need to be shared with target-independent code. */ #include <stdlib.h> #include <libunwind.h> #include <stdatomic.h> #include "elf64.h" #include "mempool.h" #include "dwarf.h" typedef enum { UNW_AARCH64_FRAME_STANDARD = -2, /* regular fp, sp +/- offset */ UNW_AARCH64_FRAME_SIGRETURN = -1, /* special sigreturn frame */ UNW_AARCH64_FRAME_OTHER = 0, /* not cacheable (special or unrecognised) */ UNW_AARCH64_FRAME_GUESSED = 1 /* guessed it was regular, but not known */ } unw_tdep_frame_type_t; typedef struct { uint64_t virtual_address; int64_t frame_type : 2; /* unw_tdep_frame_type_t classification */ int64_t last_frame : 1; /* non-zero if last frame in chain */ int64_t cfa_reg_sp : 1; /* cfa dwarf base register is sp vs. fp */ int64_t cfa_reg_offset : 30; /* cfa is at this offset from base register value */ int64_t fp_cfa_offset : 30; /* fp saved at this offset from cfa (-1 = not saved) */ int64_t lr_cfa_offset : 30; /* lr saved at this offset from cfa (-1 = not saved) */ int64_t sp_cfa_offset : 30; /* sp saved at this offset from cfa (-1 = not saved) */ } unw_tdep_frame_t; #ifdef UNW_LOCAL_ONLY typedef unw_word_t aarch64_loc_t; #else /* !UNW_LOCAL_ONLY */ typedef struct aarch64_loc { unw_word_t w0, w1; } aarch64_loc_t; #endif /* !UNW_LOCAL_ONLY */ struct unw_addr_space { struct unw_accessors acc; int big_endian; unw_caching_policy_t caching_policy; _Atomic uint32_t cache_generation; unw_word_t dyn_generation; /* see dyn-common.h */ unw_word_t dyn_info_list_addr; /* (cached) dyn_info_list_addr */ struct dwarf_rs_cache global_cache; struct unw_debug_frame_list *debug_frames; }; struct cursor { struct dwarf_cursor dwarf; /* must be first */ unw_tdep_frame_t frame_info; /* quick tracing assist info */ enum { AARCH64_SCF_NONE, AARCH64_SCF_LINUX_RT_SIGFRAME, } sigcontext_format; unw_word_t sigcontext_addr; unw_word_t sigcontext_sp; unw_word_t sigcontext_pc; int validate; ucontext_t *uc; }; static inline ucontext_t * dwarf_get_uc(const struct dwarf_cursor *cursor) { const struct cursor *c = (struct cursor *) cursor->as_arg; return c->uc; } #define DWARF_GET_LOC(l) ((l).val) #ifdef UNW_LOCAL_ONLY # define DWARF_NULL_LOC DWARF_LOC (0, 0) # define DWARF_IS_NULL_LOC(l) (DWARF_GET_LOC (l) == 0) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r) }) # define DWARF_IS_REG_LOC(l) 0 # define DWARF_REG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_fpreg_t *) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_fpreg_t *) DWARF_GET_LOC (loc) = val; return 0; } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_word_t *) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_word_t *) DWARF_GET_LOC (loc) = val; return 0; } #else /* !UNW_LOCAL_ONLY */ # define DWARF_LOC_TYPE_FP (1 << 0) # define DWARF_LOC_TYPE_REG (1 << 1) # define DWARF_NULL_LOC DWARF_LOC (0, 0) static inline int dwarf_is_null_loc(dwarf_loc_t l) { return l.val == 0 && l.type == 0; } # define DWARF_IS_NULL_LOC(l) dwarf_is_null_loc(l) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r), .type = (t) }) # define DWARF_IS_REG_LOC(l) (((l).type & DWARF_LOC_TYPE_REG) != 0) # define DWARF_IS_FP_LOC(l) (((l).type & DWARF_LOC_TYPE_FP) != 0) # define DWARF_REG_LOC(c,r) DWARF_LOC((r), DWARF_LOC_TYPE_REG) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) DWARF_LOC((r), (DWARF_LOC_TYPE_REG \ | DWARF_LOC_TYPE_FP)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); addr = DWARF_GET_LOC (loc); if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, 0, c->as_arg)) < 0) return ret; return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 0, c->as_arg); } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); addr = DWARF_GET_LOC (loc); if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, 1, c->as_arg)) < 0) return ret; return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 1, c->as_arg); } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); } #endif /* !UNW_LOCAL_ONLY */ #define tdep_getcontext_trace UNW_ARCH_OBJ(getcontext_trace) #define tdep_init_done UNW_OBJ(init_done) #define tdep_init_mem_validate UNW_OBJ(init_mem_validate) #define tdep_init UNW_OBJ(init) /* Platforms that support UNW_INFO_FORMAT_TABLE need to define tdep_search_unwind_table. */ #define tdep_search_unwind_table dwarf_search_unwind_table #define tdep_find_unwind_table dwarf_find_unwind_table #define tdep_uc_addr UNW_OBJ(uc_addr) #define tdep_get_elf_image UNW_ARCH_OBJ(get_elf_image) #define tdep_get_exe_image_path UNW_ARCH_OBJ(get_exe_image_path) #define tdep_access_reg UNW_OBJ(access_reg) #define tdep_access_fpreg UNW_OBJ(access_fpreg) #define tdep_fetch_frame(c,ip,n) do {} while(0) #define tdep_cache_frame(c) 0 #define tdep_reuse_frame(c,frame) do {} while(0) #define tdep_stash_frame UNW_OBJ(tdep_stash_frame) #define tdep_trace UNW_OBJ(tdep_trace) #ifdef UNW_LOCAL_ONLY # define tdep_find_proc_info(c,ip,n) \ dwarf_find_proc_info((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ dwarf_put_unwind_info((as), (pi), (arg)) #else # define tdep_find_proc_info(c,ip,n) \ (*(c)->as->acc.find_proc_info)((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ (*(as)->acc.put_unwind_info)((as), (pi), (arg)) #endif #define tdep_get_as(c) ((c)->dwarf.as) #define tdep_get_as_arg(c) ((c)->dwarf.as_arg) #define tdep_get_ip(c) ((c)->dwarf.ip) #define tdep_big_endian(as) ((as)->big_endian) extern atomic_bool tdep_init_done; extern void tdep_init (void); extern void tdep_init_mem_validate (void); extern int tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip, unw_dyn_info_t *di, unw_proc_info_t *pi, int need_unwind_info, void *arg); extern void *tdep_uc_addr (unw_tdep_context_t *uc, int reg); extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff, char *path, size_t pathlen); extern void tdep_get_exe_image_path (char *path); extern int tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write); extern int tdep_access_fpreg (struct cursor *c, unw_regnum_t reg, unw_fpreg_t *valp, int write); extern int tdep_trace (unw_cursor_t *cursor, void **addresses, int *n); extern void tdep_stash_frame (struct dwarf_cursor *c, struct dwarf_reg_state *rs); extern int tdep_getcontext_trace (unw_tdep_context_t *); #endif /* AARCH64_LIBUNWIND_I_H */
/* libunwind - a platform-independent unwind library Copyright (C) 2001-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Copyright (C) 2013 Linaro Limited This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef AARCH64_LIBUNWIND_I_H #define AARCH64_LIBUNWIND_I_H /* Target-dependent definitions that are internal to libunwind but need to be shared with target-independent code. */ #include <stdlib.h> #include <libunwind.h> #include <stdatomic.h> #include "elf64.h" #include "mempool.h" #include "dwarf.h" typedef enum { UNW_AARCH64_FRAME_STANDARD = -2, /* regular fp, sp +/- offset */ UNW_AARCH64_FRAME_SIGRETURN = -1, /* special sigreturn frame */ UNW_AARCH64_FRAME_OTHER = 0, /* not cacheable (special or unrecognised) */ UNW_AARCH64_FRAME_GUESSED = 1 /* guessed it was regular, but not known */ } unw_tdep_frame_type_t; typedef struct { uint64_t virtual_address; int64_t frame_type : 2; /* unw_tdep_frame_type_t classification */ int64_t last_frame : 1; /* non-zero if last frame in chain */ int64_t cfa_reg_sp : 1; /* cfa dwarf base register is sp vs. fp */ int64_t cfa_reg_offset : 30; /* cfa is at this offset from base register value */ int64_t fp_cfa_offset : 30; /* fp saved at this offset from cfa (-1 = not saved) */ int64_t lr_cfa_offset : 30; /* lr saved at this offset from cfa (-1 = not saved) */ int64_t sp_cfa_offset : 30; /* sp saved at this offset from cfa (-1 = not saved) */ } unw_tdep_frame_t; #ifdef UNW_LOCAL_ONLY typedef unw_word_t aarch64_loc_t; #else /* !UNW_LOCAL_ONLY */ typedef struct aarch64_loc { unw_word_t w0, w1; } aarch64_loc_t; #endif /* !UNW_LOCAL_ONLY */ struct unw_addr_space { struct unw_accessors acc; int big_endian; unw_caching_policy_t caching_policy; _Atomic uint32_t cache_generation; unw_word_t dyn_generation; /* see dyn-common.h */ unw_word_t dyn_info_list_addr; /* (cached) dyn_info_list_addr */ struct dwarf_rs_cache global_cache; struct unw_debug_frame_list *debug_frames; }; struct cursor { struct dwarf_cursor dwarf; /* must be first */ unw_tdep_frame_t frame_info; /* quick tracing assist info */ enum { AARCH64_SCF_NONE, AARCH64_SCF_LINUX_RT_SIGFRAME, } sigcontext_format; unw_word_t sigcontext_addr; unw_word_t sigcontext_sp; unw_word_t sigcontext_pc; int validate; ucontext_t *uc; }; static inline ucontext_t * dwarf_get_uc(const struct dwarf_cursor *cursor) { const struct cursor *c = (struct cursor *) cursor->as_arg; return c->uc; } #define DWARF_GET_LOC(l) ((l).val) #ifdef UNW_LOCAL_ONLY # define DWARF_NULL_LOC DWARF_LOC (0, 0) # define DWARF_IS_NULL_LOC(l) (DWARF_GET_LOC (l) == 0) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r) }) # define DWARF_IS_REG_LOC(l) 0 # define DWARF_REG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_fpreg_t *) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_fpreg_t *) DWARF_GET_LOC (loc) = val; return 0; } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_word_t *) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_word_t *) DWARF_GET_LOC (loc) = val; return 0; } #else /* !UNW_LOCAL_ONLY */ # define DWARF_LOC_TYPE_FP (1 << 0) # define DWARF_LOC_TYPE_REG (1 << 1) # define DWARF_NULL_LOC DWARF_LOC (0, 0) static inline int dwarf_is_null_loc(dwarf_loc_t l) { return l.val == 0 && l.type == 0; } # define DWARF_IS_NULL_LOC(l) dwarf_is_null_loc(l) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r), .type = (t) }) # define DWARF_IS_REG_LOC(l) (((l).type & DWARF_LOC_TYPE_REG) != 0) # define DWARF_IS_FP_LOC(l) (((l).type & DWARF_LOC_TYPE_FP) != 0) # define DWARF_REG_LOC(c,r) DWARF_LOC((r), DWARF_LOC_TYPE_REG) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) DWARF_LOC((r), (DWARF_LOC_TYPE_REG \ | DWARF_LOC_TYPE_FP)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); addr = DWARF_GET_LOC (loc); if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, 0, c->as_arg)) < 0) return ret; return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 0, c->as_arg); } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); addr = DWARF_GET_LOC (loc); if ((ret = (*c->as->acc.access_mem) (c->as, addr + 0, (unw_word_t *) valp, 1, c->as_arg)) < 0) return ret; return (*c->as->acc.access_mem) (c->as, addr + 4, (unw_word_t *) valp + 1, 1, c->as_arg); } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); } #endif /* !UNW_LOCAL_ONLY */ #define tdep_getcontext_trace UNW_ARCH_OBJ(getcontext_trace) #define tdep_init_done UNW_OBJ(init_done) #define tdep_init_mem_validate UNW_OBJ(init_mem_validate) #define tdep_init UNW_OBJ(init) /* Platforms that support UNW_INFO_FORMAT_TABLE need to define tdep_search_unwind_table. */ #define tdep_search_unwind_table dwarf_search_unwind_table #define tdep_find_unwind_table dwarf_find_unwind_table #define tdep_uc_addr UNW_OBJ(uc_addr) #define tdep_get_elf_image UNW_ARCH_OBJ(get_elf_image) #define tdep_get_exe_image_path UNW_ARCH_OBJ(get_exe_image_path) #define tdep_access_reg UNW_OBJ(access_reg) #define tdep_access_fpreg UNW_OBJ(access_fpreg) #define tdep_fetch_frame(c,ip,n) do {} while(0) #define tdep_cache_frame(c) 0 #define tdep_reuse_frame(c,frame) do {} while(0) #define tdep_stash_frame UNW_OBJ(tdep_stash_frame) #define tdep_trace UNW_OBJ(tdep_trace) #ifdef UNW_LOCAL_ONLY # define tdep_find_proc_info(c,ip,n) \ dwarf_find_proc_info((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ dwarf_put_unwind_info((as), (pi), (arg)) #else # define tdep_find_proc_info(c,ip,n) \ (*(c)->as->acc.find_proc_info)((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ (*(as)->acc.put_unwind_info)((as), (pi), (arg)) #endif #define tdep_get_as(c) ((c)->dwarf.as) #define tdep_get_as_arg(c) ((c)->dwarf.as_arg) #define tdep_get_ip(c) ((c)->dwarf.ip) #define tdep_big_endian(as) ((as)->big_endian) extern atomic_bool tdep_init_done; extern void tdep_init (void); extern void tdep_init_mem_validate (void); extern int tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip, unw_dyn_info_t *di, unw_proc_info_t *pi, int need_unwind_info, void *arg); extern void *tdep_uc_addr (unw_tdep_context_t *uc, int reg); extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff, char *path, size_t pathlen); extern void tdep_get_exe_image_path (char *path); extern int tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write); extern int tdep_access_fpreg (struct cursor *c, unw_regnum_t reg, unw_fpreg_t *valp, int write); extern int tdep_trace (unw_cursor_t *cursor, void **addresses, int *n); extern void tdep_stash_frame (struct dwarf_cursor *c, struct dwarf_reg_state *rs); extern int tdep_getcontext_trace (unw_tdep_context_t *); #endif /* AARCH64_LIBUNWIND_I_H */
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/pal/src/libunwind/include/tdep-riscv/libunwind_i.h
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Modified for riscv by Zhaofeng Li <hello@zhaofeng.li> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef RISCV_LIBUNWIND_I_H #define RISCV_LIBUNWIND_I_H /* Target-dependent definitions that are internal to libunwind but need to be shared with target-independent code. */ #include <stdlib.h> #include <libunwind.h> #include <stdatomic.h> /* FIXME: Remote across address sizes? */ #if __riscv_xlen == 64 # include "elf64.h" #elif __riscv_xlen == 32 # include "elf32.h" #else # error "Unsupported address size" #endif #include "mempool.h" #include "dwarf.h" typedef struct { /* no riscv-specific fast trace */ } unw_tdep_frame_t; struct unw_addr_space { struct unw_accessors acc; int big_endian; unsigned int addr_size; unw_caching_policy_t caching_policy; _Atomic uint32_t cache_generation; unw_word_t dyn_generation; /* see dyn-common.h */ unw_word_t dyn_info_list_addr; /* (cached) dyn_info_list_addr */ struct dwarf_rs_cache global_cache; struct unw_debug_frame_list *debug_frames; }; #define tdep_big_endian(as) ((as)->big_endian) struct cursor { struct dwarf_cursor dwarf; /* must be first */ enum { RISCV_SCF_NONE, // 0 RISCV_SCF_LINUX_RT_SIGFRAME, // 1 } sigcontext_format; unw_word_t sigcontext_addr; unw_word_t sigcontext_sp; unw_word_t sigcontext_pc; int validate; ucontext_t *uc; }; static inline ucontext_t * dwarf_get_uc(const struct dwarf_cursor *cursor) { const struct cursor *c = (struct cursor *) cursor->as_arg; return c->uc; } #define DWARF_GET_LOC(l) ((l).val) #ifdef UNW_LOCAL_ONLY # define DWARF_NULL_LOC DWARF_LOC (0, 0) # define DWARF_IS_NULL_LOC(l) (DWARF_GET_LOC (l) == 0) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r) }) # define DWARF_IS_REG_LOC(l) 0 # define DWARF_REG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_fpreg_t *) (intptr_t) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_fpreg_t *) (intptr_t) DWARF_GET_LOC (loc) = val; return 0; } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_word_t *) (intptr_t) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_word_t *) (intptr_t) DWARF_GET_LOC (loc) = val; return 0; } #else /* !UNW_LOCAL_ONLY */ # define DWARF_LOC_TYPE_FP (1 << 0) # define DWARF_LOC_TYPE_REG (1 << 1) # define DWARF_NULL_LOC DWARF_LOC (0, 0) # define DWARF_IS_NULL_LOC(l) \ ({ dwarf_loc_t _l = (l); _l.val == 0 && _l.type == 0; }) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r), .type = (t) }) # define DWARF_IS_REG_LOC(l) (((l).type & DWARF_LOC_TYPE_REG) != 0) # define DWARF_IS_FP_LOC(l) (((l).type & DWARF_LOC_TYPE_FP) != 0) # define DWARF_REG_LOC(c,r) DWARF_LOC((r), DWARF_LOC_TYPE_REG) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) DWARF_LOC((r), (DWARF_LOC_TYPE_REG \ | DWARF_LOC_TYPE_FP)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); /* FIXME: unw_word_t may not be equal to FLEN */ addr = DWARF_GET_LOC (loc); #if __riscv_xlen == __riscv_flen return (*c->as->acc.access_mem) (c->as, addr, (unw_word_t *) valp, 0, c->as_arg); #else # error "FIXME" #endif } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); /* FIXME: unw_word_t may not be equal to FLEN */ addr = DWARF_GET_LOC (loc); #if __riscv_xlen == __riscv_flen return (*c->as->acc.access_mem) (c->as, addr, (unw_word_t *) valp, 1, c->as_arg); #else # error "FIXME" #endif } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); } #endif /* !UNW_LOCAL_ONLY */ #define tdep_getcontext_trace unw_getcontext #define tdep_init_mem_validate UNW_OBJ(init_mem_validate) #define tdep_init_done UNW_OBJ(init_done) #define tdep_init UNW_OBJ(init) /* Platforms that support UNW_INFO_FORMAT_TABLE need to define tdep_search_unwind_table. */ #define tdep_search_unwind_table dwarf_search_unwind_table #define tdep_find_unwind_table dwarf_find_unwind_table #define tdep_uc_addr UNW_ARCH_OBJ(uc_addr) #define tdep_get_elf_image UNW_ARCH_OBJ(get_elf_image) #define tdep_get_exe_image_path UNW_ARCH_OBJ(get_exe_image_path) #define tdep_access_reg UNW_OBJ(access_reg) #define tdep_access_fpreg UNW_OBJ(access_fpreg) #define tdep_fetch_frame(c,ip,n) do {} while(0) #define tdep_cache_frame(c) 0 #define tdep_reuse_frame(c,frame) do {} while(0) #define tdep_stash_frame(c,rs) do {} while(0) #define tdep_trace(cur,addr,n) (-UNW_ENOINFO) #ifdef UNW_LOCAL_ONLY # define tdep_find_proc_info(c,ip,n) \ dwarf_find_proc_info((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ dwarf_put_unwind_info((as), (pi), (arg)) #else # define tdep_find_proc_info(c,ip,n) \ (*(c)->as->acc.find_proc_info)((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ (*(as)->acc.put_unwind_info)((as), (pi), (arg)) #endif #define tdep_get_as(c) ((c)->dwarf.as) #define tdep_get_as_arg(c) ((c)->dwarf.as_arg) #define tdep_get_ip(c) ((c)->dwarf.ip) extern atomic_bool tdep_init_done; extern void tdep_init (void); extern void tdep_init_mem_validate (void); extern int tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip, unw_dyn_info_t *di, unw_proc_info_t *pi, int need_unwind_info, void *arg); extern void *tdep_uc_addr (ucontext_t *uc, int reg); extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff, char *path, size_t pathlen); extern void tdep_get_exe_image_path (char *path); extern int tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write); extern int tdep_access_fpreg (struct cursor *c, unw_regnum_t reg, unw_fpreg_t *valp, int write); #endif /* RISCV_LIBUNWIND_I_H */
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Modified for riscv by Zhaofeng Li <hello@zhaofeng.li> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef RISCV_LIBUNWIND_I_H #define RISCV_LIBUNWIND_I_H /* Target-dependent definitions that are internal to libunwind but need to be shared with target-independent code. */ #include <stdlib.h> #include <libunwind.h> #include <stdatomic.h> /* FIXME: Remote across address sizes? */ #if __riscv_xlen == 64 # include "elf64.h" #elif __riscv_xlen == 32 # include "elf32.h" #else # error "Unsupported address size" #endif #include "mempool.h" #include "dwarf.h" typedef struct { /* no riscv-specific fast trace */ } unw_tdep_frame_t; struct unw_addr_space { struct unw_accessors acc; int big_endian; unsigned int addr_size; unw_caching_policy_t caching_policy; _Atomic uint32_t cache_generation; unw_word_t dyn_generation; /* see dyn-common.h */ unw_word_t dyn_info_list_addr; /* (cached) dyn_info_list_addr */ struct dwarf_rs_cache global_cache; struct unw_debug_frame_list *debug_frames; }; #define tdep_big_endian(as) ((as)->big_endian) struct cursor { struct dwarf_cursor dwarf; /* must be first */ enum { RISCV_SCF_NONE, // 0 RISCV_SCF_LINUX_RT_SIGFRAME, // 1 } sigcontext_format; unw_word_t sigcontext_addr; unw_word_t sigcontext_sp; unw_word_t sigcontext_pc; int validate; ucontext_t *uc; }; static inline ucontext_t * dwarf_get_uc(const struct dwarf_cursor *cursor) { const struct cursor *c = (struct cursor *) cursor->as_arg; return c->uc; } #define DWARF_GET_LOC(l) ((l).val) #ifdef UNW_LOCAL_ONLY # define DWARF_NULL_LOC DWARF_LOC (0, 0) # define DWARF_IS_NULL_LOC(l) (DWARF_GET_LOC (l) == 0) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r) }) # define DWARF_IS_REG_LOC(l) 0 # define DWARF_REG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) (DWARF_LOC((unw_word_t) \ tdep_uc_addr(dwarf_get_uc(c), (r)), 0)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_fpreg_t *) (intptr_t) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_fpreg_t *) (intptr_t) DWARF_GET_LOC (loc) = val; return 0; } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (!DWARF_GET_LOC (loc)) return -1; *val = *(unw_word_t *) (intptr_t) DWARF_GET_LOC (loc); return 0; } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (!DWARF_GET_LOC (loc)) return -1; *(unw_word_t *) (intptr_t) DWARF_GET_LOC (loc) = val; return 0; } #else /* !UNW_LOCAL_ONLY */ # define DWARF_LOC_TYPE_FP (1 << 0) # define DWARF_LOC_TYPE_REG (1 << 1) # define DWARF_NULL_LOC DWARF_LOC (0, 0) # define DWARF_IS_NULL_LOC(l) \ ({ dwarf_loc_t _l = (l); _l.val == 0 && _l.type == 0; }) # define DWARF_LOC(r, t) ((dwarf_loc_t) { .val = (r), .type = (t) }) # define DWARF_IS_REG_LOC(l) (((l).type & DWARF_LOC_TYPE_REG) != 0) # define DWARF_IS_FP_LOC(l) (((l).type & DWARF_LOC_TYPE_FP) != 0) # define DWARF_REG_LOC(c,r) DWARF_LOC((r), DWARF_LOC_TYPE_REG) # define DWARF_MEM_LOC(c,m) DWARF_LOC ((m), 0) # define DWARF_FPREG_LOC(c,r) DWARF_LOC((r), (DWARF_LOC_TYPE_REG \ | DWARF_LOC_TYPE_FP)) static inline int dwarf_getfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t *val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); /* FIXME: unw_word_t may not be equal to FLEN */ addr = DWARF_GET_LOC (loc); #if __riscv_xlen == __riscv_flen return (*c->as->acc.access_mem) (c->as, addr, (unw_word_t *) valp, 0, c->as_arg); #else # error "FIXME" #endif } static inline int dwarf_putfp (struct dwarf_cursor *c, dwarf_loc_t loc, unw_fpreg_t val) { char *valp = (char *) &val; unw_word_t addr; int ret; if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_fpreg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); /* FIXME: unw_word_t may not be equal to FLEN */ addr = DWARF_GET_LOC (loc); #if __riscv_xlen == __riscv_flen return (*c->as->acc.access_mem) (c->as, addr, (unw_word_t *) valp, 1, c->as_arg); #else # error "FIXME" #endif } static inline int dwarf_get (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t *val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), val, 0, c->as_arg); } static inline int dwarf_put (struct dwarf_cursor *c, dwarf_loc_t loc, unw_word_t val) { if (DWARF_IS_NULL_LOC (loc)) return -UNW_EBADREG; /* If a code-generator were to save a value of type unw_word_t in a floating-point register, we would have to support this case. I suppose it could happen with MMX registers, but does it really happen? */ assert (!DWARF_IS_FP_LOC (loc)); if (DWARF_IS_REG_LOC (loc)) return (*c->as->acc.access_reg) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); else return (*c->as->acc.access_mem) (c->as, DWARF_GET_LOC (loc), &val, 1, c->as_arg); } #endif /* !UNW_LOCAL_ONLY */ #define tdep_getcontext_trace unw_getcontext #define tdep_init_mem_validate UNW_OBJ(init_mem_validate) #define tdep_init_done UNW_OBJ(init_done) #define tdep_init UNW_OBJ(init) /* Platforms that support UNW_INFO_FORMAT_TABLE need to define tdep_search_unwind_table. */ #define tdep_search_unwind_table dwarf_search_unwind_table #define tdep_find_unwind_table dwarf_find_unwind_table #define tdep_uc_addr UNW_ARCH_OBJ(uc_addr) #define tdep_get_elf_image UNW_ARCH_OBJ(get_elf_image) #define tdep_get_exe_image_path UNW_ARCH_OBJ(get_exe_image_path) #define tdep_access_reg UNW_OBJ(access_reg) #define tdep_access_fpreg UNW_OBJ(access_fpreg) #define tdep_fetch_frame(c,ip,n) do {} while(0) #define tdep_cache_frame(c) 0 #define tdep_reuse_frame(c,frame) do {} while(0) #define tdep_stash_frame(c,rs) do {} while(0) #define tdep_trace(cur,addr,n) (-UNW_ENOINFO) #ifdef UNW_LOCAL_ONLY # define tdep_find_proc_info(c,ip,n) \ dwarf_find_proc_info((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ dwarf_put_unwind_info((as), (pi), (arg)) #else # define tdep_find_proc_info(c,ip,n) \ (*(c)->as->acc.find_proc_info)((c)->as, (ip), &(c)->pi, (n), \ (c)->as_arg) # define tdep_put_unwind_info(as,pi,arg) \ (*(as)->acc.put_unwind_info)((as), (pi), (arg)) #endif #define tdep_get_as(c) ((c)->dwarf.as) #define tdep_get_as_arg(c) ((c)->dwarf.as_arg) #define tdep_get_ip(c) ((c)->dwarf.ip) extern atomic_bool tdep_init_done; extern void tdep_init (void); extern void tdep_init_mem_validate (void); extern int tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip, unw_dyn_info_t *di, unw_proc_info_t *pi, int need_unwind_info, void *arg); extern void *tdep_uc_addr (ucontext_t *uc, int reg); extern int tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, unsigned long *segbase, unsigned long *mapoff, char *path, size_t pathlen); extern void tdep_get_exe_image_path (char *path); extern int tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write); extern int tdep_access_fpreg (struct cursor *c, unw_regnum_t reg, unw_fpreg_t *valp, int write); #endif /* RISCV_LIBUNWIND_I_H */
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/Loader/classloader/generics/GenericMethods/method003.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; class Foo { public virtual T Function<T>(T i) { return i; } } public class Test_method003 { public static int counter = 0; public static bool result = true; public static void Eval(bool exp) { counter++; if (!exp) { result = exp; Console.WriteLine("Test Failed at location: " + counter); } } public static int Main() { Foo f = new Foo(); Eval(f.Function<int>(1).Equals(1)); Eval(f.Function<string>("string").Equals("string")); if (result) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; class Foo { public virtual T Function<T>(T i) { return i; } } public class Test_method003 { public static int counter = 0; public static bool result = true; public static void Eval(bool exp) { counter++; if (!exp) { result = exp; Console.WriteLine("Test Failed at location: " + counter); } } public static int Main() { Foo f = new Foo(); Eval(f.Function<int>(1).Equals(1)); Eval(f.Function<string>("string").Equals("string")); if (result) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterface.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Versioning; namespace System.Net.NetworkInformation { public abstract class NetworkInterface { /// <summary> /// Returns objects that describe the network interfaces on the local computer. /// </summary> /// <returns>An array of all network interfaces on the local computer.</returns> [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static NetworkInterface[] GetAllNetworkInterfaces() { return NetworkInterfacePal.GetAllNetworkInterfaces(); } [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static bool GetIsNetworkAvailable() { return NetworkInterfacePal.GetIsNetworkAvailable(); } [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static int IPv6LoopbackInterfaceIndex { get { return NetworkInterfacePal.IPv6LoopbackInterfaceIndex; } } [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static int LoopbackInterfaceIndex { get { return NetworkInterfacePal.LoopbackInterfaceIndex; } } public virtual string Id { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the name of the network interface. /// </summary> public virtual string Name { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the description of the network interface /// </summary> public virtual string Description { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the IP properties for this network interface. /// </summary> /// <returns>The interface's IP properties.</returns> public virtual IPInterfaceProperties GetIPProperties() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Provides Internet Protocol (IP) statistical data for this network interface. /// </summary> /// <returns>The interface's IP statistics.</returns> [UnsupportedOSPlatform("android")] public virtual IPInterfaceStatistics GetIPStatistics() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Provides Internet Protocol (IP) statistical data for this network interface. /// Despite the naming, the results are not IPv4 specific. /// Do not use this method, use GetIPStatistics instead. /// </summary> /// <returns>The interface's IP statistics.</returns> [UnsupportedOSPlatform("android")] public virtual IPv4InterfaceStatistics GetIPv4Statistics() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Gets the current operational state of the network connection. /// </summary> public virtual OperationalStatus OperationalStatus { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the speed of the interface in bits per second as reported by the interface. /// </summary> public virtual long Speed { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets a bool value that indicates whether the network interface is set to only receive data packets. /// </summary> public virtual bool IsReceiveOnly { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets a bool value that indicates whether this network interface is enabled to receive multicast packets. /// </summary> public virtual bool SupportsMulticast { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the physical address of this network interface /// </summary> /// <returns>The interface's physical address.</returns> public virtual PhysicalAddress GetPhysicalAddress() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Gets the interface type. /// </summary> public virtual NetworkInterfaceType NetworkInterfaceType { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } public virtual bool Supports(NetworkInterfaceComponent networkInterfaceComponent) { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Versioning; namespace System.Net.NetworkInformation { public abstract class NetworkInterface { /// <summary> /// Returns objects that describe the network interfaces on the local computer. /// </summary> /// <returns>An array of all network interfaces on the local computer.</returns> [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static NetworkInterface[] GetAllNetworkInterfaces() { return NetworkInterfacePal.GetAllNetworkInterfaces(); } [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static bool GetIsNetworkAvailable() { return NetworkInterfacePal.GetIsNetworkAvailable(); } [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static int IPv6LoopbackInterfaceIndex { get { return NetworkInterfacePal.IPv6LoopbackInterfaceIndex; } } [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] public static int LoopbackInterfaceIndex { get { return NetworkInterfacePal.LoopbackInterfaceIndex; } } public virtual string Id { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the name of the network interface. /// </summary> public virtual string Name { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the description of the network interface /// </summary> public virtual string Description { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the IP properties for this network interface. /// </summary> /// <returns>The interface's IP properties.</returns> public virtual IPInterfaceProperties GetIPProperties() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Provides Internet Protocol (IP) statistical data for this network interface. /// </summary> /// <returns>The interface's IP statistics.</returns> [UnsupportedOSPlatform("android")] public virtual IPInterfaceStatistics GetIPStatistics() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Provides Internet Protocol (IP) statistical data for this network interface. /// Despite the naming, the results are not IPv4 specific. /// Do not use this method, use GetIPStatistics instead. /// </summary> /// <returns>The interface's IP statistics.</returns> [UnsupportedOSPlatform("android")] public virtual IPv4InterfaceStatistics GetIPv4Statistics() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Gets the current operational state of the network connection. /// </summary> public virtual OperationalStatus OperationalStatus { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the speed of the interface in bits per second as reported by the interface. /// </summary> public virtual long Speed { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets a bool value that indicates whether the network interface is set to only receive data packets. /// </summary> public virtual bool IsReceiveOnly { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets a bool value that indicates whether this network interface is enabled to receive multicast packets. /// </summary> public virtual bool SupportsMulticast { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } /// <summary> /// Gets the physical address of this network interface /// </summary> /// <returns>The interface's physical address.</returns> public virtual PhysicalAddress GetPhysicalAddress() { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } /// <summary> /// Gets the interface type. /// </summary> public virtual NetworkInterfaceType NetworkInterfaceType { get { throw NotImplemented.ByDesignWithMessage(SR.net_PropertyNotImplementedException); } } public virtual bool Supports(NetworkInterfaceComponent networkInterfaceComponent) { throw NotImplemented.ByDesignWithMessage(SR.net_MethodNotImplementedException); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDiffieHellmanPublicKey.ExportParameters.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Formats.Asn1; namespace System.Security.Cryptography { /// <summary> /// Wrapper for public key material passed between parties during Diffie-Hellman key material generation /// </summary> public abstract partial class ECDiffieHellmanPublicKey : IDisposable { /// <summary> /// When overridden in a derived class, exports the named or explicit ECParameters for an ECCurve. /// If the curve has a name, the Curve property will contain named curve parameters, otherwise it /// will contain explicit parameters. /// </summary> /// <returns>The ECParameters representing the point on the curve for this key.</returns> public virtual ECParameters ExportParameters() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } /// <summary> /// When overridden in a derived class, exports the explicit ECParameters for an ECCurve. /// </summary> /// <returns>The ECParameters representing the point on the curve for this key, using the explicit curve format.</returns> public virtual ECParameters ExportExplicitParameters() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } /// <summary> /// Attempts to export the current key in the X.509 SubjectPublicKeyInfo format. /// </summary> /// <param name="destination">The byte span to receive the X.509 SubjectPublicKeyInfo data.</param> /// <param name="bytesWritten"> /// When this method returns, contains a value that indicates the number of bytes written to <paramref name="destination" />. /// This parameter is treated as uninitialized. /// </param> /// <returns> /// <see langword="true"/> if <paramref name="destination"/> is big enough to receive the output; /// otherwise, <see langword="false"/>. /// </returns> /// <exception cref="NotSupportedException"> /// The member <see cref="ExportParameters" /> has not been overridden in a derived class. /// </exception> /// <exception cref="ObjectDisposedException">The object has already been disposed.</exception> /// <exception cref="CryptographicException">The key is invalid and could not be exported.</exception> public virtual bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten) { ECParameters ecParameters = ExportParameters(); AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters); return writer.TryEncode(destination, out bytesWritten); } /// <summary> /// Exports the current key in the X.509 SubjectPublicKeyInfo format. /// </summary> /// <returns> /// A byte array containing the X.509 SubjectPublicKeyInfo representation of this key. /// </returns> /// <exception cref="NotSupportedException"> /// The member <see cref="ExportParameters" /> has not been overridden in a derived class. /// </exception> /// <exception cref="ObjectDisposedException">The object has already been disposed.</exception> /// <exception cref="CryptographicException">The key is invalid and could not be exported.</exception> public virtual byte[] ExportSubjectPublicKeyInfo() { ECParameters ecParameters = ExportParameters(); AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters); return writer.Encode(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Formats.Asn1; namespace System.Security.Cryptography { /// <summary> /// Wrapper for public key material passed between parties during Diffie-Hellman key material generation /// </summary> public abstract partial class ECDiffieHellmanPublicKey : IDisposable { /// <summary> /// When overridden in a derived class, exports the named or explicit ECParameters for an ECCurve. /// If the curve has a name, the Curve property will contain named curve parameters, otherwise it /// will contain explicit parameters. /// </summary> /// <returns>The ECParameters representing the point on the curve for this key.</returns> public virtual ECParameters ExportParameters() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } /// <summary> /// When overridden in a derived class, exports the explicit ECParameters for an ECCurve. /// </summary> /// <returns>The ECParameters representing the point on the curve for this key, using the explicit curve format.</returns> public virtual ECParameters ExportExplicitParameters() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } /// <summary> /// Attempts to export the current key in the X.509 SubjectPublicKeyInfo format. /// </summary> /// <param name="destination">The byte span to receive the X.509 SubjectPublicKeyInfo data.</param> /// <param name="bytesWritten"> /// When this method returns, contains a value that indicates the number of bytes written to <paramref name="destination" />. /// This parameter is treated as uninitialized. /// </param> /// <returns> /// <see langword="true"/> if <paramref name="destination"/> is big enough to receive the output; /// otherwise, <see langword="false"/>. /// </returns> /// <exception cref="NotSupportedException"> /// The member <see cref="ExportParameters" /> has not been overridden in a derived class. /// </exception> /// <exception cref="ObjectDisposedException">The object has already been disposed.</exception> /// <exception cref="CryptographicException">The key is invalid and could not be exported.</exception> public virtual bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten) { ECParameters ecParameters = ExportParameters(); AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters); return writer.TryEncode(destination, out bytesWritten); } /// <summary> /// Exports the current key in the X.509 SubjectPublicKeyInfo format. /// </summary> /// <returns> /// A byte array containing the X.509 SubjectPublicKeyInfo representation of this key. /// </returns> /// <exception cref="NotSupportedException"> /// The member <see cref="ExportParameters" /> has not been overridden in a derived class. /// </exception> /// <exception cref="ObjectDisposedException">The object has already been disposed.</exception> /// <exception cref="CryptographicException">The key is invalid and could not be exported.</exception> public virtual byte[] ExportSubjectPublicKeyInfo() { ECParameters ecParameters = ExportParameters(); AsnWriter writer = EccKeyFormatHelper.WriteSubjectPublicKeyInfo(ecParameters); return writer.Encode(); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Security.Cryptography.Algorithms/System.Security.Cryptography.Algorithms.sln
Microsoft Visual Studio Solution File, Format Version 12.00 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Security.Cryptography.Algorithms", "ref\System.Security.Cryptography.Algorithms.csproj", "{64C0BC45-368B-44E6-9E04-2F7787CDF153}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Security.Cryptography.Algorithms", "src\System.Security.Cryptography.Algorithms.csproj", "{4146BAB4-BA7C-405E-BEBC-9BE9826514BA}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ref", "ref", "{FC920C3F-3A16-4258-9DF1-3B1BB3408C69}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5D6E7D5F-CA32-4F61-8664-ED39FEFB01D1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Debug|Any CPU.Build.0 = Debug|Any CPU {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Release|Any CPU.ActiveCfg = Release|Any CPU {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Release|Any CPU.Build.0 = Release|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Debug|Any CPU.Build.0 = Debug|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Release|Any CPU.ActiveCfg = Release|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {64C0BC45-368B-44E6-9E04-2F7787CDF153} = {FC920C3F-3A16-4258-9DF1-3B1BB3408C69} {4146BAB4-BA7C-405E-BEBC-9BE9826514BA} = {5D6E7D5F-CA32-4F61-8664-ED39FEFB01D1} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {FBAD4B5E-6059-47BF-A909-9D20CE67E4E0} EndGlobalSection EndGlobal
Microsoft Visual Studio Solution File, Format Version 12.00 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Security.Cryptography.Algorithms", "ref\System.Security.Cryptography.Algorithms.csproj", "{64C0BC45-368B-44E6-9E04-2F7787CDF153}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Security.Cryptography.Algorithms", "src\System.Security.Cryptography.Algorithms.csproj", "{4146BAB4-BA7C-405E-BEBC-9BE9826514BA}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ref", "ref", "{FC920C3F-3A16-4258-9DF1-3B1BB3408C69}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{5D6E7D5F-CA32-4F61-8664-ED39FEFB01D1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Debug|Any CPU.Build.0 = Debug|Any CPU {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Release|Any CPU.ActiveCfg = Release|Any CPU {64C0BC45-368B-44E6-9E04-2F7787CDF153}.Release|Any CPU.Build.0 = Release|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Debug|Any CPU.Build.0 = Debug|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Release|Any CPU.ActiveCfg = Release|Any CPU {4146BAB4-BA7C-405E-BEBC-9BE9826514BA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {64C0BC45-368B-44E6-9E04-2F7787CDF153} = {FC920C3F-3A16-4258-9DF1-3B1BB3408C69} {4146BAB4-BA7C-405E-BEBC-9BE9826514BA} = {5D6E7D5F-CA32-4F61-8664-ED39FEFB01D1} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {FBAD4B5E-6059-47BF-A909-9D20CE67E4E0} EndGlobalSection EndGlobal
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b71999/b71999.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern legacy library mscorlib {} .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly 'b71999' {} .assembly extern xunit.core {} .class ILGEN_0xaca96c86 { .method static float64 Method_0x88567f92(native int Arg_0x0, float32 Arg_0x1) { .maxstack 3 .locals (int32 LOCAL_0x7) ldc.i4 0x6da83b8f stloc LOCAL_0x7 ldloc LOCAL_0x7 conv.r4 ret } .method static int32 Main() { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 5 ldc.i4 0x11e97b18 conv.i ldc.r4 float32(0x6f0a635d) call float64 ILGEN_0xaca96c86::Method_0x88567f92(native int Arg_0x0, float32 Arg_0x1) conv.i4 ldc.i4 1839741724 sub ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern legacy library mscorlib {} .assembly extern System.Console { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:0:0:0 } .assembly 'b71999' {} .assembly extern xunit.core {} .class ILGEN_0xaca96c86 { .method static float64 Method_0x88567f92(native int Arg_0x0, float32 Arg_0x1) { .maxstack 3 .locals (int32 LOCAL_0x7) ldc.i4 0x6da83b8f stloc LOCAL_0x7 ldloc LOCAL_0x7 conv.r4 ret } .method static int32 Main() { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 5 ldc.i4 0x11e97b18 conv.i ldc.r4 float32(0x6f0a635d) call float64 ILGEN_0xaca96c86::Method_0x88567f92(native int Arg_0x0, float32 Arg_0x1) conv.i4 ldc.i4 1839741724 sub ret } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Directed/pinvoke/sysinfo_cs.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> <!-- Test unsupported outside of windows --> <CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="sysinfo.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> <!-- Test unsupported outside of windows --> <CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="sysinfo.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest351/Generated351.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated351.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="Generated351.il" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\TestFramework\TestFramework.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/jit64/opt/cse/volatilefield.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="volatilefield.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="volatilefield.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/Common/src/Interop/Windows/NCrypt/Interop.NCryptBuffer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class NCrypt { /// <summary> /// Types of NCryptBuffers /// </summary> internal enum BufferType { KdfHashAlgorithm = 0x00000000, // KDF_HASH_ALGORITHM KdfSecretPrepend = 0x00000001, // KDF_SECRET_PREPEND KdfSecretAppend = 0x00000002, // KDF_SECRET_APPEND KdfHmacKey = 0x00000003, // KDF_HMAC_KEY KdfTlsLabel = 0x00000004, // KDF_TLS_PRF_LABEL KdfTlsSeed = 0x00000005, // KDF_TLS_PRF_SEED PkcsAlgOid = 0x00000029, // NCRYPTBUFFER_PKCS_ALG_OID, PkcsAlgParam = 0x0000002A, // NCRYPTBUFFER_PKCS_ALG_PARAM, PkcsSecret = 0x0000002E, // NCRYPTBUFFER_PKCS_SECRET, } [StructLayout(LayoutKind.Sequential)] internal struct NCryptBuffer { public int cbBuffer; public BufferType BufferType; public IntPtr pvBuffer; } [StructLayout(LayoutKind.Sequential)] internal struct NCryptBufferDesc { public int ulVersion; public int cBuffers; public IntPtr pBuffers; // NCryptBuffer[cBuffers] } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class NCrypt { /// <summary> /// Types of NCryptBuffers /// </summary> internal enum BufferType { KdfHashAlgorithm = 0x00000000, // KDF_HASH_ALGORITHM KdfSecretPrepend = 0x00000001, // KDF_SECRET_PREPEND KdfSecretAppend = 0x00000002, // KDF_SECRET_APPEND KdfHmacKey = 0x00000003, // KDF_HMAC_KEY KdfTlsLabel = 0x00000004, // KDF_TLS_PRF_LABEL KdfTlsSeed = 0x00000005, // KDF_TLS_PRF_SEED PkcsAlgOid = 0x00000029, // NCRYPTBUFFER_PKCS_ALG_OID, PkcsAlgParam = 0x0000002A, // NCRYPTBUFFER_PKCS_ALG_PARAM, PkcsSecret = 0x0000002E, // NCRYPTBUFFER_PKCS_SECRET, } [StructLayout(LayoutKind.Sequential)] internal struct NCryptBuffer { public int cbBuffer; public BufferType BufferType; public IntPtr pvBuffer; } [StructLayout(LayoutKind.Sequential)] internal struct NCryptBufferDesc { public int ulVersion; public int cBuffers; public IntPtr pBuffers; // NCryptBuffer[cBuffers] } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/mono/wasm/runtime/tsconfig.json
{ "compilerOptions": { "noImplicitAny": true, "noEmitOnError": true, "removeComments": false, "sourceMap": false, "target": "ES2018", "moduleResolution": "Node", "lib": [ "esnext", "dom" ], "strict": true, "outDir": "bin", }, "exclude": [ "dotnet.d.ts", "bin" ] }
{ "compilerOptions": { "noImplicitAny": true, "noEmitOnError": true, "removeComments": false, "sourceMap": false, "target": "ES2018", "moduleResolution": "Node", "lib": [ "esnext", "dom" ], "strict": true, "outDir": "bin", }, "exclude": [ "dotnet.d.ts", "bin" ] }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/IL_Conformance/Old/Conformance_Base/not_u8.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <RestorePackages>true</RestorePackages> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="not_u8.il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <RestorePackages>true</RestorePackages> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="not_u8.il" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcConnectionPoolProviderInfo.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Data.ProviderBase; using System.Diagnostics; namespace System.Data.Odbc { internal sealed class OdbcConnectionPoolGroupProviderInfo : DbConnectionPoolGroupProviderInfo { private string? _driverName; private string? _driverVersion; private string? _quoteChar; private char _escapeChar; private bool _hasQuoteChar; private bool _hasEscapeChar; private bool _isV3Driver; private int _supportedSQLTypes; private int _testedSQLTypes; private int _restrictedSQLBindTypes; // These, otherwise supported types, are not available for binding // flags for unsupported Attributes private bool _noCurrentCatalog; private bool _noConnectionDead; private bool _noQueryTimeout; private bool _noSqlSoptSSNoBrowseTable; private bool _noSqlSoptSSHiddenColumns; // SSS_WARNINGS_OFF private bool _noSqlCASSColumnKey; // SSS_WARNINGS_ON // flags for unsupported Functions private bool _noSqlPrimaryKeys; internal string? DriverName { get { return _driverName; } set { _driverName = value; } } internal string? DriverVersion { get { return _driverVersion; } set { _driverVersion = value; } } internal bool HasQuoteChar { // the value is set together with the QuoteChar (see set_QuoteChar); get { return _hasQuoteChar; } } internal bool HasEscapeChar { // the value is set together with the EscapeChar (see set_EscapeChar); get { return _hasEscapeChar; } } internal string QuoteChar { get { Debug.Assert(_quoteChar != null, "QuoteChar getter called but no quote char was set"); return _quoteChar; } set { _quoteChar = value; _hasQuoteChar = true; } } internal char EscapeChar { get { return _escapeChar; } set { _escapeChar = value; _hasEscapeChar = true; } } internal bool IsV3Driver { get { return _isV3Driver; } set { _isV3Driver = value; } } internal int SupportedSQLTypes { get { return _supportedSQLTypes; } set { _supportedSQLTypes = value; } } internal int TestedSQLTypes { get { return _testedSQLTypes; } set { _testedSQLTypes = value; } } internal int RestrictedSQLBindTypes { get { return _restrictedSQLBindTypes; } set { _restrictedSQLBindTypes = value; } } internal bool NoCurrentCatalog { get { return _noCurrentCatalog; } set { _noCurrentCatalog = value; } } internal bool NoConnectionDead { get { return _noConnectionDead; } set { _noConnectionDead = value; } } internal bool NoQueryTimeout { get { return _noQueryTimeout; } set { _noQueryTimeout = value; } } internal bool NoSqlSoptSSNoBrowseTable { get { return _noSqlSoptSSNoBrowseTable; } set { _noSqlSoptSSNoBrowseTable = value; } } internal bool NoSqlSoptSSHiddenColumns { get { return _noSqlSoptSSHiddenColumns; } set { _noSqlSoptSSHiddenColumns = value; } } // SSS_WARNINGS_OFF internal bool NoSqlCASSColumnKey { get { return _noSqlCASSColumnKey; } set { _noSqlCASSColumnKey = value; } } // SSS_WARNINGS_ON internal bool NoSqlPrimaryKeys { get { return _noSqlPrimaryKeys; } set { _noSqlPrimaryKeys = value; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Data.ProviderBase; using System.Diagnostics; namespace System.Data.Odbc { internal sealed class OdbcConnectionPoolGroupProviderInfo : DbConnectionPoolGroupProviderInfo { private string? _driverName; private string? _driverVersion; private string? _quoteChar; private char _escapeChar; private bool _hasQuoteChar; private bool _hasEscapeChar; private bool _isV3Driver; private int _supportedSQLTypes; private int _testedSQLTypes; private int _restrictedSQLBindTypes; // These, otherwise supported types, are not available for binding // flags for unsupported Attributes private bool _noCurrentCatalog; private bool _noConnectionDead; private bool _noQueryTimeout; private bool _noSqlSoptSSNoBrowseTable; private bool _noSqlSoptSSHiddenColumns; // SSS_WARNINGS_OFF private bool _noSqlCASSColumnKey; // SSS_WARNINGS_ON // flags for unsupported Functions private bool _noSqlPrimaryKeys; internal string? DriverName { get { return _driverName; } set { _driverName = value; } } internal string? DriverVersion { get { return _driverVersion; } set { _driverVersion = value; } } internal bool HasQuoteChar { // the value is set together with the QuoteChar (see set_QuoteChar); get { return _hasQuoteChar; } } internal bool HasEscapeChar { // the value is set together with the EscapeChar (see set_EscapeChar); get { return _hasEscapeChar; } } internal string QuoteChar { get { Debug.Assert(_quoteChar != null, "QuoteChar getter called but no quote char was set"); return _quoteChar; } set { _quoteChar = value; _hasQuoteChar = true; } } internal char EscapeChar { get { return _escapeChar; } set { _escapeChar = value; _hasEscapeChar = true; } } internal bool IsV3Driver { get { return _isV3Driver; } set { _isV3Driver = value; } } internal int SupportedSQLTypes { get { return _supportedSQLTypes; } set { _supportedSQLTypes = value; } } internal int TestedSQLTypes { get { return _testedSQLTypes; } set { _testedSQLTypes = value; } } internal int RestrictedSQLBindTypes { get { return _restrictedSQLBindTypes; } set { _restrictedSQLBindTypes = value; } } internal bool NoCurrentCatalog { get { return _noCurrentCatalog; } set { _noCurrentCatalog = value; } } internal bool NoConnectionDead { get { return _noConnectionDead; } set { _noConnectionDead = value; } } internal bool NoQueryTimeout { get { return _noQueryTimeout; } set { _noQueryTimeout = value; } } internal bool NoSqlSoptSSNoBrowseTable { get { return _noSqlSoptSSNoBrowseTable; } set { _noSqlSoptSSNoBrowseTable = value; } } internal bool NoSqlSoptSSHiddenColumns { get { return _noSqlSoptSSHiddenColumns; } set { _noSqlSoptSSHiddenColumns = value; } } // SSS_WARNINGS_OFF internal bool NoSqlCASSColumnKey { get { return _noSqlCASSColumnKey; } set { _noSqlCASSColumnKey = value; } } // SSS_WARNINGS_ON internal bool NoSqlPrimaryKeys { get { return _noSqlPrimaryKeys; } set { _noSqlPrimaryKeys = value; } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/HardwareIntrinsics/X86/Sse1/LoadHigh.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics; namespace IntelHardwareIntrinsicTest { class Program { const int Pass = 100; const int Fail = 0; static unsafe int Main(string[] args) { int testResult = Pass; if (Sse.IsSupported) { using (TestTable<float> floatTable = new TestTable<float>(new float[4] { 1, -5, 100, 0 }, new float[4] { 22, -1, -50, 0 }, new float[4])) { var vf1 = Unsafe.Read<Vector128<float>>(floatTable.inArray1Ptr); var vf2 = Sse.LoadHigh(vf1, (float*)(floatTable.inArray2Ptr)); Unsafe.Write(floatTable.outArrayPtr, vf2); if (!floatTable.CheckResult((x, y, z) => z[0] == x[0] && z[1] == x[1] && z[2] == y[0] && z[3] == y[1])) { Console.WriteLine("SSE LoadHigh failed on float:"); foreach (var item in floatTable.outArray) { Console.Write(item + ", "); } Console.WriteLine(); testResult = Fail; } } } return testResult; } public unsafe struct TestTable<T> : IDisposable where T : struct { public T[] inArray1; public T[] inArray2; public T[] outArray; public void* inArray1Ptr => inHandle1.AddrOfPinnedObject().ToPointer(); public void* inArray2Ptr => inHandle2.AddrOfPinnedObject().ToPointer(); public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer(); GCHandle inHandle1; GCHandle inHandle2; GCHandle outHandle; public TestTable(T[] a, T[] b, T[] c) { this.inArray1 = a; this.inArray2 = b; this.outArray = c; inHandle1 = GCHandle.Alloc(inArray1, GCHandleType.Pinned); inHandle2 = GCHandle.Alloc(inArray2, GCHandleType.Pinned); outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned); } public bool CheckResult(Func<T[], T[], T[], bool> check) { return check(inArray1, inArray2, outArray); } public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics; namespace IntelHardwareIntrinsicTest { class Program { const int Pass = 100; const int Fail = 0; static unsafe int Main(string[] args) { int testResult = Pass; if (Sse.IsSupported) { using (TestTable<float> floatTable = new TestTable<float>(new float[4] { 1, -5, 100, 0 }, new float[4] { 22, -1, -50, 0 }, new float[4])) { var vf1 = Unsafe.Read<Vector128<float>>(floatTable.inArray1Ptr); var vf2 = Sse.LoadHigh(vf1, (float*)(floatTable.inArray2Ptr)); Unsafe.Write(floatTable.outArrayPtr, vf2); if (!floatTable.CheckResult((x, y, z) => z[0] == x[0] && z[1] == x[1] && z[2] == y[0] && z[3] == y[1])) { Console.WriteLine("SSE LoadHigh failed on float:"); foreach (var item in floatTable.outArray) { Console.Write(item + ", "); } Console.WriteLine(); testResult = Fail; } } } return testResult; } public unsafe struct TestTable<T> : IDisposable where T : struct { public T[] inArray1; public T[] inArray2; public T[] outArray; public void* inArray1Ptr => inHandle1.AddrOfPinnedObject().ToPointer(); public void* inArray2Ptr => inHandle2.AddrOfPinnedObject().ToPointer(); public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer(); GCHandle inHandle1; GCHandle inHandle2; GCHandle outHandle; public TestTable(T[] a, T[] b, T[] c) { this.inArray1 = a; this.inArray2 = b; this.outArray = c; inHandle1 = GCHandle.Alloc(inArray1, GCHandleType.Pinned); inHandle2 = GCHandle.Alloc(inArray2, GCHandleType.Pinned); outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned); } public bool CheckResult(Func<T[], T[], T[], bool> check) { return check(inArray1, inArray2, outArray); } public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/dlls/mscordac/mscordac.src
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. EXPORTS DacDbiInterfaceInstance #ifndef TARGET_UNIX OutOfProcessFunctionTableCallback OutOfProcessFunctionTableCallbackEx OutOfProcessExceptionEventCallback OutOfProcessExceptionEventSignatureCallback #endif // TARGET_UNIX OutOfProcessExceptionEventDebuggerLaunchCallback CLRDataCreateInstance
; Licensed to the .NET Foundation under one or more agreements. ; The .NET Foundation licenses this file to you under the MIT license. EXPORTS DacDbiInterfaceInstance #ifndef TARGET_UNIX OutOfProcessFunctionTableCallback OutOfProcessFunctionTableCallbackEx OutOfProcessExceptionEventCallback OutOfProcessExceptionEventSignatureCallback #endif // TARGET_UNIX OutOfProcessExceptionEventDebuggerLaunchCallback CLRDataCreateInstance
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/readytorun/crossboundarylayout/crossboundarytest/crossboundarytest.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="c.cs" /> <Compile Include="c1.cs" /> <Compile Include="main.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\a\a.csproj"/> <ProjectReference Include="..\b\b.csproj"/> <ProjectReference Include="..\d\d.csproj"/> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <ItemGroup> <Compile Include="c.cs" /> <Compile Include="c1.cs" /> <Compile Include="main.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\a\a.csproj"/> <ProjectReference Include="..\b\b.csproj"/> <ProjectReference Include="..\d\d.csproj"/> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/Common/src/Interop/Windows/Advapi32/Interop.IsEqualDomainSid.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Advapi32 { [GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "EqualDomainSid", SetLastError = true)] internal static partial int IsEqualDomainSid( byte[] sid1, byte[] sid2, out bool result); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Advapi32 { [GeneratedDllImport(Interop.Libraries.Advapi32, EntryPoint = "EqualDomainSid", SetLastError = true)] internal static partial int IsEqualDomainSid( byte[] sid1, byte[] sid2, out bool result); } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Regression/VS-ia64-JIT/M00/b109878/b109878.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="rem_r4.il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="rem_r4.il" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Methodical/cctor/simple/prefldinit4_il_d.ilproj
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="prefldinit4.il" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk.IL"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="prefldinit4.il" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest375/Generated375.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated375 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public sequential sealed MyStruct425`2<T0, T1> extends [mscorlib]System.ValueType implements class IBase2`2<class BaseClass0,class BaseClass0>, class IBase2`2<class BaseClass1,class BaseClass0> { .pack 0 .size 1 .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "MyStruct425::Method7.3491<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot instance string ClassMethod839() cil managed noinlining { ldstr "MyStruct425::ClassMethod839.3493()" ret } .method public hidebysig newslot instance string ClassMethod840() cil managed noinlining { ldstr "MyStruct425::ClassMethod840.3494()" ret } .method public hidebysig newslot instance string ClassMethod841<M0>() cil managed noinlining { ldstr "MyStruct425::ClassMethod841.3495<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot instance string ClassMethod842<M0>() cil managed noinlining { ldstr "MyStruct425::ClassMethod842.3496<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated375 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.T.T<T0,T1,(valuetype MyStruct425`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.T.T<T0,T1,(valuetype MyStruct425`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<!!T0,!!T1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<!!T0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.A.T<T1,(valuetype MyStruct425`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.A.T<T1,(valuetype MyStruct425`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,!!T1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.A.A<(valuetype MyStruct425`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.A.A<(valuetype MyStruct425`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.A.B<(valuetype MyStruct425`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.A.B<(valuetype MyStruct425`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.B.T<T1,(valuetype MyStruct425`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.B.T<T1,(valuetype MyStruct425`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,!!T1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.B.A<(valuetype MyStruct425`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.B.A<(valuetype MyStruct425`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.B.B<(valuetype MyStruct425`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.B.B<(valuetype MyStruct425`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_1) ldloca V_1 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloca V_1 dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ToString() pop pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_2) ldloca V_2 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloca V_2 dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ToString() pop pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_3) ldloca V_3 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloca V_3 dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ToString() pop pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_4) ldloca V_4 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloca V_4 dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ToString() pop pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_5) ldloca V_5 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_6) ldloca V_6 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV12 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV13 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV14 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV15 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV16 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV17 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV18 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV19 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV20 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV21 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV22 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV23 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_7) ldloca V_7 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV24 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV24} LV24: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV25 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV25} LV25: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV26 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV26} LV26: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV27 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV27} LV27: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV28 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV28} LV28: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV29 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV29} LV29: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV30 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV30} LV30: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV31 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV31} LV31: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV32 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV32} LV32: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV33 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV33} LV33: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV34 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV34} LV34: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV35 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV35} LV35: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_8) ldloca V_8 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV36 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV36} LV36: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV37 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV37} LV37: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV38 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV38} LV38: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV39 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV39} LV39: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV40 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV40} LV40: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV41 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV41} LV41: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV42 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV42} LV42: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV43 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV43} LV43: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV44 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV44} LV44: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV45 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV45} LV45: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV46 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV46} LV46: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV47 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV47} LV47: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_9) ldloca V_9 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> .try { ldloc V_9 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_9 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_9 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_10) ldloca V_10 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> .try { ldloc V_10 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_10 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_10 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_11) ldloca V_11 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> .try { ldloc V_11 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_11 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_11 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_12) ldloca V_12 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> .try { ldloc V_12 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_12 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_12 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_13) ldloca V_13 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldnull ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_14) ldloca V_14 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldnull ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_15) ldloca V_15 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldnull ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_16) ldloca V_16 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldnull ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated375::MethodCallingTest() call void Generated375::ConstrainedCallsTest() call void Generated375::StructConstrainedInterfaceCallsTest() call void Generated375::CalliTest() ldc.i4 100 ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated375 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public sequential sealed MyStruct425`2<T0, T1> extends [mscorlib]System.ValueType implements class IBase2`2<class BaseClass0,class BaseClass0>, class IBase2`2<class BaseClass1,class BaseClass0> { .pack 0 .size 1 .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "MyStruct425::Method7.3491<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot instance string ClassMethod839() cil managed noinlining { ldstr "MyStruct425::ClassMethod839.3493()" ret } .method public hidebysig newslot instance string ClassMethod840() cil managed noinlining { ldstr "MyStruct425::ClassMethod840.3494()" ret } .method public hidebysig newslot instance string ClassMethod841<M0>() cil managed noinlining { ldstr "MyStruct425::ClassMethod841.3495<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot instance string ClassMethod842<M0>() cil managed noinlining { ldstr "MyStruct425::ClassMethod842.3496<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated375 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.T.T<T0,T1,(valuetype MyStruct425`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.T.T<T0,T1,(valuetype MyStruct425`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<!!T0,!!T1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<!!T0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.A.T<T1,(valuetype MyStruct425`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.A.T<T1,(valuetype MyStruct425`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,!!T1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.A.A<(valuetype MyStruct425`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.A.A<(valuetype MyStruct425`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.A.B<(valuetype MyStruct425`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.A.B<(valuetype MyStruct425`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass0,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.B.T<T1,(valuetype MyStruct425`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.B.T<T1,(valuetype MyStruct425`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,!!T1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.B.A<(valuetype MyStruct425`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.B.A<(valuetype MyStruct425`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct425.B.B<(valuetype MyStruct425`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 7 .locals init (string[] actualResults) ldc.i4.s 2 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct425.B.B<(valuetype MyStruct425`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 2 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. valuetype MyStruct425`2<class BaseClass1,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_1) ldloca V_1 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloca V_1 dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ToString() pop pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_2) ldloca V_2 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloca V_2 dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ToString() pop pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_3) ldloca V_3 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloca V_3 dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ToString() pop pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_4) ldloca V_4 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloca V_4 dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod839() ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod840() ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod841<object>() ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod842<object>() ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type MyStruct425" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ToString() pop pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_5) ldloca V_5 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_5 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_6) ldloca V_6 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV12 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV13 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV14 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV15 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV16 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV17 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV18 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV19 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV20 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV21 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV22 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22: .try { ldloc V_6 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV23 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_7) ldloca V_7 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV24 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV24} LV24: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV25 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV25} LV25: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV26 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV26} LV26: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV27 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV27} LV27: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV28 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV28} LV28: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV29 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV29} LV29: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV30 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV30} LV30: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV31 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV31} LV31: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV32 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV32} LV32: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV33 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV33} LV33: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV34 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV34} LV34: .try { ldloc V_7 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV35 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV35} LV35: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_8) ldloca V_8 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV36 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV36} LV36: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV37 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV37} LV37: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV38 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV38} LV38: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV39 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV39} LV39: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV40 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV40} LV40: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV41 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV41} LV41: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV42 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV42} LV42: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV43 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV43} LV43: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.A.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV44 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV44} LV44: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV45 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV45} LV45: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV46 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV46} LV46: .try { ldloc V_8 ldstr "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.IBase2.B.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV47 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV47} LV47: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_9) ldloca V_9 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> .try { ldloc V_9 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_9 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_9 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.A<valuetype MyStruct425`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_10) ldloca V_10 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> .try { ldloc V_10 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_10 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_10 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.A.B<valuetype MyStruct425`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_11) ldloca V_11 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> .try { ldloc V_11 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_11 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.T<class BaseClass0,valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_11 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.A<valuetype MyStruct425`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_12) ldloca V_12 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> .try { ldloc V_12 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_12 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.T<class BaseClass1,valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_12 ldstr "MyStruct425::Method7.3491<System.Object>()#" + "MyStruct425::Method7.3491<System.Object>()#" call void Generated375::M.MyStruct425.B.B<valuetype MyStruct425`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass0> V_13) ldloca V_13 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldnull ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct425`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct425`2<class BaseClass0,class BaseClass1> V_14) ldloca V_14 initobj valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldnull ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct425`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass0> V_15) ldloca V_15 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldnull ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct425`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct425`2<class BaseClass1,class BaseClass1> V_16) ldloca V_16 initobj valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod839() calli default string(object) ldstr "MyStruct425::ClassMethod839.3493()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod840() calli default string(object) ldstr "MyStruct425::ClassMethod840.3494()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod841<object>() calli default string(object) ldstr "MyStruct425::ClassMethod841.3495<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ClassMethod842<object>() calli default string(object) ldstr "MyStruct425::ClassMethod842.3496<System.Object>()" ldstr "valuetype MyStruct425`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldnull ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance bool valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct425`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct425`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct425::Method7.3491<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct425`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated375::MethodCallingTest() call void Generated375::ConstrainedCallsTest() call void Generated375::StructConstrainedInterfaceCallsTest() call void Generated375::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest180/Generated180.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated180 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public sequential sealed MyStruct230`2<T0, T1> extends [mscorlib]System.ValueType implements class IBase2`2<class BaseClass1,class BaseClass0> { .pack 0 .size 1 .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "MyStruct230::Method7.1738<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<[1]>() ldstr "MyStruct230::Method7.MI.1739<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated180 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.T.T<T0,T1,(valuetype MyStruct230`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.T.T<T0,T1,(valuetype MyStruct230`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<!!T0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.A.T<T1,(valuetype MyStruct230`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.A.T<T1,(valuetype MyStruct230`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.A.A<(valuetype MyStruct230`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.A.A<(valuetype MyStruct230`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass0,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.A.B<(valuetype MyStruct230`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.A.B<(valuetype MyStruct230`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass0,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.B.T<T1,(valuetype MyStruct230`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.B.T<T1,(valuetype MyStruct230`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass1,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.B.A<(valuetype MyStruct230`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.B.A<(valuetype MyStruct230`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass1,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.B.B<(valuetype MyStruct230`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.B.B<(valuetype MyStruct230`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass1,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_1) ldloca V_1 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloca V_1 dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass0> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::ToString() pop pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_2) ldloca V_2 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloca V_2 dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass1> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::ToString() pop pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_3) ldloca V_3 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloca V_3 dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass0> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::ToString() pop pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_4) ldloca V_4 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloca V_4 dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass1> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::ToString() pop pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_5) ldloca V_5 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_6) ldloca V_6 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV12 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV13 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV14 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV15 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV16 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV17 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV18 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV19 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV20 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV21 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV22 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV23 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_7) ldloca V_7 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV24 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV24} LV24: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV25 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV25} LV25: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV26 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV26} LV26: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV27 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV27} LV27: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV28 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV28} LV28: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV29 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV29} LV29: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV30 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV30} LV30: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV31 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV31} LV31: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV32 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV32} LV32: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV33 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV33} LV33: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV34 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV34} LV34: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV35 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV35} LV35: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_8) ldloca V_8 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV36 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV36} LV36: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV37 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV37} LV37: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV38 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV38} LV38: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV39 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV39} LV39: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV40 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV40} LV40: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV41 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV41} LV41: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV42 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV42} LV42: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV43 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV43} LV43: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV44 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV44} LV44: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV45 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV45} LV45: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV46 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV46} LV46: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV47 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV47} LV47: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_9) ldloca V_9 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> .try { ldloc V_9 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_9 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_9 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_10) ldloca V_10 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> .try { ldloc V_10 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_10 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_10 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_11) ldloca V_11 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> .try { ldloc V_11 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_11 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_11 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_12) ldloca V_12 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> .try { ldloc V_12 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_12 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_12 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_13) ldloca V_13 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldnull ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_14) ldloca V_14 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldnull ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_15) ldloca V_15 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldnull ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_16) ldloca V_16 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldnull ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated180::MethodCallingTest() call void Generated180::ConstrainedCallsTest() call void Generated180::StructConstrainedInterfaceCallsTest() call void Generated180::CalliTest() ldc.i4 100 ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated180 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public sequential sealed MyStruct230`2<T0, T1> extends [mscorlib]System.ValueType implements class IBase2`2<class BaseClass1,class BaseClass0> { .pack 0 .size 1 .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "MyStruct230::Method7.1738<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<[1]>() ldstr "MyStruct230::Method7.MI.1739<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance bool Equals(object obj) cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance int32 GetHashCode() cil managed { ldc.i4.0 ret } .method public hidebysig virtual instance string ToString() cil managed { ldstr "" ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated180 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.T.T<T0,T1,(valuetype MyStruct230`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.T.T<T0,T1,(valuetype MyStruct230`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<!!T0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.A.T<T1,(valuetype MyStruct230`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.A.T<T1,(valuetype MyStruct230`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass0,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.A.A<(valuetype MyStruct230`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.A.A<(valuetype MyStruct230`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass0,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.A.B<(valuetype MyStruct230`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.A.B<(valuetype MyStruct230`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass0,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.B.T<T1,(valuetype MyStruct230`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.B.T<T1,(valuetype MyStruct230`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass1,!!T1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.B.A<(valuetype MyStruct230`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.B.A<(valuetype MyStruct230`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass1,class BaseClass0> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.MyStruct230.B.B<(valuetype MyStruct230`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.MyStruct230.B.B<(valuetype MyStruct230`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. valuetype MyStruct230`2<class BaseClass1,class BaseClass1> callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_1) ldloca V_1 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloca V_1 dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass0> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::ToString() pop pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_1 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_2) ldloca V_2 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloca V_2 dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass1> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::ToString() pop pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_2 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_3) ldloca V_3 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloca V_3 dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass0> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::ToString() pop pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_3 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_4) ldloca V_4 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloca V_4 dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass1> on type MyStruct230" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup ldnull call instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Equals(object) pop dup call instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::GetHashCode() pop dup call instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::ToString() pop pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc V_4 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_5) ldloca V_5 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_5 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_6) ldloca V_6 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV12 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV12} LV12: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV13 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV13} LV13: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV14 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV14} LV14: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV15 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV15} LV15: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV16 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV16} LV16: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV17 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV17} LV17: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV18 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV18} LV18: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV19 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV19} LV19: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV20 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV20} LV20: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV21 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV21} LV21: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV22 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV22} LV22: .try { ldloc V_6 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV23 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV23} LV23: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_7) ldloca V_7 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV24 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV24} LV24: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV25 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV25} LV25: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV26 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV26} LV26: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV27 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV27} LV27: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV28 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV28} LV28: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV29 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV29} LV29: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV30 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV30} LV30: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV31 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV31} LV31: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV32 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV32} LV32: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV33 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV33} LV33: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV34 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV34} LV34: .try { ldloc V_7 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV35 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV35} LV35: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_8) ldloca V_8 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV36 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV36} LV36: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV37 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV37} LV37: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV38 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV38} LV38: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV39 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV39} LV39: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV40 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV40} LV40: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV41 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV41} LV41: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV42 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV42} LV42: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV43 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV43} LV43: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.A.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV44 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV44} LV44: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV45 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV45} LV45: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV46 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV46} LV46: .try { ldloc V_8 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.IBase2.B.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV47 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV47} LV47: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_9) ldloca V_9 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> .try { ldloc V_9 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass0,class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!2,string) leave.s LV0 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV0} LV0: .try { ldloc V_9 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!1,string) leave.s LV1 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV1} LV1: .try { ldloc V_9 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.A<valuetype MyStruct230`2<class BaseClass0,class BaseClass0>>(!!0,string) leave.s LV2 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV2} LV2: .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_10) ldloca V_10 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> .try { ldloc V_10 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass0,class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!2,string) leave.s LV3 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV3} LV3: .try { ldloc V_10 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!1,string) leave.s LV4 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV4} LV4: .try { ldloc V_10 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.A.B<valuetype MyStruct230`2<class BaseClass0,class BaseClass1>>(!!0,string) leave.s LV5 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV5} LV5: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_11) ldloca V_11 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> .try { ldloc V_11 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass1,class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!2,string) leave.s LV6 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV6} LV6: .try { ldloc V_11 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.T<class BaseClass0,valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!1,string) leave.s LV7 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV7} LV7: .try { ldloc V_11 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.A<valuetype MyStruct230`2<class BaseClass1,class BaseClass0>>(!!0,string) leave.s LV8 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV8} LV8: .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_12) ldloca V_12 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> .try { ldloc V_12 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.T.T<class BaseClass1,class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!2,string) leave.s LV9 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV9} LV9: .try { ldloc V_12 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.T<class BaseClass1,valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!1,string) leave.s LV10 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV10} LV10: .try { ldloc V_12 ldstr "MyStruct230::Method7.MI.1739<System.Object>()#" call void Generated180::M.MyStruct230.B.B<valuetype MyStruct230`2<class BaseClass1,class BaseClass1>>(!!0,string) leave.s LV11 } catch [mscorlib]System.Security.VerificationException { pop leave.s LV11} LV11: ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass0> V_13) ldloca V_13 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldnull ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass0>::ToString() calli default string(object) pop ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldloc V_13 box valuetype MyStruct230`2<class BaseClass0,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct230`2<class BaseClass0,class BaseClass1> V_14) ldloca V_14 initobj valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldnull ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass0,class BaseClass1>::ToString() calli default string(object) pop ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldloc V_14 box valuetype MyStruct230`2<class BaseClass0,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass0> V_15) ldloca V_15 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldnull ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::Equals(object) calli default bool(object,object) pop ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::GetHashCode() calli default int32(object) pop ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass0>::ToString() calli default string(object) pop ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldloc V_15 box valuetype MyStruct230`2<class BaseClass1,class BaseClass0> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) .locals init (valuetype MyStruct230`2<class BaseClass1,class BaseClass1> V_16) ldloca V_16 initobj valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.1738<System.Object>()" ldstr "valuetype MyStruct230`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldnull ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance bool valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::Equals(object) calli default bool(object,object) pop ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance int32 valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::GetHashCode() calli default int32(object) pop ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string valuetype MyStruct230`2<class BaseClass1,class BaseClass1>::ToString() calli default string(object) pop ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldloc V_16 box valuetype MyStruct230`2<class BaseClass1,class BaseClass1> ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(object) ldstr "MyStruct230::Method7.MI.1739<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type valuetype MyStruct230`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated180::MethodCallingTest() call void Generated180::ConstrainedCallsTest() call void Generated180::StructConstrainedInterfaceCallsTest() call void Generated180::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./eng/native/genmoduleindex.sh
#!/usr/bin/env bash # # Generate module index header # set -euo pipefail if [[ "$#" -lt 2 ]]; then echo "Usage: genmoduleindex.sh ModuleBinaryFile IndexHeaderFile" exit 1 fi function printIdAsBinary() { id="$1" # Print length in bytes bytesLength="${#id}" printf "0x%02x, " "$((bytesLength/2))" # Print each pair of hex digits with 0x prefix followed by a comma while [[ "$id" ]]; do printf '0x%s, ' "${id:0:2}" id=${id:2} done } case "$(uname -s)" in Darwin) cmd="dwarfdump -u $1" pattern='^UUID: ([0-9A-Fa-f\-]+)';; *) cmd="readelf -n $1" pattern='^[[:space:]]*Build ID: ([0-9A-Fa-f\-]+)';; esac while read -r line; do if [[ "$line" =~ $pattern ]]; then printIdAsBinary "${BASH_REMATCH[1]//-/}" break fi done < <(eval "$cmd") > "$2"
#!/usr/bin/env bash # # Generate module index header # set -euo pipefail if [[ "$#" -lt 2 ]]; then echo "Usage: genmoduleindex.sh ModuleBinaryFile IndexHeaderFile" exit 1 fi function printIdAsBinary() { id="$1" # Print length in bytes bytesLength="${#id}" printf "0x%02x, " "$((bytesLength/2))" # Print each pair of hex digits with 0x prefix followed by a comma while [[ "$id" ]]; do printf '0x%s, ' "${id:0:2}" id=${id:2} done } case "$(uname -s)" in Darwin) cmd="dwarfdump -u $1" pattern='^UUID: ([0-9A-Fa-f\-]+)';; *) cmd="readelf -n $1" pattern='^[[:space:]]*Build ID: ([0-9A-Fa-f\-]+)';; esac while read -r line; do if [[ "$line" =~ $pattern ]]; then printIdAsBinary "${BASH_REMATCH[1]//-/}" break fi done < <(eval "$cmd") > "$2"
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/Activity.DateTime.corefx.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Diagnostics { #pragma warning disable CA1052 // make class static partial class Activity #pragma warning restore CA1052 { /// <summary> /// Returns high resolution (~1 usec) current UTC DateTime. /// </summary> internal static DateTime GetUtcNow() { // .NET Core CLR gives accurate UtcNow return DateTime.UtcNow; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Diagnostics { #pragma warning disable CA1052 // make class static partial class Activity #pragma warning restore CA1052 { /// <summary> /// Returns high resolution (~1 usec) current UTC DateTime. /// </summary> internal static DateTime GetUtcNow() { // .NET Core CLR gives accurate UtcNow return DateTime.UtcNow; } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CanonicalXmlAttribute.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Xml; using System.Text; namespace System.Security.Cryptography.Xml { // the class that provides node subset state and canonicalization function to XmlAttribute internal sealed class CanonicalXmlAttribute : XmlAttribute, ICanonicalizableNode { private bool _isInNodeSet; public CanonicalXmlAttribute(string prefix, string localName, string namespaceURI, XmlDocument doc, bool defaultNodeSetInclusionState) : base(prefix, localName, namespaceURI, doc) { IsInNodeSet = defaultNodeSetInclusionState; } public bool IsInNodeSet { get { return _isInNodeSet; } set { _isInNodeSet = value; } } public void Write(StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc) { strBuilder.Append($" {Name}=\""); strBuilder.Append(Utils.EscapeAttributeValue(Value)); strBuilder.Append('"'); } public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { UTF8Encoding utf8 = new UTF8Encoding(false); byte[] rgbData = utf8.GetBytes(" " + Name + "=\""); hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); rgbData = utf8.GetBytes(Utils.EscapeAttributeValue(Value)); hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); rgbData = utf8.GetBytes("\""); hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Xml; using System.Text; namespace System.Security.Cryptography.Xml { // the class that provides node subset state and canonicalization function to XmlAttribute internal sealed class CanonicalXmlAttribute : XmlAttribute, ICanonicalizableNode { private bool _isInNodeSet; public CanonicalXmlAttribute(string prefix, string localName, string namespaceURI, XmlDocument doc, bool defaultNodeSetInclusionState) : base(prefix, localName, namespaceURI, doc) { IsInNodeSet = defaultNodeSetInclusionState; } public bool IsInNodeSet { get { return _isInNodeSet; } set { _isInNodeSet = value; } } public void Write(StringBuilder strBuilder, DocPosition docPos, AncestralNamespaceContextManager anc) { strBuilder.Append($" {Name}=\""); strBuilder.Append(Utils.EscapeAttributeValue(Value)); strBuilder.Append('"'); } public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { UTF8Encoding utf8 = new UTF8Encoding(false); byte[] rgbData = utf8.GetBytes(" " + Name + "=\""); hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); rgbData = utf8.GetBytes(Utils.EscapeAttributeValue(Value)); hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); rgbData = utf8.GetBytes("\""); hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Linq/tests/ChunkTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; namespace System.Linq.Tests { public class ChunkTests : EnumerableTests { [Fact] public void ThrowsOnNullSource() { int[] source = null; AssertExtensions.Throws<ArgumentNullException>("source", () => source.Chunk(5)); } [Theory] [InlineData(0)] [InlineData(-1)] public void ThrowsWhenSizeIsNonPositive(int size) { int[] source = {1}; AssertExtensions.Throws<ArgumentOutOfRangeException>("size", () => source.Chunk(size)); } [Fact] public void ChunkSourceLazily() { using IEnumerator<int[]> chunks = new FastInfiniteEnumerator<int>().Chunk(5).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {0, 0, 0, 0, 0}, chunks.Current); Assert.True(chunks.MoveNext()); } private static IEnumerable<T> ConvertToType<T>(T[] array, Type type) { return type switch { {} x when x == typeof(TestReadOnlyCollection<T>) => new TestReadOnlyCollection<T>(array), {} x when x == typeof(TestCollection<T>) => new TestCollection<T>(array), {} x when x == typeof(TestEnumerable<T>) => new TestEnumerable<T>(array), _ => throw new Exception() }; } [Theory] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestEnumerable<int>))] public void ChunkSourceRepeatCalls(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); Assert.Equal(source.Chunk(3), source.Chunk(3)); } [Theory] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestEnumerable<int>))] public void ChunkSourceEvenly(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {9999, 0, 888}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {-1, 66, -777}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {1, 2, -12345}, chunks.Current); Assert.False(chunks.MoveNext()); } [Theory] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2}, typeof(TestEnumerable<int>))] public void ChunkSourceUnevenly(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {9999, 0, 888}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {-1, 66, -777}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {1, 2}, chunks.Current); Assert.False(chunks.MoveNext()); } [Theory] [InlineData(new[] {9999, 0}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0}, typeof(TestEnumerable<int>))] public void ChunkSourceSmallerThanMaxSize(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {9999, 0}, chunks.Current); Assert.False(chunks.MoveNext()); } [Theory] [InlineData(new int[] {}, typeof(TestReadOnlyCollection<int>))] [InlineData(new int[] {}, typeof(TestCollection<int>))] [InlineData(new int[] {}, typeof(TestEnumerable<int>))] public void EmptySourceYieldsNoChunks(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); Assert.False(chunks.MoveNext()); } [Fact] public void RemovingFromSourceBeforeIterating() { var list = new List<int> { 9999, 0, 888, -1, 66, -777, 1, 2, -12345 }; IEnumerable<int[]> chunks = list.Chunk(3); list.Remove(66); Assert.Equal(new[] {new[] {9999, 0, 888}, new[] {-1, -777, 1}, new[] {2, -12345}}, chunks); } [Fact] public void AddingToSourceBeforeIterating() { var list = new List<int> { 9999, 0, 888, -1, 66, -777, 1, 2, -12345 }; IEnumerable<int[]> chunks = list.Chunk(3); list.Add(10); Assert.Equal(new[] {new[] {9999, 0, 888}, new[] {-1, 66, -777}, new[] {1, 2, -12345}, new[] {10}}, chunks); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using Xunit; namespace System.Linq.Tests { public class ChunkTests : EnumerableTests { [Fact] public void ThrowsOnNullSource() { int[] source = null; AssertExtensions.Throws<ArgumentNullException>("source", () => source.Chunk(5)); } [Theory] [InlineData(0)] [InlineData(-1)] public void ThrowsWhenSizeIsNonPositive(int size) { int[] source = {1}; AssertExtensions.Throws<ArgumentOutOfRangeException>("size", () => source.Chunk(size)); } [Fact] public void ChunkSourceLazily() { using IEnumerator<int[]> chunks = new FastInfiniteEnumerator<int>().Chunk(5).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {0, 0, 0, 0, 0}, chunks.Current); Assert.True(chunks.MoveNext()); } private static IEnumerable<T> ConvertToType<T>(T[] array, Type type) { return type switch { {} x when x == typeof(TestReadOnlyCollection<T>) => new TestReadOnlyCollection<T>(array), {} x when x == typeof(TestCollection<T>) => new TestCollection<T>(array), {} x when x == typeof(TestEnumerable<T>) => new TestEnumerable<T>(array), _ => throw new Exception() }; } [Theory] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestEnumerable<int>))] public void ChunkSourceRepeatCalls(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); Assert.Equal(source.Chunk(3), source.Chunk(3)); } [Theory] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2, -12345}, typeof(TestEnumerable<int>))] public void ChunkSourceEvenly(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {9999, 0, 888}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {-1, 66, -777}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {1, 2, -12345}, chunks.Current); Assert.False(chunks.MoveNext()); } [Theory] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0, 888, -1, 66, -777, 1, 2}, typeof(TestEnumerable<int>))] public void ChunkSourceUnevenly(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {9999, 0, 888}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {-1, 66, -777}, chunks.Current); chunks.MoveNext(); Assert.Equal(new[] {1, 2}, chunks.Current); Assert.False(chunks.MoveNext()); } [Theory] [InlineData(new[] {9999, 0}, typeof(TestReadOnlyCollection<int>))] [InlineData(new[] {9999, 0}, typeof(TestCollection<int>))] [InlineData(new[] {9999, 0}, typeof(TestEnumerable<int>))] public void ChunkSourceSmallerThanMaxSize(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); chunks.MoveNext(); Assert.Equal(new[] {9999, 0}, chunks.Current); Assert.False(chunks.MoveNext()); } [Theory] [InlineData(new int[] {}, typeof(TestReadOnlyCollection<int>))] [InlineData(new int[] {}, typeof(TestCollection<int>))] [InlineData(new int[] {}, typeof(TestEnumerable<int>))] public void EmptySourceYieldsNoChunks(int[] array, Type type) { IEnumerable<int> source = ConvertToType(array, type); using IEnumerator<int[]> chunks = source.Chunk(3).GetEnumerator(); Assert.False(chunks.MoveNext()); } [Fact] public void RemovingFromSourceBeforeIterating() { var list = new List<int> { 9999, 0, 888, -1, 66, -777, 1, 2, -12345 }; IEnumerable<int[]> chunks = list.Chunk(3); list.Remove(66); Assert.Equal(new[] {new[] {9999, 0, 888}, new[] {-1, -777, 1}, new[] {2, -12345}}, chunks); } [Fact] public void AddingToSourceBeforeIterating() { var list = new List<int> { 9999, 0, 888, -1, 66, -777, 1, 2, -12345 }; IEnumerable<int[]> chunks = list.Chunk(3); list.Add(10); Assert.Equal(new[] {new[] {9999, 0, 888}, new[] {-1, 66, -777}, new[] {1, 2, -12345}, new[] {10}}, chunks); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/jit/instrsarm64.h
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /***************************************************************************** * Arm64 instructions for JIT compiler * * id -- the enum name for the instruction * nm -- textual name (for assembly dipslay) * info -- miscellaneous instruction info (load/store/compare/ASIMD right shift) * fmt -- encoding format used by this instruction * e1 -- encoding 1 * e2 -- encoding 2 * e3 -- encoding 3 * e4 -- encoding 4 * e5 -- encoding 5 * e6 -- encoding 6 * e7 -- encoding 7 * e8 -- encoding 8 * e9 -- encoding 9 * ******************************************************************************/ #if !defined(TARGET_ARM64) #error Unexpected target type #endif #ifndef INST1 #error INST1 must be defined before including this file. #endif #ifndef INST2 #error INST2 must be defined before including this file. #endif #ifndef INST3 #error INST3 must be defined before including this file. #endif #ifndef INST4 #error INST4 must be defined before including this file. #endif #ifndef INST5 #error INST5 must be defined before including this file. #endif #ifndef INST6 #error INST6 must be defined before including this file. #endif #ifndef INST9 #error INST9 must be defined before including this file. #endif /*****************************************************************************/ /* The following is ARM64-specific */ /*****************************************************************************/ // If you're adding a new instruction: // You need not only to fill in one of these macros describing the instruction, but also: // * If the instruction writes to more than one destination register, update the function // emitInsMayWriteMultipleRegs in emitArm64.cpp. // clang-format off INST9(invalid, "INVALID", 0, IF_NONE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE) // enum name info DR_2E DR_2G DI_1B DI_1D DV_3C DV_2B DV_2C DV_2E DV_2F INST9(mov, "mov", 0, IF_EN9, 0x2A0003E0, 0x11000000, 0x52800000, 0x320003E0, 0x0EA01C00, 0x0E003C00, 0x4E001C00, 0x5E000400, 0x6E000400) // mov Rd,Rm DR_2E X0101010000mmmmm 00000011111ddddd 2A00 03E0 // mov Rd,Rn DR_2G X001000100000000 000000nnnnnddddd 1100 0000 mov to/from SP only // mov Rd,imm(i16,hw) DI_1B X10100101hwiiiii iiiiiiiiiiiddddd 5280 0000 imm(i16,hw) // mov Rd,imm(N,r,s) DI_1D X01100100Nrrrrrr ssssss11111ddddd 3200 03E0 imm(N,r,s) // mov Vd,Vn DV_3C 0Q001110101nnnnn 000111nnnnnddddd 0EA0 1C00 Vd,Vn // mov Rd,Vn[0] DV_2B 0Q001110000iiiii 001111nnnnnddddd 0E00 3C00 Rd,Vn[] (to general) // mov Vd[],Rn DV_2C 01001110000iiiii 000111nnnnnddddd 4E00 1C00 Vd[],Rn (from general) // mov Vd,Vn[] DV_2E 01011110000iiiii 000001nnnnnddddd 5E00 0400 Vd,Vn[] (scalar by element) // mov Vd[],Vn[] DV_2F 01101110000iiiii 0jjjj1nnnnnddddd 6E00 0400 Vd[],Vn[] (from/to elem) // enum name info DR_3A DR_3B DR_3C DI_2A DV_3A DV_3E INST6(add, "add", 0, IF_EN6A, 0x0B000000, 0x0B000000, 0x0B200000, 0x11000000, 0x0E208400, 0x5EE08400) // add Rd,Rn,Rm DR_3A X0001011000mmmmm 000000nnnnnddddd 0B00 0000 Rd,Rn,Rm // add Rd,Rn,(Rm,shk,imm) DR_3B X0001011sh0mmmmm ssssssnnnnnddddd 0B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // add Rd,Rn,(Rm,ext,shl) DR_3C X0001011001mmmmm ooosssnnnnnddddd 0B20 0000 ext(Rm) LSL imm(0-4) // add Rd,Rn,i12 DI_2A X0010001shiiiiii iiiiiinnnnnddddd 1100 0000 imm(i12,sh) // add Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100001nnnnnddddd 0E20 8400 Vd,Vn,Vm (vector) // add Vd,Vn,Vm DV_3E 01011110111mmmmm 100001nnnnnddddd 5EE0 8400 Vd,Vn,Vm (scalar) INST6(sub, "sub", 0, IF_EN6A, 0x4B000000, 0x4B000000, 0x4B200000, 0x51000000, 0x2E208400, 0x7EE08400) // sub Rd,Rn,Rm DR_3A X1001011000mmmmm 000000nnnnnddddd 4B00 0000 Rd,Rn,Rm // sub Rd,Rn,(Rm,shk,imm) DR_3B X1001011sh0mmmmm ssssssnnnnnddddd 4B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // sub Rd,Rn,(Rm,ext,shl) DR_3C X1001011001mmmmm ooosssnnnnnddddd 4B20 0000 ext(Rm) LSL imm(0-4) // sub Rd,Rn,i12 DI_2A X1010001shiiiiii iiiiiinnnnnddddd 5100 0000 imm(i12,sh) // sub Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100001nnnnnddddd 2E20 8400 Vd,Vn,Vm (vector) // sub Vd,Vn,Vm DV_3E 01111110111mmmmm 100001nnnnnddddd 7EE0 8400 Vd,Vn,Vm (scalar) // enum name info LS_2D LS_3F LS_2E LS_2F LS_3G LS_2G INST6(ld1, "ld1", LD, IF_EN6B, 0x0C407000, 0x0CC07000, 0x0CDF7000, 0x0D400000, 0x0DC00000, 0x0DDF0000) // LD1 (multiple structures, one register variant) // ld1 {Vt},[Xn] LS_2D 0Q00110001000000 0111ssnnnnnttttt 0C40 7000 base register // ld1 {Vt},[Xn],Xm LS_3F 0Q001100110mmmmm 0111ssnnnnnttttt 0CC0 7000 post-indexed by a register // ld1 {Vt},[Xn],#imm LS_2E 0Q00110011011111 0111ssnnnnnttttt 0CDF 7000 post-indexed by an immediate // LD1 (single structure) // ld1 {Vt}[],[Xn] LS_2F 0Q00110101000000 xx0Sssnnnnnttttt 0D40 0000 base register // ld1 {Vt}[],[Xn],Xm LS_3G 0Q001101110mmmmm xx0Sssnnnnnttttt 0DC0 0000 post-indexed by a register // ld1 {Vt}[],[Xn],#imm LS_2G 0Q00110111011111 xx0Sssnnnnnttttt 0DDF 0000 post-indexed by an immediate INST6(ld2, "ld2", LD, IF_EN6B, 0x0C408000, 0x0CC08000, 0x0CDF8000, 0x0D600000, 0x0DE00000, 0x0DFF0000) // LD2 (multiple structures) // ld2 {Vt,Vt2},[Xn] LS_2D 0Q00110001000000 1000ssnnnnnttttt 0C40 8000 base register // ld2 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100110mmmmm 1000ssnnnnnttttt 0CC0 8000 post-indexed by a register // ld2 {Vt,Vt2},[Xn],#imm LS_2E 0Q001100110mmmmm 1000ssnnnnnttttt 0CDF 8000 post-indexed by an immediate // LD2 (single structure) // ld2 {Vt,Vt2}[],[Xn] LS_2F 0Q00110101100000 xx0Sssnnnnnttttt 0D60 0000 base register // ld2 {Vt,Vt2}[],[Xn],Xm LS_3G 0Q001101111mmmmm xx0Sssnnnnnttttt 0DE0 0000 post-indexed by a register // ld2 {Vt,Vt2}[],[Xn],#imm LS_2G 0Q00110111111111 xx0Sssnnnnnttttt 0DFF 0000 post-indexed by an immediate INST6(ld3, "ld3", LD, IF_EN6B, 0x0C404000, 0x0CC04000, 0x0CDF4000, 0x0D402000, 0x0DC02000, 0x0DDF2000) // LD3 (multiple structures) // ld3 {Vt-Vt3},[Xn] LS_2D 0Q00110001000000 0100ssnnnnnttttt 0C40 4000 base register // ld3 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100110mmmmm 0100ssnnnnnttttt 0CC0 4000 post-indexed by a register // ld3 {Vt-Vt3},[Xn],#imm LS_2E 0Q001100110mmmmm 0100ssnnnnnttttt 0CDF 4000 post-indexed by an immediate // LD3 (single structure) // ld3 {Vt-Vt3}[],[Xn] LS_2F 0Q00110101000000 xx1Sssnnnnnttttt 0D40 2000 base register // ld3 {Vt-Vt3}[],[Xn],Xm LS_3G 0Q001101110mmmmm xx1Sssnnnnnttttt 0DC0 2000 post-indexed by a register // ld3 {Vt-Vt3}[],[Xn],#imm LS_2G 0Q00110111011111 xx1Sssnnnnnttttt 0DDF 2000 post-indexed by an immediate INST6(ld4, "ld4", LD, IF_EN6B, 0x0C400000, 0x0CC00000, 0x0CDF0000, 0x0D602000, 0x0DE02000, 0x0DFF2000) // LD4 (multiple structures) // ld4 {Vt-Vt4},[Xn] LS_2D 0Q00110001000000 0000ssnnnnnttttt 0C40 0000 base register // ld4 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100110mmmmm 0000ssnnnnnttttt 0CC0 0000 post-indexed by a register // ld4 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110011011111 0000ssnnnnnttttt 0CDF 0000 post-indexed by an immediate // LD4 (single structure) // ld4 {Vt-Vt4}[],[Xn] LS_2F 0Q00110101100000 xx1Sssnnnnnttttt 0D60 2000 base register // ld4 {Vt-Vt4}[],[Xn],Xm LS_3G 0Q001101111mmmmm xx1Sssnnnnnttttt 0DE0 2000 post-indexed by a register // ld4 {Vt-Vt4}[],[Xn],#imm LS_2G 0Q00110111111111 xx1Sssnnnnnttttt 0DFF 2000 post-indexed by an immediate INST6(st1, "st1", LD, IF_EN6B, 0x0C007000, 0x0C807000, 0x0C9F7000, 0x0D000000, 0x0D800000, 0x0D9F0000) // ST1 (multiple structures, one register variant) // st1 {Vt},[Xn] LS_2D 0Q00110000000000 0111ssnnnnnttttt 0C00 7000 base register // st1 {Vt},[Xn],Xm LS_3F 0Q001100100mmmmm 0111ssnnnnnttttt 0C80 7000 post-indexed by a register // st1 {Vt},[Xn],#imm LS_2E 0Q00110010011111 0111ssnnnnnttttt 0C9F 7000 post-indexed by an immediate // ST1 (single structure) // st1 {Vt}[],[Xn] LS_2F 0Q00110100000000 xx0Sssnnnnnttttt 0D00 0000 base register // st1 {Vt}[],[Xn],Xm LS_3G 0Q001101100mmmmm xx0Sssnnnnnttttt 0D80 0000 post-indexed by a register // st1 {Vt}[],[Xn],#imm LS_2G 0Q00110110011111 xx0Sssnnnnnttttt 0D9F 0000 post-indexed by an immediate INST6(st2, "st2", ST, IF_EN6B, 0x0C008000, 0x0C808000, 0x0C9F8000, 0x0D200000, 0x0DA00000, 0x0DBF0000) // ST2 (multiple structures) // st2 {Vt,Vt2},[Xn] LS_2D 0Q00110000000000 1000ssnnnnnttttt 0C00 8000 base register // st2 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100100mmmmm 1000ssnnnnnttttt 0C80 8000 post-indexed by a register // st2 {Vt,Vt2},[Xn],#imm LS_2E 0Q00110010011111 1000ssnnnnnttttt 0C9F 8000 post-indexed by an immediate // ST2 (single structure) // st2 {Vt,Vt2}[],[Xn] LS_2F 0Q00110100100000 xx0Sssnnnnnttttt 0D20 0000 base register // st2 {Vt,Vt2}[],[Xn],Xm LS_3G 0Q001101101mmmmm xx0Sssnnnnnttttt 0DA0 0000 post-indexed by a register // st2 {Vt,Vt2}[],[Xn],#imm LS_2G 0Q00110110111111 xx0Sssnnnnnttttt 0DBF 0000 post-indexed by an immediate INST6(st3, "st3", ST, IF_EN6B, 0x0C004000, 0x0C804000, 0x0C9F4000, 0x0D002000, 0x0D802000, 0x0D9F2000) // ST3 (multiple structures) // st3 {Vt-Vt3},[Xn] LS_2D 0Q00110000000000 0100ssnnnnnttttt 0C00 4000 base register // st3 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100100mmmmm 0100ssnnnnnttttt 0C80 4000 post-indexed by a register // st3 {Vt-Vt3},[Xn],#imm LS_2E 0Q00110010011111 0100ssnnnnnttttt 0C9F 4000 post-indexed by an immediate // ST3 (single structure) // st3 {Vt-Vt3}[],[Xn] LS_2F 0Q00110100000000 xx1Sssnnnnnttttt 0D00 2000 base register // st3 {Vt-Vt3}[],[Xn],Xm LS_3G 0Q001101100mmmmm xx1Sssnnnnnttttt 0D80 2000 post-indexed by a register // st3 {Vt-Vt3}[],[Xn],#imm LS_2G 0Q00110110011111 xx1Sssnnnnnttttt 0D9F 2000 post-indexed by an immediate INST6(st4, "st4", ST, IF_EN6B, 0x0C000000, 0x0C800000, 0x0C9F0000, 0x0D202000, 0x0DA02000, 0x0DBF2000) // ST4 (multiple structures) // st4 {Vt-Vt4},[Xn] LS_2D 0Q00110000000000 0000ssnnnnnttttt 0C00 0000 base register // st4 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100100mmmmm 0000ssnnnnnttttt 0C80 0000 post-indexed by a register // st4 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110010011111 0000ssnnnnnttttt 0C9F 0000 post-indexed by an immediate // ST4 (single structure) // st4 {Vt-Vt4}[],[Xn] LS_2F 0Q00110100100000 xx1Sssnnnnnttttt 0D20 2000 base register // st4 {Vt-Vt4}[],[Xn],Xm LS_3G 0Q001101101mmmmm xx1Sssnnnnnttttt 0DA0 2000 post-indexed by a register // st4 {Vt-Vt4}[],[Xn],#imm LS_2G 0Q00110110111111 xx1Sssnnnnnttttt 0DBF 2000 post-indexed by an immediate // enum name info LS_2A LS_2B LS_2C LS_3A LS_1A INST5(ldr, "ldr", LD, IF_EN5A, 0xB9400000, 0xB9400000, 0xB8400000, 0xB8600800, 0x18000000) // ldr Rt,[Xn] LS_2A 1X11100101000000 000000nnnnnttttt B940 0000 // ldr Rt,[Xn+pimm12] LS_2B 1X11100101iiiiii iiiiiinnnnnttttt B940 0000 imm(0-4095<<{2,3}) // ldr Rt,[Xn+simm9] LS_2C 1X111000010iiiii iiiiPPnnnnnttttt B840 0000 [Xn imm(-256..+255) pre/post/no inc] // ldr Rt,[Xn,(Rm,ext,shl)] LS_3A 1X111000011mmmmm oooS10nnnnnttttt B860 0800 [Xn, ext(Rm) LSL {0,2,3}] // ldr Vt/Rt,[PC+simm19<<2] LS_1A XX011V00iiiiiiii iiiiiiiiiiittttt 1800 0000 [PC +- imm(1MB)] INST5(ldrsw, "ldrsw", LD, IF_EN5A, 0xB9800000, 0xB9800000, 0xB8800000, 0xB8A00800, 0x98000000) // ldrsw Rt,[Xn] LS_2A 1011100110000000 000000nnnnnttttt B980 0000 // ldrsw Rt,[Xn+pimm12] LS_2B 1011100110iiiiii iiiiiinnnnnttttt B980 0000 imm(0-4095<<2) // ldrsw Rt,[Xn+simm9] LS_2C 10111000100iiiii iiiiPPnnnnnttttt B880 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrsw Rt,[Xn,(Rm,ext,shl)] LS_3A 10111000101mmmmm oooS10nnnnnttttt B8A0 0800 [Xn, ext(Rm) LSL {0,2}] // ldrsw Rt,[PC+simm19<<2] LS_1A 10011000iiiiiiii iiiiiiiiiiittttt 9800 0000 [PC +- imm(1MB)] // enum name info DV_2G DV_2H DV_2I DV_1A DV_1B INST5(fmov, "fmov", 0, IF_EN5B, 0x1E204000, 0x1E260000, 0x1E270000, 0x1E201000, 0x0F00F400) // fmov Vd,Vn DV_2G 000111100X100000 010000nnnnnddddd 1E20 4000 Vd,Vn (scalar) // fmov Rd,Vn DV_2H X00111100X100110 000000nnnnnddddd 1E26 0000 Rd,Vn (scalar, to general) // fmov Vd,Rn DV_2I X00111100X100111 000000nnnnnddddd 1E27 0000 Vd,Rn (scalar, from general) // fmov Vd,immfp DV_1A 000111100X1iiiii iii10000000ddddd 1E20 1000 Vd,immfp (scalar) // fmov Vd,immfp DV_1B 0QX0111100000iii 111101iiiiiddddd 0F00 F400 Vd,immfp (immediate vector) // enum name info DR_3A DR_3B DI_2C DV_3C DV_1B INST5(orr, "orr", 0, IF_EN5C, 0x2A000000, 0x2A000000, 0x32000000, 0x0EA01C00, 0x0F001400) // orr Rd,Rn,Rm DR_3A X0101010000mmmmm 000000nnnnnddddd 2A00 0000 // orr Rd,Rn,(Rm,shk,imm) DR_3B X0101010sh0mmmmm iiiiiinnnnnddddd 2A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // orr Rd,Rn,imm(N,r,s) DI_2C X01100100Nrrrrrr ssssssnnnnnddddd 3200 0000 imm(N,r,s) // orr Vd,Vn,Vm DV_3C 0Q001110101mmmmm 000111nnnnnddddd 0EA0 1C00 Vd,Vn,Vm // orr Vd,imm8 DV_1B 0Q00111100000iii ---101iiiiiddddd 0F00 1400 Vd imm8 (immediate vector) // enum name info LS_2A LS_2B LS_2C LS_3A INST4(ldrb, "ldrb", LD, IF_EN4A, 0x39400000, 0x39400000, 0x38400000, 0x38600800) // ldrb Rt,[Xn] LS_2A 0011100101000000 000000nnnnnttttt 3940 0000 // ldrb Rt,[Xn+pimm12] LS_2B 0011100101iiiiii iiiiiinnnnnttttt 3940 0000 imm(0-4095) // ldrb Rt,[Xn+simm9] LS_2C 00111000010iiiii iiiiPPnnnnnttttt 3840 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrb Rt,[Xn,(Rm,ext,shl)] LS_3A 00111000011mmmmm oooS10nnnnnttttt 3860 0800 [Xn, ext(Rm)] INST4(ldrh, "ldrh", LD, IF_EN4A, 0x79400000, 0x79400000, 0x78400000, 0x78600800) // ldrh Rt,[Xn] LS_2A 0111100101000000 000000nnnnnttttt 7940 0000 // ldrh Rt,[Xn+pimm12] LS_2B 0111100101iiiiii iiiiiinnnnnttttt 7940 0000 imm(0-4095<<1) // ldrh Rt,[Xn+simm9] LS_2C 01111000010iiiii iiiiPPnnnnnttttt 7840 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrh Rt,[Xn,(Rm,ext,shl)] LS_3A 01111000011mmmmm oooS10nnnnnttttt 7860 0800 [Xn, ext(Rm) LSL {0,1}] INST4(ldrsb, "ldrsb", LD, IF_EN4A, 0x39800000, 0x39800000, 0x38800000, 0x38A00800) // ldrsb Rt,[Xn] LS_2A 001110011X000000 000000nnnnnttttt 3980 0000 // ldrsb Rt,[Xn+pimm12] LS_2B 001110011Xiiiiii iiiiiinnnnnttttt 3980 0000 imm(0-4095) // ldrsb Rt,[Xn+simm9] LS_2C 001110001X0iiiii iiii01nnnnnttttt 3880 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrsb Rt,[Xn,(Rm,ext,shl)] LS_3A 001110001X1mmmmm oooS10nnnnnttttt 38A0 0800 [Xn, ext(Rm)] INST4(ldrsh, "ldrsh", LD, IF_EN4A, 0x79800000, 0x79800000, 0x78800000, 0x78A00800) // ldrsh Rt,[Xn] LS_2A 011110011X000000 000000nnnnnttttt 7980 0000 // ldrsh Rt,[Xn+pimm12] LS_2B 011110011Xiiiiii iiiiiinnnnnttttt 7980 0000 imm(0-4095<<1) // ldrsh Rt,[Xn+simm9] LS_2C 011110001X0iiiii iiiiPPnnnnnttttt 7880 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrsh Rt,[Xn,(Rm,ext,shl)] LS_3A 011110001X1mmmmm oooS10nnnnnttttt 78A0 0800 [Xn, ext(Rm) LSL {0,1}] INST4(str, "str", ST, IF_EN4A, 0xB9000000, 0xB9000000, 0xB8000000, 0xB8200800) // str Rt,[Xn] LS_2A 1X11100100000000 000000nnnnnttttt B900 0000 // str Rt,[Xn+pimm12] LS_2B 1X11100100iiiiii iiiiiinnnnnttttt B900 0000 imm(0-4095<<{2,3}) // str Rt,[Xn+simm9] LS_2C 1X111000000iiiii iiiiPPnnnnnttttt B800 0000 [Xn imm(-256..+255) pre/post/no inc] // str Rt,[Xn,(Rm,ext,shl)] LS_3A 1X111000001mmmmm oooS10nnnnnttttt B820 0800 [Xn, ext(Rm)] INST4(strb, "strb", ST, IF_EN4A, 0x39000000, 0x39000000, 0x38000000, 0x38200800) // strb Rt,[Xn] LS_2A 0011100100000000 000000nnnnnttttt 3900 0000 // strb Rt,[Xn+pimm12] LS_2B 0011100100iiiiii iiiiiinnnnnttttt 3900 0000 imm(0-4095) // strb Rt,[Xn+simm9] LS_2C 00111000000iiiii iiiiPPnnnnnttttt 3800 0000 [Xn imm(-256..+255) pre/post/no inc] // strb Rt,[Xn,(Rm,ext,shl)] LS_3A 00111000001mmmmm oooS10nnnnnttttt 3820 0800 [Xn, ext(Rm)] INST4(strh, "strh", ST, IF_EN4A, 0x79000000, 0x79000000, 0x78000000, 0x78200800) // strh Rt,[Xn] LS_2A 0111100100000000 000000nnnnnttttt 7900 0000 // strh Rt,[Xn+pimm12] LS_2B 0111100100iiiiii iiiiiinnnnnttttt 7900 0000 imm(0-4095<<1) // strh Rt,[Xn+simm9] LS_2C 01111000000iiiii iiiiPPnnnnnttttt 7800 0000 [Xn imm(-256..+255) pre/post/no inc] // strh Rt,[Xn,(Rm,ext,shl)] LS_3A 01111000001mmmmm oooS10nnnnnttttt 7820 0800 [Xn, ext(Rm)] // enum name info DR_3A DR_3B DR_3C DI_2A INST4(adds, "adds", 0, IF_EN4B, 0x2B000000, 0x2B000000, 0x2B200000, 0x31000000) // adds Rd,Rn,Rm DR_3A X0101011000mmmmm 000000nnnnnddddd 2B00 0000 // adds Rd,Rn,(Rm,shk,imm) DR_3B X0101011sh0mmmmm ssssssnnnnnddddd 2B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // adds Rd,Rn,(Rm,ext,shl) DR_3C X0101011001mmmmm ooosssnnnnnddddd 2B20 0000 ext(Rm) LSL imm(0-4) // adds Rd,Rn,i12 DI_2A X0110001shiiiiii iiiiiinnnnnddddd 3100 0000 imm(i12,sh) INST4(subs, "subs", 0, IF_EN4B, 0x6B000000, 0x6B000000, 0x6B200000, 0x71000000) // subs Rd,Rn,Rm DR_3A X1101011000mmmmm 000000nnnnnddddd 6B00 0000 // subs Rd,Rn,(Rm,shk,imm) DR_3B X1101011sh0mmmmm ssssssnnnnnddddd 6B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // subs Rd,Rn,(Rm,ext,shl) DR_3C X1101011001mmmmm ooosssnnnnnddddd 6B20 0000 ext(Rm) LSL imm(0-4) // subs Rd,Rn,i12 DI_2A X1110001shiiiiii iiiiiinnnnnddddd 7100 0000 imm(i12,sh) // enum name info DR_2A DR_2B DR_2C DI_1A INST4(cmp, "cmp", CMP, IF_EN4C, 0x6B00001F, 0x6B00001F, 0x6B20001F, 0x7100001F) // cmp Rn,Rm DR_2A X1101011000mmmmm 000000nnnnn11111 6B00 001F // cmp Rn,(Rm,shk,imm) DR_2B X1101011sh0mmmmm ssssssnnnnn11111 6B00 001F Rm {LSL,LSR,ASR} imm(0-63) // cmp Rn,(Rm,ext,shl) DR_2C X1101011001mmmmm ooosssnnnnn11111 6B20 001F ext(Rm) LSL imm(0-4) // cmp Rn,i12 DI_1A X111000100iiiiii iiiiiinnnnn11111 7100 001F imm(i12,sh) INST4(cmn, "cmn", CMP, IF_EN4C, 0x2B00001F, 0x2B00001F, 0x2B20001F, 0x3100001F) // cmn Rn,Rm DR_2A X0101011000mmmmm 000000nnnnn11111 2B00 001F // cmn Rn,(Rm,shk,imm) DR_2B X0101011sh0mmmmm ssssssnnnnn11111 2B00 001F Rm {LSL,LSR,ASR} imm(0-63) // cmn Rn,(Rm,ext,shl) DR_2C X0101011001mmmmm ooosssnnnnn11111 2B20 001F ext(Rm) LSL imm(0-4) // cmn Rn,i12 DI_1A X0110001shiiiiii iiiiiinnnnn11111 3100 001F imm(0-4095) // enum name info DV_3B DV_3D DV_3BI DV_3DI INST4(fmul, "fmul", 0, IF_EN4D, 0x2E20DC00, 0x1E200800, 0x0F809000, 0x5F809000) // fmul Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 110111nnnnnddddd 2E20 DC00 Vd,Vn,Vm (vector) // fmul Vd,Vn,Vm DV_3D 000111100X1mmmmm 000010nnnnnddddd 1E20 0800 Vd,Vn,Vm (scalar) // fmul Vd,Vn,Vm[] DV_3BI 0Q0011111XLmmmmm 1001H0nnnnnddddd 0F80 9000 Vd,Vn,Vm[] (vector by element) // fmul Vd,Vn,Vm[] DV_3DI 010111111XLmmmmm 1001H0nnnnnddddd 5F80 9000 Vd,Vn,Vm[] (scalar by element) INST4(fmulx, "fmulx", 0, IF_EN4D, 0x0E20DC00, 0x5E20DC00, 0x2F809000, 0x7F809000) // fmulx Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110111nnnnnddddd 0E20 DC00 Vd,Vn,Vm (vector) // fmulx Vd,Vn,Vm DV_3D 010111100X1mmmmm 110111nnnnnddddd 5E20 DC00 Vd,Vn,Vm (scalar) // fmulx Vd,Vn,Vm[] DV_3BI 0Q1011111XLmmmmm 1001H0nnnnnddddd 2F80 9000 Vd,Vn,Vm[] (vector by element) // fmulx Vd,Vn,Vm[] DV_3DI 011111111XLmmmmm 1001H0nnnnnddddd 7F80 9000 Vd,Vn,Vm[] (scalar by element) // enum name info DR_3A DR_3B DI_2C DV_3C INST4(and, "and", 0, IF_EN4E, 0x0A000000, 0x0A000000, 0x12000000, 0x0E201C00) // and Rd,Rn,Rm DR_3A X0001010000mmmmm 000000nnnnnddddd 0A00 0000 // and Rd,Rn,(Rm,shk,imm) DR_3B X0001010sh0mmmmm iiiiiinnnnnddddd 0A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // and Rd,Rn,imm(N,r,s) DI_2C X00100100Nrrrrrr ssssssnnnnnddddd 1200 0000 imm(N,r,s) // and Vd,Vn,Vm DV_3C 0Q001110001mmmmm 000111nnnnnddddd 0E20 1C00 Vd,Vn,Vm INST4(eor, "eor", 0, IF_EN4E, 0x4A000000, 0x4A000000, 0x52000000, 0x2E201C00) // eor Rd,Rn,Rm DR_3A X1001010000mmmmm 000000nnnnnddddd 4A00 0000 // eor Rd,Rn,(Rm,shk,imm) DR_3B X1001010sh0mmmmm iiiiiinnnnnddddd 4A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // eor Rd,Rn,imm(N,r,s) DI_2C X10100100Nrrrrrr ssssssnnnnnddddd 5200 0000 imm(N,r,s) // eor Vd,Vn,Vm DV_3C 0Q101110001mmmmm 000111nnnnnddddd 2E20 1C00 Vd,Vn,Vm // enum name info DR_3A DR_3B DV_3C DV_1B INST4(bic, "bic", 0, IF_EN4F, 0x0A200000, 0x0A200000, 0x0E601C00, 0x2F001400) // bic Rd,Rn,Rm DR_3A X0001010001mmmmm 000000nnnnnddddd 0A20 0000 // bic Rd,Rn,(Rm,shk,imm) DR_3B X0001010sh1mmmmm iiiiiinnnnnddddd 0A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // bic Vd,Vn,Vm DV_3C 0Q001110011mmmmm 000111nnnnnddddd 0E60 1C00 Vd,Vn,Vm // bic Vd,imm8 DV_1B 0Q10111100000iii ---101iiiiiddddd 2F00 1400 Vd imm8 (immediate vector) // enum name info DR_2E DR_2F DV_2M DV_2L INST4(neg, "neg", 0, IF_EN4G, 0x4B0003E0, 0x4B0003E0, 0x2E20B800, 0x7E20B800) // neg Rd,Rm DR_2E X1001011000mmmmm 00000011111ddddd 4B00 03E0 // neg Rd,(Rm,shk,imm) DR_2F X1001011sh0mmmmm ssssss11111ddddd 4B00 03E0 Rm {LSL,LSR,ASR} imm(0-63) // neg Vd,Vn DV_2M 0Q101110XX100000 101110nnnnnddddd 2E20 B800 Vd,Vn (vector) // neg Vd,Vn DV_2L 01111110XX100000 101110nnnnnddddd 7E20 B800 Vd,Vn (scalar) // enum name info DV_3E DV_3A DV_2L DV_2M INST4(cmeq, "cmeq", 0, IF_EN4H, 0x7EE08C00, 0x2E208C00, 0x5E209800, 0x0E209800) // cmeq Vd,Vn,Vm DV_3E 01111110111mmmmm 100011nnnnnddddd 7EE0 8C00 Vd,Vn,Vm (scalar) // cmeq Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100011nnnnnddddd 2E20 8C00 Vd,Vn,Vm (vector) // cmeq Vd,Vn,#0 DV_2L 01011110XX100000 100110nnnnnddddd 5E20 9800 Vd,Vn,#0 (scalar - with zero) // cmeq Vd,Vn,#0 DV_2M 0Q001110XX100000 100110nnnnnddddd 0E20 9800 Vd,Vn,#0 (vector - with zero) INST4(cmge, "cmge", 0, IF_EN4H, 0x5EE03C00, 0x0E203C00, 0x7E208800, 0x2E208800) // cmge Vd,Vn,Vm DV_3E 01011110111mmmmm 001111nnnnnddddd 5EE0 3C00 Vd,Vn,Vm (scalar) // cmge Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001111nnnnnddddd 0E20 3C00 Vd,Vn,Vm (vector) // cmge Vd,Vn,#0 DV_2L 01111110XX100000 100010nnnnnddddd 5E20 8800 Vd,Vn,#0 (scalar - with zero) // cmge Vd,Vn,#0 DV_2M 0Q101110XX100000 100010nnnnnddddd 2E20 8800 Vd,Vn,#0 (vector - with zero) INST4(cmgt, "cmgt", 0, IF_EN4H, 0x5EE03400, 0x0E203400, 0x5E208800, 0x0E208800) // cmgt Vd,Vn,Vm DV_3E 01011110111mmmmm 001101nnnnnddddd 5EE0 3400 Vd,Vn,Vm (scalar) // cmgt Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001101nnnnnddddd 0E20 3400 Vd,Vn,Vm (vector) // cmgt Vd,Vn,#0 DV_2L 01011110XX100000 100010nnnnnddddd 5E20 8800 Vd,Vn,#0 (scalar - with zero) // cmgt Vd,Vn,#0 DV_2M 0Q001110XX100000 101110nnnnnddddd 0E20 8800 Vd,Vn,#0 (vector - with zero) // enum name info DV_3D DV_3B DV_2G DV_2A INST4(fcmeq, "fcmeq", 0, IF_EN4I, 0x5E20E400, 0x0E20E400, 0x5EA0D800, 0x0EA0D800) // fcmeq Vd,Vn,Vm DV_3D 010111100X1mmmmm 111001nnnnnddddd 5E20 E400 Vd,Vn,Vm (scalar) // fcmeq Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 111001nnnnnddddd 0E20 E400 Vd,Vn,Vm (vector) // fcmeq Vd,Vn,#0 DV_2G 010111101X100000 110110nnnnnddddd 5EA0 D800 Vd,Vn,#0 (scalar - with zero) // fcmeq Vd,Vn,#0 DV_2A 0Q0011101X100000 110110nnnnnddddd 0EA0 D800 Vd,Vn,#0 (vector - with zero) INST4(fcmge, "fcmge", 0, IF_EN4I, 0x7E20E400, 0x2E20E400, 0x7EA0C800, 0x2EA0C800) // fcmge Vd,Vn,Vm DV_3D 011111100X1mmmmm 111001nnnnnddddd 7E20 E400 Vd,Vn,Vm (scalar) // fcmge Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111001nnnnnddddd 2E20 E400 Vd,Vn,Vm (vector) // fcmge Vd,Vn,#0 DV_2G 011111101X100000 110010nnnnnddddd 7EA0 E800 Vd,Vn,#0 (scalar - with zero) // fcmge Vd,Vn,#0 DV_2A 0Q1011101X100000 110010nnnnnddddd 2EA0 C800 Vd,Vn,#0 (vector - with zero) INST4(fcmgt, "fcmgt", 0, IF_EN4I, 0x7EA0E400, 0x2EA0E400, 0x5EA0C800, 0x0EA0C800) // fcmgt Vd,Vn,Vm DV_3D 011111101X1mmmmm 111001nnnnnddddd 7EA0 E400 Vd,Vn,Vm (scalar) // fcmgt Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 111001nnnnnddddd 2EA0 E400 Vd,Vn,Vm (vector) // fcmgt Vd,Vn,#0 DV_2G 010111101X100000 110010nnnnnddddd 5EA0 E800 Vd,Vn,#0 (scalar - with zero) // fcmgt Vd,Vn,#0 DV_2A 0Q0011101X100000 110010nnnnnddddd 0EA0 C800 Vd,Vn,#0 (vector - with zero) // enum name info DV_2N DV_2O DV_3E DV_3A INST4(sqshl, "sqshl", 0, IF_EN4J, 0x5F007400, 0x0F007400, 0x5E204C00, 0x0E204C00) // sqshl Vd,Vn,imm DV_2N 010111110iiiiiii 011101nnnnnddddd 5F00 7400 Vd Vn imm (left shift - scalar) // sqshl Vd,Vn,imm DV_2O 0Q0011110iiiiiii 011101nnnnnddddd 0F00 7400 Vd Vn imm (left shift - vector) // sqshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010011nnnnnddddd 5E20 4C00 Vd Vn Vm (scalar) // sqshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010011nnnnnddddd 0E20 4C00 Vd Vn Vm (vector) INST4(uqshl, "uqshl", 0, IF_EN4J, 0x7F007400, 0x2F007400, 0x7E204C00, 0x2E204C00) // uqshl Vd,Vn,imm DV_2N 011111110iiiiiii 011101nnnnnddddd 7F00 7400 Vd Vn imm (left shift - scalar) // uqshl Vd,Vn,imm DV_2O 0Q1011110iiiiiii 011101nnnnnddddd 2F00 7400 Vd Vn imm (left shift - vector) // uqshl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010011nnnnnddddd 7E20 4C00 Vd Vn Vm (scalar) // uqshl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010011nnnnnddddd 2E20 4C00 Vd Vn Vm (vector) // enum name info DV_3E DV_3A DV_3EI DV_3AI INST4(sqdmlal, "sqdmlal", LNG, IF_EN4K, 0x5E209000, 0x0E209000, 0x5F003000, 0x0F003000) // sqdmlal Vd,Vn,Vm DV_3E 01011110XX1mmmmm 100100nnnnnddddd 5E20 9000 Vd,Vn,Vm (scalar) // sqdmlal Vd,Vn,Vm DV_3A 00001110XX1mmmmm 100100nnnnnddddd 0E20 9000 Vd,Vn,Vm (vector) // sqdmlal Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 0011H0nnnnnddddd 5F00 3000 Vd,Vn,Vm[] (scalar by element) // sqdmlal Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0011H0nnnnnddddd 0F00 3000 Vd,Vn,Vm[] (vector by element) INST4(sqdmlsl, "sqdmlsl", LNG, IF_EN4K, 0x5E20B000, 0x0E20B000, 0x5F007000, 0x0F007000) // sqdmlsl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 101100nnnnnddddd 5E20 B000 Vd,Vn,Vm (scalar) // sqdmlsl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 101100nnnnnddddd 0E20 B000 Vd,Vn,Vm (vector) // sqdmlsl Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 0111H0nnnnnddddd 5F00 7000 Vd,Vn,Vm[] (scalar by element) // sqdmlsl Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0111H0nnnnnddddd 0F00 7000 Vd,Vn,Vm[] (vector by element) INST4(sqdmulh, "sqdmulh", 0, IF_EN4K, 0x5E20B400, 0x0E20B400, 0x5F00C000, 0x0F00C000) // sqdmulh Vd,Vn,Vm DV_3E 01011110XX1mmmmm 101101nnnnnddddd 5E20 B400 Vd,Vn,Vm (scalar) // sqdmulh Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101101nnnnnddddd 0E20 B400 Vd,Vn,Vm (vector) // sqdmulh Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 1100H0nnnnnddddd 5F00 C000 Vd,Vn,Vm[] (scalar by element) // sqdmulh Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1100H0nnnnnddddd 0F00 C000 Vd,Vn,Vm[] (vector by element) INST4(sqdmull, "sqdmull", LNG, IF_EN4K, 0x5E20D000, 0x0E20D000, 0x5F00B000, 0x0F00B000) // sqdmull Vd,Vn,Vm DV_3E 01011110XX1mmmmm 110100nnnnnddddd 5E20 D000 Vd,Vn,Vm (scalar) // sqdmull Vd,Vn,Vm DV_3A 00001110XX1mmmmm 110100nnnnnddddd 0E20 D000 Vd,Vn,Vm (vector) // sqdmull Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 1011H0nnnnnddddd 5F00 B000 Vd,Vn,Vm[] (scalar by element) // sqdmull Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 1011H0nnnnnddddd 0F00 B000 Vd,Vn,Vm[] (vector by element) INST4(sqrdmlah, "sqrdmlah", 0, IF_EN4K, 0x7E008400, 0x2E008400, 0x7F00D000, 0x2F00D000) // sqrdmlah Vd,Vn,Vm DV_3E 01111110XX0mmmmm 100001nnnnnddddd 7E00 8400 Vd,Vn,Vm (scalar) // sqrdmlah Vd,Vn,Vm DV_3A 0Q101110XX0mmmmm 100001nnnnnddddd 2E00 8400 Vd,Vn,Vm (vector) // sqrdmlah Vd,Vn,Vm[] DV_3EI 01111111XXLMmmmm 1101H0nnnnnddddd 7F00 D000 Vd,Vn,Vm[] (scalar by element) // sqrdmlah Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 1101H0nnnnnddddd 2F00 D000 Vd,Vn,Vm[] (vector by element) INST4(sqrdmlsh, "sqrdmlsh", 0, IF_EN4K, 0x7E008C00, 0x2E008C00, 0x7F00F000, 0x2F00F000) // sqrdmlsh Vd,Vn,Vm DV_3E 01111110XX0mmmmm 100011nnnnnddddd 7E00 8C00 Vd,Vn,Vm (scalar) // sqrdmlsh Vd,Vn,Vm DV_3A 0Q101110XX0mmmmm 100011nnnnnddddd 2E00 8C00 Vd,Vn,Vm (vector) // sqrdmlsh Vd,Vn,Vm[] DV_3EI 01111111XXLMmmmm 1111H0nnnnnddddd 7F00 F000 Vd,Vn,Vm[] (scalar by element) // sqrdmlsh Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 1111H0nnnnnddddd 2F00 F000 Vd,Vn,Vm[] (vector by element) INST4(sqrdmulh, "sqrdmulh", 0, IF_EN4K, 0x7E20B400, 0x2E20B400, 0x5F00D000, 0x0F00D000) // sqrdmulh Vd,Vn,Vm DV_3E 01111110XX1mmmmm 101101nnnnnddddd 7E20 B400 Vd,Vn,Vm (scalar) // sqrdmulh Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 101101nnnnnddddd 2E20 B400 Vd,Vn,Vm (vector) // sqrdmulh Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 1101H0nnnnnddddd 5F00 D000 Vd,Vn,Vm[] (scalar by element) // sqrdmulh Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1101H0nnnnnddddd 0F00 D000 Vd,Vn,Vm[] (vector by element) // enum name info DR_3A DR_3B DI_2C INST3(ands, "ands", 0, IF_EN3A, 0x6A000000, 0x6A000000, 0x72000000) // ands Rd,Rn,Rm DR_3A X1101010000mmmmm 000000nnnnnddddd 6A00 0000 // ands Rd,Rn,(Rm,shk,imm) DR_3B X1101010sh0mmmmm iiiiiinnnnnddddd 6A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // ands Rd,Rn,imm(N,r,s) DI_2C X11100100Nrrrrrr ssssssnnnnnddddd 7200 0000 imm(N,r,s) // enum name info DR_2A DR_2B DI_1C INST3(tst, "tst", 0, IF_EN3B, 0x6A00001F, 0x6A00001F, 0x7200001F) // tst Rn,Rm DR_2A X1101010000mmmmm 000000nnnnn11111 6A00 001F // tst Rn,(Rm,shk,imm) DR_2B X1101010sh0mmmmm iiiiiinnnnn11111 6A00 001F Rm {LSL,LSR,ASR,ROR} imm(0-63) // tst Rn,imm(N,r,s) DI_1C X11100100Nrrrrrr ssssssnnnnn11111 7200 001F imm(N,r,s) // enum name info DR_3A DR_3B DV_3C INST3(orn, "orn", 0, IF_EN3C, 0x2A200000, 0x2A200000, 0x0EE01C00) // orn Rd,Rn,Rm DR_3A X0101010001mmmmm 000000nnnnnddddd 2A20 0000 // orn Rd,Rn,(Rm,shk,imm) DR_3B X0101010sh1mmmmm iiiiiinnnnnddddd 2A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // orn Vd,Vn,Vm DV_3C 0Q001110111mmmmm 000111nnnnnddddd 0EE0 1C00 Vd,Vn,Vm // enum name info DV_2C DV_2D DV_2E INST3(dup, "dup", 0, IF_EN3D, 0x0E000C00, 0x0E000400, 0x5E000400) // dup Vd,Rn DV_2C 0Q001110000iiiii 000011nnnnnddddd 0E00 0C00 Vd,Rn (vector from general) // dup Vd,Vn[] DV_2D 0Q001110000iiiii 000001nnnnnddddd 0E00 0400 Vd,Vn[] (vector by element) // dup Vd,Vn[] DV_2E 01011110000iiiii 000001nnnnnddddd 5E00 0400 Vd,Vn[] (scalar by element) // enum name info DV_3B DV_3BI DV_3DI INST3(fmla, "fmla", 0, IF_EN3E, 0x0E20CC00, 0x0F801000, 0x5F801000) // fmla Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110011nnnnnddddd 0E20 CC00 Vd,Vn,Vm (vector) // fmla Vd,Vn,Vm[] DV_3BI 0Q0011111XLmmmmm 0001H0nnnnnddddd 0F80 1000 Vd,Vn,Vm[] (vector by element) // fmla Vd,Vn,Vm[] DV_3DI 010111111XLmmmmm 0001H0nnnnnddddd 5F80 1000 Vd,Vn,Vm[] (scalar by element) INST3(fmls, "fmls", 0, IF_EN3E, 0x0EA0CC00, 0x0F805000, 0x5F805000) // fmls Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 110011nnnnnddddd 0EA0 CC00 Vd,Vn,Vm (vector) // fmls Vd,Vn,Vm[] DV_3BI 0Q0011111XLmmmmm 0101H0nnnnnddddd 0F80 5000 Vd,Vn,Vm[] (vector by element) // fmls Vd,Vn,Vm[] DV_3DI 010111111XLmmmmm 0101H0nnnnnddddd 5F80 5000 Vd,Vn,Vm[] (scalar by element) // enum name info DV_2A DV_2G DV_2H INST3(fcvtas, "fcvtas", 0, IF_EN3F, 0x0E21C800, 0x5E21C800, 0x1E240000) // fcvtas Vd,Vn DV_2A 0Q0011100X100001 110010nnnnnddddd 0E21 C800 Vd,Vn (vector) // fcvtas Vd,Vn DV_2G 010111100X100001 110010nnnnnddddd 5E21 C800 Vd,Vn (scalar) // fcvtas Rd,Vn DV_2H X00111100X100100 000000nnnnnddddd 1E24 0000 Rd,Vn (scalar, to general) INST3(fcvtau, "fcvtau", 0, IF_EN3F, 0x2E21C800, 0x7E21C800, 0x1E250000) // fcvtau Vd,Vn DV_2A 0Q1011100X100001 111010nnnnnddddd 2E21 C800 Vd,Vn (vector) // fcvtau Vd,Vn DV_2G 011111100X100001 111010nnnnnddddd 7E21 C800 Vd,Vn (scalar) // fcvtau Rd,Vn DV_2H X00111100X100101 000000nnnnnddddd 1E25 0000 Rd,Vn (scalar, to general) INST3(fcvtms, "fcvtms", 0, IF_EN3F, 0x0E21B800, 0x5E21B800, 0x1E300000) // fcvtms Vd,Vn DV_2A 0Q0011100X100001 101110nnnnnddddd 0E21 B800 Vd,Vn (vector) // fcvtms Vd,Vn DV_2G 010111100X100001 101110nnnnnddddd 5E21 B800 Vd,Vn (scalar) // fcvtms Rd,Vn DV_2H X00111100X110000 000000nnnnnddddd 1E30 0000 Rd,Vn (scalar, to general) INST3(fcvtmu, "fcvtmu", 0, IF_EN3F, 0x2E21B800, 0x7E21B800, 0x1E310000) // fcvtmu Vd,Vn DV_2A 0Q1011100X100001 101110nnnnnddddd 2E21 B800 Vd,Vn (vector) // fcvtmu Vd,Vn DV_2G 011111100X100001 101110nnnnnddddd 7E21 B800 Vd,Vn (scalar) // fcvtmu Rd,Vn DV_2H X00111100X110001 000000nnnnnddddd 1E31 0000 Rd,Vn (scalar, to general) INST3(fcvtns, "fcvtns", 0, IF_EN3F, 0x0E21A800, 0x5E21A800, 0x1E200000) // fcvtns Vd,Vn DV_2A 0Q0011100X100001 101010nnnnnddddd 0E21 A800 Vd,Vn (vector) // fcvtns Vd,Vn DV_2G 010111100X100001 101010nnnnnddddd 5E21 A800 Vd,Vn (scalar) // fcvtns Rd,Vn DV_2H X00111100X100000 000000nnnnnddddd 1E20 0000 Rd,Vn (scalar, to general) INST3(fcvtnu, "fcvtnu", 0, IF_EN3F, 0x2E21A800, 0x7E21A800, 0x1E210000) // fcvtnu Vd,Vn DV_2A 0Q1011100X100001 101010nnnnnddddd 2E21 A800 Vd,Vn (vector) // fcvtnu Vd,Vn DV_2G 011111100X100001 101010nnnnnddddd 7E21 A800 Vd,Vn (scalar) // fcvtnu Rd,Vn DV_2H X00111100X100001 000000nnnnnddddd 1E21 0000 Rd,Vn (scalar, to general) INST3(fcvtps, "fcvtps", 0, IF_EN3F, 0x0EA1A800, 0x5EA1A800, 0x1E280000) // fcvtps Vd,Vn DV_2A 0Q0011101X100001 101010nnnnnddddd 0EA1 A800 Vd,Vn (vector) // fcvtps Vd,Vn DV_2G 010111101X100001 101010nnnnnddddd 5EA1 A800 Vd,Vn (scalar) // fcvtps Rd,Vn DV_2H X00111100X101000 000000nnnnnddddd 1E28 0000 Rd,Vn (scalar, to general) INST3(fcvtpu, "fcvtpu", 0, IF_EN3F, 0x2EA1A800, 0x7EA1A800, 0x1E290000) // fcvtpu Vd,Vn DV_2A 0Q1011101X100001 101010nnnnnddddd 2EA1 A800 Vd,Vn (vector) // fcvtpu Vd,Vn DV_2G 011111101X100001 101010nnnnnddddd 7EA1 A800 Vd,Vn (scalar) // fcvtpu Rd,Vn DV_2H X00111100X101001 000000nnnnnddddd 1E29 0000 Rd,Vn (scalar, to general) INST3(fcvtzs, "fcvtzs", 0, IF_EN3F, 0x0EA1B800, 0x5EA1B800, 0x1E380000) // fcvtzs Vd,Vn DV_2A 0Q0011101X100001 101110nnnnnddddd 0EA1 B800 Vd,Vn (vector) // fcvtzs Vd,Vn DV_2G 010111101X100001 101110nnnnnddddd 5EA1 B800 Vd,Vn (scalar) // fcvtzs Rd,Vn DV_2H X00111100X111000 000000nnnnnddddd 1E38 0000 Rd,Vn (scalar, to general) INST3(fcvtzu, "fcvtzu", 0, IF_EN3F, 0x2EA1B800, 0x7EA1B800, 0x1E390000) // fcvtzu Vd,Vn DV_2A 0Q1011101X100001 101110nnnnnddddd 2EA1 B800 Vd,Vn (vector) // fcvtzu Vd,Vn DV_2G 011111101X100001 101110nnnnnddddd 7EA1 B800 Vd,Vn (scalar) // fcvtzu Rd,Vn DV_2H X00111100X111001 000000nnnnnddddd 1E39 0000 Rd,Vn (scalar, to general) // enum name info DV_2A DV_2G DV_2I INST3(scvtf, "scvtf", 0, IF_EN3G, 0x0E21D800, 0x5E21D800, 0x1E220000) // scvtf Vd,Vn DV_2A 0Q0011100X100001 110110nnnnnddddd 0E21 D800 Vd,Vn (vector) // scvtf Vd,Vn DV_2G 010111100X100001 110110nnnnnddddd 7E21 D800 Vd,Vn (scalar) // scvtf Rd,Vn DV_2I X00111100X100010 000000nnnnnddddd 1E22 0000 Vd,Rn (scalar, from general) INST3(ucvtf, "ucvtf", 0, IF_EN3G, 0x2E21D800, 0x7E21D800, 0x1E230000) // ucvtf Vd,Vn DV_2A 0Q1011100X100001 110110nnnnnddddd 2E21 D800 Vd,Vn (vector) // ucvtf Vd,Vn DV_2G 011111100X100001 110110nnnnnddddd 7E21 D800 Vd,Vn (scalar) // ucvtf Rd,Vn DV_2I X00111100X100011 000000nnnnnddddd 1E23 0000 Vd,Rn (scalar, from general) INST3(mul, "mul", 0, IF_EN3H, 0x1B007C00, 0x0E209C00, 0x0F008000) // mul Rd,Rn,Rm DR_3A X0011011000mmmmm 011111nnnnnddddd 1B00 7C00 // mul Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100111nnnnnddddd 0E20 9C00 Vd,Vn,Vm (vector) // mul Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1000H0nnnnnddddd 0F00 8000 Vd,Vn,Vm[] (vector by element) INST3(smull, "smull", LNG, IF_EN3H, 0x9B207C00, 0x0E20C000, 0x0F00A000) // smull Rd,Rn,Rm DR_3A 10011011001mmmmm 011111nnnnnddddd 9B20 7C00 // smull Vd,Vn,Vm DV_3A 0000111000100000 1100000000000000 0E20 C000 Vd,Vn,Vm (vector) // smull Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 1010H0nnnnnddddd 0F00 A000 Vd,Vn,Vm[] (vector by element) INST3(umull, "umull", LNG, IF_EN3H, 0x9BA07C00, 0x2E20C000, 0x2F00A000) // umull Rd,Rn,Rm DR_3A 10011011101mmmmm 011111nnnnnddddd 9BA0 7C00 // umull Vd,Vn,Vm DV_3A 00101110XX1mmmmm 110000nnnnnddddd 2E20 C000 Vd,Vn,Vm (vector) // umull Vd,Vn,Vm[] DV_3AI 00101111XXLMmmmm 1010H0nnnnnddddd 2F00 A000 Vd,Vn,Vm[] (vector by element) // enum name info DR_2E DR_2F DV_2M INST3(mvn, "mvn", 0, IF_EN3I, 0x2A2003E0, 0x2A2003E0, 0x2E205800) // mvn Rd,Rm DR_2E X0101010001mmmmm 00000011111ddddd 2A20 03E0 // mvn Rd,(Rm,shk,imm) DR_2F X0101010sh1mmmmm iiiiii11111ddddd 2A20 03E0 Rm {LSL,LSR,ASR} imm(0-63) // mvn Vd,Vn DV_2M 0Q10111000100000 010110nnnnnddddd 2E20 5800 Vd,Vn (vector) // enum name info LS_2D LS_3F LS_2E INST3(ld1_2regs, "ld1", LD, IF_EN3J, 0x0C40A000, 0x0CC0A000, 0x0CDFA000) // LD1 (multiple structures, two registers variant) // ld1 {Vt,Vt2},[Xn] LS_2D 0Q00110001000000 1010ssnnnnnttttt 0C40 A000 base register // ld1 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100110mmmmm 1010ssnnnnnttttt 0CC0 A000 post-indexed by a register // ld1 {Vt,Vt2},[Xn],#imm LS_2E 0Q00110011011111 1010ssnnnnnttttt 0CDF A000 post-indexed by an immediate INST3(ld1_3regs, "ld1", LD, IF_EN3J, 0x0C406000, 0x0CC06000, 0x0CDF6000) // LD1 (multiple structures, three registers variant) // ld1 {Vt-Vt3},[Xn] LS_2D 0Q00110001000000 0110ssnnnnnttttt 0C40 6000 base register // ld1 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100110mmmmm 0110ssnnnnnttttt 0CC0 6000 post-indexed by a register // ld1 {Vt-Vt3},[Xn],#imm LS_2E 0Q00110011011111 0110ssnnnnnttttt 0CDF 6000 post-indexed by an immediate INST3(ld1_4regs, "ld1", LD, IF_EN3J, 0x0C402000, 0x0CC02000, 0x0CDF2000) // LD1 (multiple structures, four registers variant) // ld1 {Vt-Vt4},[Xn] LS_2D 0Q00110001000000 0010ssnnnnnttttt 0C40 2000 base register // ld1 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100110mmmmm 0010ssnnnnnttttt 0CC0 2000 post-indexed by a register // ld1 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110011011111 0010ssnnnnnttttt 0CDF 2000 post-indexed by an immediate INST3(st1_2regs, "st1", ST, IF_EN3J, 0x0C00A000, 0x0C80A000, 0x0C9FA000) // ST1 (multiple structures, two registers variant) // st1 {Vt,Vt2},[Xn] LS_2D 0Q00110000000000 1010ssnnnnnttttt 0C00 A000 base register // st1 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100100mmmmm 1010ssnnnnnttttt 0C80 A000 post-indexed by a register // st1 {Vt,Vt2},[Xn],#imm LS_2E 0Q00110010011111 1010ssnnnnnttttt 0C9F A000 post-indexed by an immediate INST3(st1_3regs, "st1", ST, IF_EN3J, 0x0C006000, 0x0C806000, 0x0C9F6000) // ST1 (multiple structures, three registers variant) // st1 {Vt-Vt3},[Xn] LS_2D 0Q00110000000000 0110ssnnnnnttttt 0C00 6000 base register // st1 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100100mmmmm 0110XXnnnnnttttt 0C80 6000 post-indexed by a register // st1 {Vt-Vt3},[Xn],#imm LS_2E 0Q00110010011111 0110XXnnnnnttttt 0C9F 6000 post-indexed by an immediate INST3(st1_4regs, "st1", ST, IF_EN3J, 0x0C002000, 0x0C802000, 0x0C9F2000) // ST1 (multiple structures, four registers variant) // st1 {Vt-Vt4},[Xn] LS_2D 0Q00110000000000 0010XXnnnnnttttt 0C00 2000 base register // st1 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100100mmmmm 0010XXnnnnnttttt 0C80 2000 post-indexed by a register // st1 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110010011111 0010XXnnnnnttttt 0C9F 2000 post-indexed by an immediate INST3(ld1r, "ld1r", LD, IF_EN3J, 0x0D40C000, 0x0DC0C000, 0x0DDFC000) // ld1r {Vt},[Xn] LS_2D 0Q00110101000000 1100ssnnnnnttttt 0D40 C000 base register // ld1r {Vt},[Xn],Xm LS_3F 0Q001101110mmmmm 1100ssnnnnnttttt 0DC0 C000 post-indexed by a register // ld1r {Vt},[Xn],#1 LS_2E 0Q00110111011111 1100ssnnnnnttttt 0DDF C000 post-indexed by an immediate INST3(ld2r, "ld2r", LD, IF_EN3J, 0x0D60C000, 0x0DE0C000, 0x0DFFC000) // ld2r {Vt,Vt2},[Xn] LS_2D 0Q00110101100000 1100ssnnnnnttttt 0D60 C000 base register // ld2r {Vt,Vt2},[Xn],Xm LS_3F 0Q001101111mmmmm 1100ssnnnnnttttt 0DE0 C000 post-indexed by a register // ld2r {Vt,Vt2},[Xn],#2 LS_2E 0Q00110111111111 1100ssnnnnnttttt 0DFF C000 post-indexed by an immediate INST3(ld3r, "ld3r", LD, IF_EN3J, 0x0D40E000, 0x0DC0E000, 0x0DDFE000) // ld3r {Vt-Vt3},[Xn] LS_2D 0Q00110101000000 1110ssnnnnnttttt 0D40 E000 base register // ld3r {Vt-Vt3},[Xn],Xm LS_3F 0Q001101110mmmmm 1110ssnnnnnttttt 0DC0 E000 post-indexed by a register // ld3r {Vt-Vt3},[Xn],#4 LS_2E 0Q00110111011111 1110ssnnnnnttttt 0DDF E000 post-indexed by an immediate INST3(ld4r, "ld4r", LD, IF_EN3J, 0x0D60E000, 0x0DE0E000, 0x0DFFE000) // ld4r {Vt-Vt4},[Xn] LS_2D 0Q00110101100000 1110ssnnnnnttttt 0D60 E000 base register // ld4r {Vt-Vt4},[Xn],Xm LS_3F 0Q001101111mmmmm 1110ssnnnnnttttt 0DE0 E000 post-indexed by a register // ld4r {Vt-Vt4},[Xn],#8 LS_2E 0Q00110111111111 1110ssnnnnnttttt 0DFF E000 post-indexed by an immediate // enum name info DR_2E DR_2F INST2(negs, "negs", 0, IF_EN2A, 0x6B0003E0, 0x6B0003E0) // negs Rd,Rm DR_2E X1101011000mmmmm 00000011111ddddd 6B00 03E0 // negs Rd,(Rm,shk,imm) DR_2F X1101011sh0mmmmm ssssss11111ddddd 6B00 03E0 Rm {LSL,LSR,ASR} imm(0-63) // enum name info DR_3A DR_3B INST2(bics, "bics", 0, IF_EN2B, 0x6A200000, 0x6A200000) // bics Rd,Rn,Rm DR_3A X1101010001mmmmm 000000nnnnnddddd 6A20 0000 // bics Rd,Rn,(Rm,shk,imm) DR_3B X1101010sh1mmmmm iiiiiinnnnnddddd 6A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) INST2(eon, "eon", 0, IF_EN2B, 0x4A200000, 0x4A200000) // eon Rd,Rn,Rm DR_3A X1001010001mmmmm 000000nnnnnddddd 4A20 0000 // eon Rd,Rn,(Rm,shk,imm) DR_3B X1001010sh1mmmmm iiiiiinnnnnddddd 4A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // enum name info DR_3A DI_2C INST2(lsl, "lsl", 0, IF_EN2C, 0x1AC02000, 0x53000000) // lsl Rd,Rn,Rm DR_3A X0011010110mmmmm 001000nnnnnddddd 1AC0 2000 // lsl Rd,Rn,imm6 DI_2D X10100110Xrrrrrr ssssssnnnnnddddd 5300 0000 imm(N,r,s) INST2(lsr, "lsr", 0, IF_EN2C, 0x1AC02400, 0x53000000) // lsr Rd,Rn,Rm DR_3A X0011010110mmmmm 001001nnnnnddddd 1AC0 2400 // lsr Rd,Rn,imm6 DI_2D X10100110Xrrrrrr ssssssnnnnnddddd 5300 0000 imm(N,r,s) INST2(asr, "asr", 0, IF_EN2C, 0x1AC02800, 0x13000000) // asr Rd,Rn,Rm DR_3A X0011010110mmmmm 001010nnnnnddddd 1AC0 2800 // asr Rd,Rn,imm6 DI_2D X00100110Xrrrrrr ssssssnnnnnddddd 1300 0000 imm(N,r,s) // enum name info DR_3A DI_2B INST2(ror, "ror", 0, IF_EN2D, 0x1AC02C00, 0x13800000) // ror Rd,Rn,Rm DR_3A X0011010110mmmmm 001011nnnnnddddd 1AC0 2C00 // ror Rd,Rn,imm6 DI_2B X00100111X0nnnnn ssssssnnnnnddddd 1380 0000 imm(0-63) // enum name info LS_3B LS_3C INST2(ldp, "ldp", LD, IF_EN2E, 0x29400000, 0x28400000) // ldp Rt,Ra,[Xn] LS_3B X010100101000000 0aaaaannnnnttttt 2940 0000 [Xn imm7] // ldp Rt,Ra,[Xn+simm7] LS_3C X010100PP1iiiiii iaaaaannnnnttttt 2840 0000 [Xn imm7 LSL {} pre/post/no inc] INST2(ldpsw, "ldpsw", LD, IF_EN2E, 0x69400000, 0x68400000) // ldpsw Rt,Ra,[Xn] LS_3B 0110100101000000 0aaaaannnnnttttt 6940 0000 [Xn imm7] // ldpsw Rt,Ra,[Xn+simm7] LS_3C 0110100PP1iiiiii iaaaaannnnnttttt 6840 0000 [Xn imm7 LSL {} pre/post/no inc] INST2(stp, "stp", ST, IF_EN2E, 0x29000000, 0x28000000) // stp Rt,Ra,[Xn] LS_3B X010100100000000 0aaaaannnnnttttt 2900 0000 [Xn imm7] // stp Rt,Ra,[Xn+simm7] LS_3C X010100PP0iiiiii iaaaaannnnnttttt 2800 0000 [Xn imm7 LSL {} pre/post/no inc] INST2(ldnp, "ldnp", LD, IF_EN2E, 0x28400000, 0x28400000) // ldnp Rt,Ra,[Xn] LS_3B X010100001000000 0aaaaannnnnttttt 2840 0000 [Xn imm7] // ldnp Rt,Ra,[Xn+simm7] LS_3C X010100001iiiiii iaaaaannnnnttttt 2840 0000 [Xn imm7 LSL {}] INST2(stnp, "stnp", ST, IF_EN2E, 0x28000000, 0x28000000) // stnp Rt,Ra,[Xn] LS_3B X010100000000000 0aaaaannnnnttttt 2800 0000 [Xn imm7] // stnp Rt,Ra,[Xn+simm7] LS_3C X010100000iiiiii iaaaaannnnnttttt 2800 0000 [Xn imm7 LSL {}] INST2(ccmp, "ccmp", CMP, IF_EN2F, 0x7A400000, 0x7A400800) // ccmp Rn,Rm, nzcv,cond DR_2I X1111010010mmmmm cccc00nnnnn0nzcv 7A40 0000 nzcv, cond // ccmp Rn,imm5,nzcv,cond DI_1F X1111010010iiiii cccc10nnnnn0nzcv 7A40 0800 imm5, nzcv, cond INST2(ccmn, "ccmn", CMP, IF_EN2F, 0x3A400000, 0x3A400800) // ccmn Rn,Rm, nzcv,cond DR_2I X0111010010mmmmm cccc00nnnnn0nzcv 3A40 0000 nzcv, cond // ccmn Rn,imm5,nzcv,cond DI_1F X0111010910iiiii cccc10nnnnn0nzcv 3A40 0800 imm5, nzcv, cond // enum name info DV_2C DV_2F INST2(ins, "ins", 0, IF_EN2H, 0x4E001C00, 0x6E000400) // ins Vd[],Rn DV_2C 01001110000iiiii 000111nnnnnddddd 4E00 1C00 Vd[],Rn (from general) // ins Vd[],Vn[] DV_2F 01101110000iiiii 0jjjj1nnnnnddddd 6E00 0400 Vd[],Vn[] (from/to elem) // enum name info DV_3B DV_3D INST2(fadd, "fadd", 0, IF_EN2G, 0x0E20D400, 0x1E202800) // fadd Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110101nnnnnddddd 0E20 D400 Vd,Vn,Vm (vector) // fadd Vd,Vn,Vm DV_3D 000111100X1mmmmm 001010nnnnnddddd 1E20 2800 Vd,Vn,Vm (scalar) INST2(fsub, "fsub", 0, IF_EN2G, 0x0EA0D400, 0x1E203800) // fsub Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 110101nnnnnddddd 0EA0 D400 Vd,Vn,Vm (vector) // fsub Vd,Vn,Vm DV_3D 000111100X1mmmmm 001110nnnnnddddd 1E20 3800 Vd,Vn,Vm (scalar) INST2(fdiv, "fdiv", 0, IF_EN2G, 0x2E20FC00, 0x1E201800) // fdiv Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111111nnnnnddddd 2E20 FC00 Vd,Vn,Vm (vector) // fdiv Vd,Vn,Vm DV_3D 000111100X1mmmmm 000110nnnnnddddd 1E20 1800 Vd,Vn,Vm (scalar) INST2(fmax, "fmax", 0, IF_EN2G, 0x0E20F400, 0x1E204800) // fmax Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 111101nnnnnddddd 0E20 F400 Vd,Vn,Vm (vector) // fmax Vd,Vn,Vm DV_3D 000111100X1mmmmm 010010nnnnnddddd 1E20 4800 Vd,Vn,Vm (scalar) INST2(fmaxnm, "fmaxnm", 0, IF_EN2G, 0x0E20C400, 0x1E206800) // fmaxnm Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110001nnnnnddddd 0E20 C400 Vd,Vn,Vm (vector) // fmaxnm Vd,Vn,Vm DV_3D 000111100X1mmmmm 011010nnnnnddddd 1E20 6800 Vd,Vn,Vm (scalar) INST2(fmin, "fmin", 0, IF_EN2G, 0x0EA0F400, 0x1E205800) // fmin Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 111101nnnnnddddd 0EA0 F400 Vd,Vn,Vm (vector) // fmin Vd,Vn,Vm DV_3D 000111100X1mmmmm 010110nnnnnddddd 1E20 5800 Vd,Vn,Vm (scalar) INST2(fminnm, "fminnm", 0, IF_EN2G, 0x0EA0C400, 0x1E207800) // fminnm Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 110001nnnnnddddd 0EA0 C400 Vd,Vn,Vm (vector) // fminnm Vd,Vn,Vm DV_3D 000111100X1mmmmm 011110nnnnnddddd 1E20 7800 Vd,Vn,Vm (scalar) INST2(fabd, "fabd", 0, IF_EN2G, 0x2EA0D400, 0x7EA0D400) // fabd Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 110101nnnnnddddd 2EA0 D400 Vd,Vn,Vm (vector) // fabd Vd,Vn,Vm DV_3D 011111101X1mmmmm 110101nnnnnddddd 7EA0 D400 Vd,Vn,Vm (scalar) INST2(facge, "facge", 0, IF_EN2G, 0x2E20EC00, 0x7E20EC00) // facge Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111011nnnnnddddd 2E20 EC00 Vd,Vn,Vm (vector) // facge Vd,Vn,Vm DV_3D 011111100X1mmmmm 111011nnnnnddddd 7E20 EC00 Vd,Vn,Vm (scalar) INST2(facgt, "facgt", 0, IF_EN2G, 0x2EA0EC00, 0x7EA0EC00) // facgt Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 111011nnnnnddddd 2EA0 EC00 Vd,Vn,Vm (vector) // facgt Vd,Vn,Vm DV_3D 011111101X1mmmmm 111011nnnnnddddd 7EA0 EC00 Vd,Vn,Vm (scalar) INST2(frecps, "frecps", 0, IF_EN2G, 0x0E20FC00, 0x5E20FC00) // frecps Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 111111nnnnnddddd 0E20 FC00 Vd,Vn,Vm (vector) // frecps Vd,Vn,Vm DV_3D 010111100X1mmmmm 111111nnnnnddddd 5E20 FC00 Vd,Vn,Vm (scalar) INST2(frsqrts, "frsqrts", 0, IF_EN2G, 0x0EA0FC00, 0x5EA0FC00) // frsqrts Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 111111nnnnnddddd 0EA0 FC00 Vd,Vn,Vm (vector) // frsqrts Vd,Vn,Vm DV_3D 010111101X1mmmmm 111111nnnnnddddd 5EA0 FC00 Vd,Vn,Vm (scalar) // enum name info DV_2K DV_1C INST2(fcmp, "fcmp", 0, IF_EN2I, 0x1E202000, 0x1E202008) // fcmp Vn,Vm DV_2K 000111100X1mmmmm 001000nnnnn00000 1E20 2000 Vn Vm // fcmp Vn,#0.0 DV_1C 000111100X100000 001000nnnnn01000 1E20 2008 Vn #0.0 INST2(fcmpe, "fcmpe", 0, IF_EN2I, 0x1E202010, 0x1E202018) // fcmpe Vn,Vm DV_2K 000111100X1mmmmm 001000nnnnn10000 1E20 2010 Vn Vm // fcmpe Vn,#0.0 DV_1C 000111100X100000 001000nnnnn11000 1E20 2018 Vn #0.0 // enum name info DV_2A DV_2G INST2(fabs, "fabs", 0, IF_EN2J, 0x0EA0F800, 0x1E20C000) // fabs Vd,Vn DV_2A 0Q0011101X100000 111110nnnnnddddd 0EA0 F800 Vd,Vn (vector) // fabs Vd,Vn DV_2G 000111100X100000 110000nnnnnddddd 1E20 C000 Vd,Vn (scalar) INST2(fcmle, "fcmle", 0, IF_EN2J, 0x2EA0D800, 0x7EA0D800) // fcmle Vd,Vn,#0 DV_2A 0Q1011101X100000 111110nnnnnddddd 2EA0 D800 Vd,Vn,#0 (vector - with zero) // fcmle Vd,Vn,#0 DV_2G 011111101X100000 110110nnnnnddddd 7EA0 D800 Vd,Vn,#0 (scalar - with zero) INST2(fcmlt, "fcmlt", 0, IF_EN2J, 0x0EA0E800, 0x5EA0E800) // fcmlt Vd,Vn,#0 DV_2A 0Q0011101X100000 111110nnnnnddddd 0EA0 E800 Vd,Vn,#0 (vector - with zero) // fcmlt Vd,Vn,#0 DV_2G 010111101X100000 111010nnnnnddddd 5EA0 E800 Vd,Vn,#0 (scalar - with zero) INST2(fcvtxn, "fcvtxn", NRW, IF_EN2J, 0x2E616800, 0x7E616800) // fcvtxn Vd,Vn DV_2A 0010111001100001 011010nnnnnddddd 2E61 6800 Vd,Vn (vector) // fcvtxn Vd,Vn DV_2G 0111111001100001 011010nnnnnddddd 7E61 6800 Vd,Vn (scalar) INST2(fneg, "fneg", 0, IF_EN2J, 0x2EA0F800, 0x1E214000) // fneg Vd,Vn DV_2A 0Q1011101X100000 111110nnnnnddddd 2EA0 F800 Vd,Vn (vector) // fneg Vd,Vn DV_2G 000111100X100001 010000nnnnnddddd 1E21 4000 Vd,Vn (scalar) INST2(frecpe, "frecpe", 0, IF_EN2J, 0x0EA1D800, 0x5EA1D800) // frecpe Vd,Vn DV_2A 0Q0011101X100001 110110nnnnnddddd 0EA1 D800 Vd,Vn (vector) // frecpe Vd,Vn DV_2G 010111101X100001 110110nnnnnddddd 5EA1 D800 Vd,Vn (scalar) INST2(frintn, "frintn", 0, IF_EN2J, 0x0E218800, 0x1E244000) // frintn Vd,Vn DV_2A 0Q0011100X100001 100010nnnnnddddd 0E21 8800 Vd,Vn (vector) // frintn Vd,Vn DV_2G 000111100X100100 010000nnnnnddddd 1E24 4000 Vd,Vn (scalar) INST2(frintp, "frintp", 0, IF_EN2J, 0x0EA18800, 0x1E24C000) // frintp Vd,Vn DV_2A 0Q0011101X100001 100010nnnnnddddd 0EA1 8800 Vd,Vn (vector) // frintp Vd,Vn DV_2G 000111100X100100 110000nnnnnddddd 1E24 C000 Vd,Vn (scalar) INST2(frintm, "frintm", 0, IF_EN2J, 0x0E219800, 0x1E254000) // frintm Vd,Vn DV_2A 0Q0011100X100001 100110nnnnnddddd 0E21 9800 Vd,Vn (vector) // frintm Vd,Vn DV_2G 000111100X100101 010000nnnnnddddd 1E25 4000 Vd,Vn (scalar) INST2(frintz, "frintz", 0, IF_EN2J, 0x0EA19800, 0x1E25C000) // frintz Vd,Vn DV_2A 0Q0011101X100001 100110nnnnnddddd 0EA1 9800 Vd,Vn (vector) // frintz Vd,Vn DV_2G 000111100X100101 110000nnnnnddddd 1E25 C000 Vd,Vn (scalar) INST2(frinta, "frinta", 0, IF_EN2J, 0x2E218800, 0x1E264000) // frinta Vd,Vn DV_2A 0Q1011100X100001 100010nnnnnddddd 2E21 8800 Vd,Vn (vector) // frinta Vd,Vn DV_2G 000111100X100110 010000nnnnnddddd 1E26 4000 Vd,Vn (scalar) INST2(frintx, "frintx", 0, IF_EN2J, 0x2E219800, 0x1E274000) // frintx Vd,Vn DV_2A 0Q1011100X100001 100110nnnnnddddd 2E21 9800 Vd,Vn (vector) // frintx Vd,Vn DV_2G 000111100X100111 010000nnnnnddddd 1E27 4000 Vd,Vn (scalar) INST2(frinti, "frinti", 0, IF_EN2J, 0x2EA19800, 0x1E27C000) // frinti Vd,Vn DV_2A 0Q1011101X100001 100110nnnnnddddd 2EA1 9800 Vd,Vn (vector) // frinti Vd,Vn DV_2G 000111100X100111 110000nnnnnddddd 1E27 C000 Vd,Vn (scalar) INST2(frsqrte, "frsqrte", 0, IF_EN2J, 0x2EA1D800, 0x7EA1D800) // frsqrte Vd,Vn DV_2A 0Q1011101X100001 110110nnnnnddddd 2EA1 D800 Vd,Vn (vector) // frsqrte Vd,Vn DV_2G 011111101X100001 110110nnnnnddddd 7EA1 D800 Vd,Vn (scalar) INST2(fsqrt, "fsqrt", 0, IF_EN2J, 0x2EA1F800, 0x1E21C000) // fsqrt Vd,Vn DV_2A 0Q1011101X100001 111110nnnnnddddd 2EA1 F800 Vd,Vn (vector) // fsqrt Vd,Vn DV_2G 000111100X100001 110000nnnnnddddd 1E21 C000 Vd,Vn (scalar) // enum name info DV_2M DV_2L INST2(abs, "abs", 0, IF_EN2K, 0x0E20B800, 0x5E20B800) // abs Vd,Vn DV_2M 0Q001110XX100000 101110nnnnnddddd 0E20 B800 Vd,Vn (vector) // abs Vd,Vn DV_2L 01011110XX100000 101110nnnnnddddd 5E20 B800 Vd,Vn (scalar) INST2(cmle, "cmle", 0, IF_EN2K, 0x2E209800, 0x7E209800) // cmle Vd,Vn,#0 DV_2M 0Q101110XX100000 100110nnnnnddddd 2E20 9800 Vd,Vn,#0 (vector - with zero) // cmle Vd,Vn,#0 DV_2L 01111110XX100000 100110nnnnnddddd 7E20 9800 Vd,Vn,#0 (scalar - wtih zero) INST2(cmlt, "cmlt", 0, IF_EN2K, 0x0E20A800, 0x5E20A800) // cmlt Vd,Vn,#0 DV_2M 0Q101110XX100000 101010nnnnnddddd 0E20 A800 Vd,Vn,#0 (vector - with zero) // cmlt Vd,Vn,#0 DV_2L 01011110XX100000 101010nnnnnddddd 5E20 A800 Vd,Vn,#0 (scalar - with zero) INST2(sqabs, "sqabs", 0, IF_EN2K, 0x0E207800, 0x5E207800) // sqabs Vd,Vn DV_2M 0Q001110XX100000 011110nnnnnddddd 0E20 7800 Vd,Vn (vector) // sqabs Vd,Vn DV_2L 01011110XX100000 011110nnnnnddddd 5E20 7800 Vd,Vn (scalar) INST2(sqneg, "sqneg", 0, IF_EN2K, 0x2E207800, 0x7E207800) // sqneg Vd,Vn DV_2M 0Q101110XX100000 011110nnnnnddddd 2E20 7800 Vd,Vn (vector) // sqneg Vd,Vn DV_2L 01111110XX100000 011110nnnnnddddd 7E20 7800 Vd,Vn (scalar) INST2(sqxtn, "sqxtn", NRW, IF_EN2K, 0x0E214800, 0x5E214800) // sqxtn Vd,Vn DV_2M 0Q001110XX100001 010010nnnnnddddd 0E21 4800 Vd,Vn (vector) // sqxtn Vd,Vn DV_2L 01011110XX100001 010010nnnnnddddd 5E21 4800 Vd,Vn (scalar) INST2(sqxtun, "sqxtun", NRW, IF_EN2K, 0x2E212800, 0x7E212800) // sqxtun Vd,Vn DV_2M 0Q101110XX100001 001010nnnnnddddd 2E21 2800 Vd,Vn (vector) // sqxtun Vd,Vn DV_2L 01111110XX100001 001010nnnnnddddd 7E21 2800 Vd,Vn (scalar) INST2(suqadd, "suqadd", 0, IF_EN2K, 0x0E203800, 0x5E203800) // suqadd Vd,Vn DV_2M 0Q001110XX100000 001110nnnnnddddd 0E20 3800 Vd,Vn (vector) // suqadd Vd,Vn DV_2L 01011110XX100000 001110nnnnnddddd 5E20 3800 Vd,Vn (scalar) INST2(usqadd, "usqadd", 0, IF_EN2K, 0x2E203800, 0x7E203800) // usqadd Vd,Vn DV_2M 0Q101110XX100000 001110nnnnnddddd 2E20 3800 Vd,Vn (vector) // usqadd Vd,Vn DV_2L 01111110XX100000 001110nnnnnddddd 7E20 3800 Vd,Vn (scalar) INST2(uqxtn, "uqxtn", NRW, IF_EN2K, 0x2E214800, 0x7E214800) // uqxtn Vd,Vn DV_2M 0Q101110XX100001 010010nnnnnddddd 2E21 4800 Vd,Vn (vector) // uqxtn Vd,Vn DV_2L 01111110XX100001 010010nnnnnddddd 7E21 4800 Vd,Vn (scalar) // enum name info DR_2G DV_2M INST2(cls, "cls", 0, IF_EN2L, 0x5AC01400, 0x0E204800) // cls Rd,Rm DR_2G X101101011000000 000101nnnnnddddd 5AC0 1400 Rd Rn (general) // cls Vd,Vn DV_2M 0Q00111000100000 010010nnnnnddddd 0E20 4800 Vd,Vn (vector) INST2(clz, "clz", 0, IF_EN2L, 0x5AC01000, 0x2E204800) // clz Rd,Rm DR_2G X101101011000000 000100nnnnnddddd 5AC0 1000 Rd Rn (general) // clz Vd,Vn DV_2M 0Q10111000100000 010010nnnnnddddd 2E20 4800 Vd,Vn (vector) INST2(rbit, "rbit", 0, IF_EN2L, 0x5AC00000, 0x2E605800) // rbit Rd,Rm DR_2G X101101011000000 000000nnnnnddddd 5AC0 0000 Rd Rn (general) // rbit Vd,Vn DV_2M 0Q10111001100000 010110nnnnnddddd 2E60 5800 Vd,Vn (vector) INST2(rev16, "rev16", 0, IF_EN2L, 0x5AC00400, 0x0E201800) // rev16 Rd,Rm DR_2G X101101011000000 000001nnnnnddddd 5AC0 0400 Rd Rn (general) // rev16 Vd,Vn DV_2M 0Q001110XX100000 000110nnnnnddddd 0E20 1800 Vd,Vn (vector) INST2(rev32, "rev32", 0, IF_EN2L, 0xDAC00800, 0x2E200800) // rev32 Rd,Rm DR_2G 1101101011000000 000010nnnnnddddd DAC0 0800 Rd Rn (general) // rev32 Vd,Vn DV_2M 0Q101110XX100000 000010nnnnnddddd 2E20 0800 Vd,Vn (vector) // enum name info DV_3A DV_3AI INST2(mla, "mla", 0, IF_EN2M, 0x0E209400, 0x2F000000) // mla Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100101nnnnnddddd 0E20 9400 Vd,Vn,Vm (vector) // mla Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 0000H0nnnnnddddd 2F00 0000 Vd,Vn,Vm[] (vector by element) INST2(mls, "mls", 0, IF_EN2M, 0x2E209400, 0x2F004000) // mls Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100101nnnnnddddd 2E20 9400 Vd,Vn,Vm (vector) // mls Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 0100H0nnnnnddddd 2F00 4000 Vd,Vn,Vm[] (vector by element) INST2(smlal, "smlal", LNG, IF_EN2M, 0x0E208000, 0x0F002000) // smlal Vd,Vn,Vm DV_3A 00001110XX1mmmmm 100000nnnnnddddd 0E20 8000 Vd,Vn,Vm (vector) // smlal Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0010H0nnnnnddddd 0F00 2000 Vd,Vn,Vm[] (vector by element) INST2(smlal2, "smlal2", LNG, IF_EN2M, 0x4E208000, 0x4F002000) // smlal2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 100000nnnnnddddd 4E20 8000 Vd,Vn,Vm (vector) // smlal2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0010H0nnnnnddddd 4F00 2000 Vd,Vn,Vm[] (vector by element) INST2(smlsl, "smlsl", LNG, IF_EN2M, 0x0E20A000, 0x0F006000) // smlsl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 101000nnnnnddddd 0E20 A000 Vd,Vn,Vm (vector) // smlsl Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0110H0nnnnnddddd 0F00 6000 Vd,Vn,Vm[] (vector by element) INST2(smlsl2, "smlsl2", LNG, IF_EN2M, 0x4E20A000, 0x4F006000) // smlsl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 101000nnnnnddddd 4E20 A000 Vd,Vn,Vm (vector) // smlsl2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0110H0nnnnnddddd 4F00 6000 Vd,Vn,Vm[] (vector by element) INST2(smull2, "smull2", LNG, IF_EN2M, 0x4E20C000, 0x4F00A000) // smull2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 110000nnnnnddddd 4E20 C000 Vd,Vn,Vm (vector) // smull2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 1010H0nnnnnddddd 4F00 A000 Vd,Vn,Vm[] (vector by element) INST2(sqdmlal2, "sqdmlal2", LNG, IF_EN2M, 0x4E209000, 0x4F003000) // sqdmlal2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 100100nnnnnddddd 4E20 9000 Vd,Vn,Vm (vector) // sqdmlal2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0011H0nnnnnddddd 4F00 3000 Vd,Vn,Vm[] (vector by element) INST2(sqdmlsl2, "sqdmlsl2", LNG, IF_EN2M, 0x4E20B000, 0x4F007000) // sqdmlsl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 101100nnnnnddddd 4E20 B000 Vd,Vn,Vm (vector) // sqdmlsl2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0111H0nnnnnddddd 4F00 7000 Vd,Vn,Vm[] (vector by element) INST2(sqdmull2, "sqdmull2", LNG, IF_EN2M, 0x4E20D000, 0x4F00B000) // sqdmull2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 110100nnnnnddddd 4E20 D000 Vd,Vn,Vm (vector) // sqdmull2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 1011H0nnnnnddddd 4F00 B000 Vd,Vn,Vm[] (vector by element) INST2(sdot, "sdot", 0, IF_EN2M, 0x0E009400, 0x0F00E000) // sdot Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 100101nnnnnddddd 0E00 9400 Vd,Vn,Vm (vector) // sdot Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1110H0nnnnnddddd 0F00 E000 Vd,Vn,Vm[] (vector by element) INST2(udot, "udot", 0, IF_EN2M, 0x2E009400, 0x2F00E000) // udot Vd,Vn,Vm DV_3A 0Q101110XX0mmmmm 100101nnnnnddddd 2E00 9400 Vd,Vn,Vm (vector) // udot Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 1110H0nnnnnddddd 2F00 E000 Vd,Vn,Vm[] (vector by element) INST2(umlal, "umlal", LNG, IF_EN2M, 0x2E208000, 0x2F002000) // umlal Vd,Vn,Vm DV_3A 00101110XX1mmmmm 100000nnnnnddddd 2E20 8000 Vd,Vn,Vm (vector) // umlal Vd,Vn,Vm[] DV_3AI 00101111XXLMmmmm 0010H0nnnnnddddd 2F00 2000 Vd,Vn,Vm[] (vector by element) INST2(umlal2, "umlal2", LNG, IF_EN2M, 0x6E208000, 0x6F002000) // umlal2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 100000nnnnnddddd 6E20 8000 Vd,Vn,Vm (vector) // umlal2 Vd,Vn,Vm[] DV_3AI 01101111XXLMmmmm 0010H0nnnnnddddd 6F00 2000 Vd,Vn,Vm[] (vector by element) INST2(umlsl, "umlsl", LNG, IF_EN2M, 0x2E20A000, 0x2F006000) // umlsl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 101000nnnnnddddd 2E20 A000 Vd,Vn,Vm (vector) // umlsl Vd,Vn,Vm[] DV_3AI 00101111XXLMmmmm 0110H0nnnnnddddd 2F00 6000 Vd,Vn,Vm[] (vector by element) INST2(umlsl2, "umlsl2", LNG, IF_EN2M, 0x6E20A000, 0x6F006000) // umlsl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 101000nnnnnddddd 6E20 A000 Vd,Vn,Vm (vector) // umlsl2 Vd,Vn,Vm[] DV_3AI 01101111XXLMmmmm 0110H0nnnnnddddd 6F00 6000 Vd,Vn,Vm[] (vector by element) INST2(umull2, "umull2", LNG, IF_EN2M, 0x6E20C000, 0x6F00A000) // umull2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 110000nnnnnddddd 6E20 C000 Vd,Vn,Vm (vector) // umull2 Vd,Vn,Vm[] DV_3AI 01101111XXLMmmmm 1010H0nnnnnddddd 6F00 A000 Vd,Vn,Vm[] (vector by element) // enum name info DV_2N DV_2O INST2(sshr, "sshr", RSH, IF_EN2N, 0x5F000400, 0x0F000400) // sshr Vd,Vn,imm DV_2N 010111110iiiiiii 000001nnnnnddddd 5F00 0400 Vd Vn imm (right shift - scalar) // sshr Vd,Vn,imm DV_2O 0Q0011110iiiiiii 000001nnnnnddddd 0F00 0400 Vd,Vn imm (right shift - vector) INST2(ssra, "ssra", RSH, IF_EN2N, 0x5F001400, 0x0F001400) // ssra Vd,Vn,imm DV_2N 010111110iiiiiii 000101nnnnnddddd 5F00 1400 Vd Vn imm (right shift - scalar) // ssra Vd,Vn,imm DV_2O 0Q0011110iiiiiii 000101nnnnnddddd 0F00 1400 Vd,Vn imm (right shift - vector) INST2(srshr, "srshr", RSH, IF_EN2N, 0x5F002400, 0x0F002400) // srshr Vd,Vn,imm DV_2N 010111110iiiiiii 001001nnnnnddddd 5F00 0400 Vd Vn imm (right shift - scalar) // srshr Vd,Vn,imm DV_2O 0Q0011110iiiiiii 001001nnnnnddddd 0F00 0400 Vd,Vn imm (right shift - vector) INST2(srsra, "srsra", RSH, IF_EN2N, 0x5F003400, 0x0F003400) // srsra Vd,Vn,imm DV_2N 010111110iiiiiii 001101nnnnnddddd 5F00 1400 Vd Vn imm (right shift - scalar) // srsra Vd,Vn,imm DV_2O 0Q0011110iiiiiii 001101nnnnnddddd 0F00 1400 Vd,Vn imm (right shift - vector) INST2(shl, "shl", 0, IF_EN2N, 0x5F005400, 0x0F005400) // shl Vd,Vn,imm DV_2N 010111110iiiiiii 010101nnnnnddddd 5F00 5400 Vd Vn imm (left shift - scalar) // shl Vd,Vn,imm DV_2O 0Q0011110iiiiiii 010101nnnnnddddd 0F00 5400 Vd,Vn imm (left shift - vector) INST2(ushr, "ushr", RSH, IF_EN2N, 0x7F000400, 0x2F000400) // ushr Vd,Vn,imm DV_2N 011111110iiiiiii 000001nnnnnddddd 7F00 0400 Vd Vn imm (right shift - scalar) // ushr Vd,Vn,imm DV_2O 0Q1011110iiiiiii 000001nnnnnddddd 2F00 0400 Vd,Vn imm (right shift - vector) INST2(usra, "usra", RSH, IF_EN2N, 0x7F001400, 0x2F001400) // usra Vd,Vn,imm DV_2N 011111110iiiiiii 000101nnnnnddddd 7F00 1400 Vd Vn imm (right shift - scalar) // usra Vd,Vn,imm DV_2O 0Q1011110iiiiiii 000101nnnnnddddd 2F00 1400 Vd,Vn imm (right shift - vector) INST2(urshr, "urshr", RSH, IF_EN2N, 0x7F002400, 0x2F002400) // urshr Vd,Vn,imm DV_2N 011111110iiiiiii 001001nnnnnddddd 7F00 2400 Vd Vn imm (right shift - scalar) // urshr Vd,Vn,imm DV_2O 0Q1011110iiiiiii 001001nnnnnddddd 2F00 2400 Vd,Vn imm (right shift - vector) INST2(ursra, "ursra", RSH, IF_EN2N, 0x7F003400, 0x2F003400) // ursra Vd,Vn,imm DV_2N 011111110iiiiiii 001101nnnnnddddd 7F00 3400 Vd Vn imm (right shift - scalar) // ursra Vd,Vn,imm DV_2O 0Q1011110iiiiiii 001101nnnnnddddd 2F00 3400 Vd,Vn imm (right shift - vector) INST2(sri, "sri", RSH, IF_EN2N, 0x7F004400, 0x2F004400) // sri Vd,Vn,imm DV_2N 011111110iiiiiii 010001nnnnnddddd 7F00 4400 Vd Vn imm (right shift - scalar) // sri Vd,Vn,imm DV_2O 0Q1011110iiiiiii 010001nnnnnddddd 2F00 4400 Vd,Vn imm (right shift - vector) INST2(sli, "sli", 0, IF_EN2N, 0x7F005400, 0x2F005400) // sli Vd,Vn,imm DV_2N 011111110iiiiiii 010101nnnnnddddd 7F00 5400 Vd Vn imm (left shift - scalar) // sli Vd,Vn,imm DV_2O 0Q1011110iiiiiii 010101nnnnnddddd 2F00 5400 Vd,Vn imm (left shift - vector) INST2(sqshlu, "sqshlu", 0, IF_EN2N, 0x7F006400, 0x2F006400) // sqshlu Vd,Vn,imm DV_2N 011111110iiiiiii 011001nnnnnddddd 7F00 6400 Vd Vn imm (left shift - scalar) // sqshlu Vd,Vn,imm DV_2O 0Q1011110iiiiiii 011001nnnnnddddd 2F00 6400 Vd Vn imm (left shift - vector) INST2(sqrshrn, "sqrshrn", RSH|NRW,IF_EN2N, 0x5F009C00, 0x0F009C00) // sqrshrn Vd,Vn,imm DV_2N 010111110iiiiiii 100111nnnnnddddd 5F00 9C00 Vd Vn imm (right shift - scalar) // sqrshrn Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100111nnnnnddddd 0F00 9C00 Vd Vn imm (right shift - vector) INST2(sqrshrun, "sqrshrun", RSH|NRW,IF_EN2N, 0x7F008C00, 0x2F008C00) // sqrshrun Vd,Vn,imm DV_2N 011111110iiiiiii 100011nnnnnddddd 7F00 8C00 Vd Vn imm (right shift - scalar) // sqrshrun Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100011nnnnnddddd 2F00 8C00 Vd Vn imm (right shift - vector) INST2(sqshrn, "sqshrn", RSH|NRW,IF_EN2N, 0x5F009400, 0x0F009400) // sqshrn Vd,Vn,imm DV_2N 010111110iiiiiii 100101nnnnnddddd 5F00 9400 Vd Vn imm (right shift - scalar) // sqshrn Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100101nnnnnddddd 0F00 9400 Vd Vn imm (right shift - vector) INST2(sqshrun, "sqshrun", RSH|NRW,IF_EN2N, 0x7F008400, 0x2F008400) // sqshrun Vd,Vn,imm DV_2N 011111110iiiiiii 100001nnnnnddddd 7F00 8400 Vd Vn imm (right shift - scalar) // sqshrun Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100001nnnnnddddd 2F00 8400 Vd Vn imm (right shift - vector) INST2(uqrshrn, "uqrshrn", RSH|NRW,IF_EN2N, 0x7F009C00, 0x2F009C00) // uqrshrn Vd,Vn,imm DV_2N 011111110iiiiiii 100111nnnnnddddd 7F00 9C00 Vd Vn imm (right shift - scalar) // uqrshrn Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100111nnnnnddddd 2F00 9C00 Vd Vn imm (right shift - vector) INST2(uqshrn, "uqshrn", RSH|NRW,IF_EN2N, 0x7F009400, 0x2F009400) // usqhrn Vd,Vn,imm DV_2N 011111110iiiiiii 100101nnnnnddddd 7F00 9400 Vd Vn imm (right shift - scalar) // usqhrn Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100101nnnnnddddd 2F00 9400 Vd Vn imm (right shift - vector) // enum name info DV_3E DV_3A INST2(cmhi, "cmhi", 0, IF_EN2O, 0x7EE03400, 0x2E203400) // cmhi Vd,Vn,Vm DV_3E 01111110111mmmmm 001101nnnnnddddd 7EE0 3400 Vd,Vn,Vm (scalar) // cmhi Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001101nnnnnddddd 2E20 3400 Vd,Vn,Vm (vector) INST2(cmhs, "cmhs", 0, IF_EN2O, 0x7EE03C00, 0x2E203C00) // cmhs Vd,Vn,Vm DV_3E 01111110111mmmmm 001111nnnnnddddd 7EE0 3C00 Vd,Vn,Vm (scalar) // cmhs Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001111nnnnnddddd 2E20 3C00 Vd,Vn,Vm (vector) INST2(cmtst, "cmtst", 0, IF_EN2O, 0x5EE08C00, 0x0E208C00) // cmtst Vd,Vn,Vm DV_3E 01011110111mmmmm 100011nnnnnddddd 5EE0 8C00 Vd,Vn,Vm (scalar) // cmtst Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100011nnnnnddddd 0E20 8C00 Vd,Vn,Vm (vector) INST2(sqadd, "sqadd", 0, IF_EN2O, 0x5E200C00, 0x0E200C00) // sqadd Vd,Vn,Vm DV_3E 01011110XX1mmmmm 000011nnnnnddddd 5E20 0C00 Vd,Vn,Vm (scalar) // sqadd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 000011nnnnnddddd 0E20 0C00 Vd,Vn,Vm (vector) INST2(sqrshl, "sqrshl", 0, IF_EN2O, 0x5E205C00, 0x0E205C00) // sqrshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010111nnnnnddddd 5E20 5C00 Vd,Vn,Vm (scalar) // sqrshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010111nnnnnddddd 0E20 5C00 Vd,Vn,Vm (vector) INST2(sqsub, "sqsub", 0, IF_EN2O, 0x5E202C00, 0x0E202C00) // sqsub Vd,Vn,Vm DV_3E 01011110XX1mmmmm 001011nnnnnddddd 5E20 2C00 Vd,Vn,Vm (scalar) // sqsub Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001011nnnnnddddd 0E20 2C00 Vd,Vn,Vm (vector) INST2(srshl, "srshl", 0, IF_EN2O, 0x5E205400, 0x0E205400) // srshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010101nnnnnddddd 5E20 5400 Vd,Vn,Vm (scalar) // srshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010101nnnnnddddd 0E20 5400 Vd,Vn,Vm (vector) INST2(sshl, "sshl", 0, IF_EN2O, 0x5E204400, 0x0E204400) // sshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010001nnnnnddddd 5E20 4400 Vd,Vn,Vm (scalar) // sshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010001nnnnnddddd 0E20 4400 Vd,Vn,Vm (vector) INST2(uqadd, "uqadd", 0, IF_EN2O, 0x7E200C00, 0x2E200C00) // uqadd Vd,Vn,Vm DV_3E 01111110XX1mmmmm 000011nnnnnddddd 7E20 0C00 Vd,Vn,Vm (scalar) // uqadd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 000011nnnnnddddd 2E20 0C00 Vd,Vn,Vm (vector) INST2(uqrshl, "uqrshl", 0, IF_EN2O, 0x7E205C00, 0x2E205C00) // uqrshl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010111nnnnnddddd 7E20 5C00 Vd,Vn,Vm (scalar) // uqrshl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010111nnnnnddddd 2E20 5C00 Vd,Vn,Vm (vector) INST2(uqsub, "uqsub", 0, IF_EN2O, 0x7E202C00, 0x2E202C00) // uqsub Vd,Vn,Vm DV_3E 01111110XX1mmmmm 001011nnnnnddddd 7E20 2C00 Vd,Vn,Vm (scalar) // uqsub Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001011nnnnnddddd 2E20 2C00 Vd,Vn,Vm (vector) INST2(urshl, "urshl", 0, IF_EN2O, 0x7E205400, 0x2E205400) // urshl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010101nnnnnddddd 7E20 5400 Vd,Vn,Vm (scalar) // urshl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010101nnnnnddddd 2E20 5400 Vd,Vn,Vm (vector) INST2(ushl, "ushl", 0, IF_EN2O, 0x7E204400, 0x2E204400) // ushl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010001nnnnnddddd 7E20 4400 Vd,Vn,Vm (scalar) // ushl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010001nnnnnddddd 2E20 4400 Vd,Vn,Vm (vector) // enum name info DV_2Q DV_3B INST2(faddp, "faddp", 0, IF_EN2P, 0x7E30D800, 0x2E20D400) // faddp Vd,Vn DV_2Q 011111100X110000 110110nnnnnddddd 7E30 D800 Vd,Vn (scalar) // faddp Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 110101nnnnnddddd 2E20 D400 Vd,Vn,Vm (vector) INST2(fmaxnmp, "fmaxnmp", 0, IF_EN2P, 0x7E30C800, 0x2E20C400) // fmaxnmp Vd,Vn DV_2Q 011111100X110000 110010nnnnnddddd 7E30 C800 Vd,Vn (scalar) // fmaxnmp Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 110001nnnnnddddd 2E20 C400 Vd,Vn,Vm (vector) INST2(fmaxp, "fmaxp", 0, IF_EN2P, 0x7E30F800, 0x2E20F400) // fmaxp Vd,Vn DV_2Q 011111100X110000 111110nnnnnddddd 7E30 F800 Vd,Vn (scalar) // fmaxp Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111101nnnnnddddd 2E20 F400 Vd,Vn,Vm (vector) INST2(fminnmp, "fminnmp", 0, IF_EN2P, 0x7EB0C800, 0x2EA0C400) // fminnmp Vd,Vn DV_2Q 011111101X110000 110010nnnnnddddd 7EB0 C800 Vd,Vn (scalar) // fminnmp Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 110001nnnnnddddd 2EA0 C400 Vd,Vn,Vm (vector) INST2(fminp, "fminp", 0, IF_EN2P, 0x7EB0F800, 0x2EA0F400) // fminp Vd,Vn DV_2Q 011111101X110000 111110nnnnnddddd 7EB0 F800 Vd,Vn (scalar) // fminp Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 111101nnnnnddddd 2EA0 F400 Vd,Vn,Vm (vector) INST2(addp, "addp", 0, IF_EN2Q, 0x5E31B800, 0x0E20BC00) // addp Vd,Vn DV_2S 01011110XX110001 101110nnnnnddddd 5E31 B800 Vd,Vn (scalar) // addp Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101111nnnnnddddd 0E20 BC00 Vd,Vn,Vm (vector) INST1(ldar, "ldar", LD, IF_LS_2A, 0x88DFFC00) // ldar Rt,[Xn] LS_2A 1X00100011011111 111111nnnnnttttt 88DF FC00 INST1(ldarb, "ldarb", LD, IF_LS_2A, 0x08DFFC00) // ldarb Rt,[Xn] LS_2A 0000100011011111 111111nnnnnttttt 08DF FC00 INST1(ldarh, "ldarh", LD, IF_LS_2A, 0x48DFFC00) // ldarh Rt,[Xn] LS_2A 0100100011011111 111111nnnnnttttt 48DF FC00 INST1(ldxr, "ldxr", LD, IF_LS_2A, 0x885F7C00) // ldxr Rt,[Xn] LS_2A 1X00100001011111 011111nnnnnttttt 885F 7C00 INST1(ldxrb, "ldxrb", LD, IF_LS_2A, 0x085F7C00) // ldxrb Rt,[Xn] LS_2A 0000100001011111 011111nnnnnttttt 085F 7C00 INST1(ldxrh, "ldxrh", LD, IF_LS_2A, 0x485F7C00) // ldxrh Rt,[Xn] LS_2A 0100100001011111 011111nnnnnttttt 485F 7C00 INST1(ldaxr, "ldaxr", LD, IF_LS_2A, 0x885FFC00) // ldaxr Rt,[Xn] LS_2A 1X00100001011111 111111nnnnnttttt 885F FC00 INST1(ldaxrb, "ldaxrb", LD, IF_LS_2A, 0x085FFC00) // ldaxrb Rt,[Xn] LS_2A 0000100001011111 111111nnnnnttttt 085F FC00 INST1(ldaxrh, "ldaxrh", LD, IF_LS_2A, 0x485FFC00) // ldaxrh Rt,[Xn] LS_2A 0100100001011111 111111nnnnnttttt 485F FC00 INST1(ldur, "ldur", LD, IF_LS_2C, 0xB8400000) // ldur Rt,[Xn+simm9] LS_2C 1X111000010iiiii iiii00nnnnnttttt B840 0000 [Xn imm(-256..+255)] INST1(ldurb, "ldurb", LD, IF_LS_2C, 0x38400000) // ldurb Rt,[Xn+simm9] LS_2C 00111000010iiiii iiii00nnnnnttttt 3840 0000 [Xn imm(-256..+255)] INST1(ldurh, "ldurh", LD, IF_LS_2C, 0x78400000) // ldurh Rt,[Xn+simm9] LS_2C 01111000010iiiii iiii00nnnnnttttt 7840 0000 [Xn imm(-256..+255)] INST1(ldursb, "ldursb", LD, IF_LS_2C, 0x38800000) // ldursb Rt,[Xn+simm9] LS_2C 001110001X0iiiii iiii00nnnnnttttt 3880 0000 [Xn imm(-256..+255)] INST1(ldursh, "ldursh", LD, IF_LS_2C, 0x78800000) // ldursh Rt,[Xn+simm9] LS_2C 011110001X0iiiii iiii00nnnnnttttt 7880 0000 [Xn imm(-256..+255)] INST1(ldursw, "ldursw", LD, IF_LS_2C, 0xB8800000) // ldursw Rt,[Xn+simm9] LS_2C 10111000100iiiii iiii00nnnnnttttt B880 0000 [Xn imm(-256..+255)] INST1(stlr, "stlr", ST, IF_LS_2A, 0x889FFC00) // stlr Rt,[Xn] LS_2A 1X00100010011111 111111nnnnnttttt 889F FC00 INST1(stlrb, "stlrb", ST, IF_LS_2A, 0x089FFC00) // stlrb Rt,[Xn] LS_2A 0000100010011111 111111nnnnnttttt 089F FC00 INST1(stlrh, "stlrh", ST, IF_LS_2A, 0x489FFC00) // stlrh Rt,[Xn] LS_2A 0100100010011111 111111nnnnnttttt 489F FC00 INST1(stxr, "stxr", ST, IF_LS_3D, 0x88007C00) // stxr Ws, Rt,[Xn] LS_3D 1X001000000sssss 011111nnnnnttttt 8800 7C00 INST1(stxrb, "stxrb", ST, IF_LS_3D, 0x08007C00) // stxrb Ws, Rt,[Xn] LS_3D 00001000000sssss 011111nnnnnttttt 0800 7C00 INST1(stxrh, "stxrh", ST, IF_LS_3D, 0x48007C00) // stxrh Ws, Rt,[Xn] LS_3D 01001000000sssss 011111nnnnnttttt 4800 7C00 INST1(stlxr, "stlxr", ST, IF_LS_3D, 0x8800FC00) // stlxr Ws, Rt,[Xn] LS_3D 1X001000000sssss 111111nnnnnttttt 8800 FC00 INST1(stlxrb, "stlxrb", ST, IF_LS_3D, 0x0800FC00) // stlxrb Ws, Rt,[Xn] LS_3D 00001000000sssss 111111nnnnnttttt 0800 FC00 INST1(stlxrh, "stlxrh", ST, IF_LS_3D, 0x4800FC00) // stlxrh Ws, Rt,[Xn] LS_3D 01001000000sssss 111111nnnnnttttt 4800 FC00 INST1(stur, "stur", ST, IF_LS_2C, 0xB8000000) // stur Rt,[Xn+simm9] LS_2C 1X111000000iiiii iiii00nnnnnttttt B800 0000 [Xn imm(-256..+255)] INST1(sturb, "sturb", ST, IF_LS_2C, 0x38000000) // sturb Rt,[Xn+simm9] LS_2C 00111000000iiiii iiii00nnnnnttttt 3800 0000 [Xn imm(-256..+255)] INST1(sturh, "sturh", ST, IF_LS_2C, 0x78000000) // sturh Rt,[Xn+simm9] LS_2C 01111000000iiiii iiii00nnnnnttttt 7800 0000 [Xn imm(-256..+255)] INST1(casb, "casb", LD|ST, IF_LS_3E, 0x08A07C00) // casb Wm, Wt, [Xn] LS_3E 00001000101mmmmm 011111nnnnnttttt 08A0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casab, "casab", LD|ST, IF_LS_3E, 0x08E07C00) // casab Wm, Wt, [Xn] LS_3E 00001000111mmmmm 011111nnnnnttttt 08E0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casalb, "casalb", LD|ST, IF_LS_3E, 0x08E0FC00) // casalb Wm, Wt, [Xn] LS_3E 00001000111mmmmm 111111nnnnnttttt 08E0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(caslb, "caslb", LD|ST, IF_LS_3E, 0x08A0FC00) // caslb Wm, Wt, [Xn] LS_3E 00001000101mmmmm 111111nnnnnttttt 08A0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(cash, "cash", LD|ST, IF_LS_3E, 0x48A07C00) // cash Wm, Wt, [Xn] LS_3E 01001000101mmmmm 011111nnnnnttttt 48A0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casah, "casah", LD|ST, IF_LS_3E, 0x48E07C00) // casah Wm, Wt, [Xn] LS_3E 01001000111mmmmm 011111nnnnnttttt 48E0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casalh, "casalh", LD|ST, IF_LS_3E, 0x48E0FC00) // casalh Wm, Wt, [Xn] LS_3E 01001000111mmmmm 111111nnnnnttttt 48E0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(caslh, "caslh", LD|ST, IF_LS_3E, 0x48A0FC00) // caslh Wm, Wt, [Xn] LS_3E 01001000101mmmmm 111111nnnnnttttt 48A0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(cas, "cas", LD|ST, IF_LS_3E, 0x88A07C00) // cas Rm, Rt, [Xn] LS_3E 1X001000101mmmmm 011111nnnnnttttt 88A0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casa, "casa", LD|ST, IF_LS_3E, 0x88E07C00) // casa Rm, Rt, [Xn] LS_3E 1X001000111mmmmm 011111nnnnnttttt 88E0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casal, "casal", LD|ST, IF_LS_3E, 0x88E0FC00) // casal Rm, Rt, [Xn] LS_3E 1X001000111mmmmm 111111nnnnnttttt 88E0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casl, "casl", LD|ST, IF_LS_3E, 0x88A0FC00) // casl Rm, Rt, [Xn] LS_3E 1X001000101mmmmm 111111nnnnnttttt 88A0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddb, "ldaddb", LD|ST, IF_LS_3E, 0x38200000) // ldaddb Wm, Wt, [Xn] LS_3E 00111000001mmmmm 000000nnnnnttttt 3820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddab, "ldaddab", LD|ST, IF_LS_3E, 0x38A00000) // ldaddab Wm, Wt, [Xn] LS_3E 00111000101mmmmm 000000nnnnnttttt 38A0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddalb, "ldaddalb", LD|ST, IF_LS_3E, 0x38E00000) // ldaddalb Wm, Wt, [Xn] LS_3E 00111000111mmmmm 000000nnnnnttttt 38E0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddlb, "ldaddlb", LD|ST, IF_LS_3E, 0x38600000) // ldaddlb Wm, Wt, [Xn] LS_3E 00111000011mmmmm 000000nnnnnttttt 3860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddh, "ldaddh", LD|ST, IF_LS_3E, 0x78200000) // ldaddh Wm, Wt, [Xn] LS_3E 01111000001mmmmm 000000nnnnnttttt 7820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddah, "ldaddah", LD|ST, IF_LS_3E, 0x78A00000) // ldaddah Wm, Wt, [Xn] LS_3E 01111000101mmmmm 000000nnnnnttttt 78A0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddalh, "ldaddalh", LD|ST, IF_LS_3E, 0x78E00000) // ldaddalh Wm, Wt, [Xn] LS_3E 01111000111mmmmm 000000nnnnnttttt 78E0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddlh, "ldaddlh", LD|ST, IF_LS_3E, 0x78600000) // ldaddlh Wm, Wt, [Xn] LS_3E 01111000011mmmmm 000000nnnnnttttt 7860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldadd, "ldadd", LD|ST, IF_LS_3E, 0xB8200000) // ldadd Rm, Rt, [Xn] LS_3E 1X111000001mmmmm 000000nnnnnttttt B820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldadda, "ldadda", LD|ST, IF_LS_3E, 0xB8A00000) // ldadda Rm, Rt, [Xn] LS_3E 1X111000101mmmmm 000000nnnnnttttt B8A0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddal, "ldaddal", LD|ST, IF_LS_3E, 0xB8E00000) // ldaddal Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 000000nnnnnttttt B8E0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldclral, "ldclral", LD|ST, IF_LS_3E, 0xB8E01000) // ldclral Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 000100nnnnnttttt B8E0 1000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldsetal, "ldsetal", LD|ST, IF_LS_3E, 0xB8E03000) // ldsetal Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 001100nnnnnttttt B8E0 3000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddl, "ldaddl", LD|ST, IF_LS_3E, 0xB8600000) // ldaddl Rm, Rt, [Xn] LS_3E 1X111000011mmmmm 000000nnnnnttttt B860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddb, "staddb", ST, IF_LS_3E, 0x38200000) // staddb Wm, [Xn] LS_3E 00111000001mmmmm 000000nnnnnttttt 3820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddlb, "staddlb", ST, IF_LS_3E, 0x38600000) // staddlb Wm, [Xn] LS_3E 00111000011mmmmm 000000nnnnnttttt 3860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddh, "staddh", ST, IF_LS_3E, 0x78200000) // staddh Wm, [Xn] LS_3E 01111000001mmmmm 000000nnnnnttttt 7820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddlh, "staddlh", ST, IF_LS_3E, 0x78600000) // staddlh Wm, [Xn] LS_3E 01111000011mmmmm 000000nnnnnttttt 7860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(stadd, "stadd", ST, IF_LS_3E, 0xB8200000) // stadd Rm, [Xn] LS_3E 1X111000001mmmmm 000000nnnnnttttt B820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddl, "staddl", ST, IF_LS_3E, 0xB8600000) // staddl Rm, [Xn] LS_3E 1X111000011mmmmm 000000nnnnnttttt B860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpb, "swpb", LD|ST, IF_LS_3E, 0x38208000) // swpb Wm, Wt, [Xn] LS_3E 00111000001mmmmm 100000nnnnnttttt 3820 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpab, "swpab", LD|ST, IF_LS_3E, 0x38A08000) // swpab Wm, Wt, [Xn] LS_3E 00111000101mmmmm 100000nnnnnttttt 38A0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpalb, "swpalb", LD|ST, IF_LS_3E, 0x38E08000) // swpalb Wm, Wt, [Xn] LS_3E 00111000111mmmmm 100000nnnnnttttt 38E0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swplb, "swplb", LD|ST, IF_LS_3E, 0x38608000) // swplb Wm, Wt, [Xn] LS_3E 00111000011mmmmm 100000nnnnnttttt 3860 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swph, "swph", LD|ST, IF_LS_3E, 0x78208000) // swph Wm, Wt, [Xn] LS_3E 01111000001mmmmm 100000nnnnnttttt 7820 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpah, "swpah", LD|ST, IF_LS_3E, 0x78A08000) // swpah Wm, Wt, [Xn] LS_3E 01111000101mmmmm 100000nnnnnttttt 78A0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpalh, "swpalh", LD|ST, IF_LS_3E, 0x78E08000) // swpalh Wm, Wt, [Xn] LS_3E 01111000111mmmmm 100000nnnnnttttt 78E0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swplh, "swplh", LD|ST, IF_LS_3E, 0x78608000) // swplh Wm, Wt, [Xn] LS_3E 01111000011mmmmm 100000nnnnnttttt 7860 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swp, "swp", LD|ST, IF_LS_3E, 0xB8208000) // swp Rm, Rt, [Xn] LS_3E 1X111000001mmmmm 100000nnnnnttttt B820 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpa, "swpa", LD|ST, IF_LS_3E, 0xB8A08000) // swpa Rm, Rt, [Xn] LS_3E 1X111000101mmmmm 100000nnnnnttttt B8A0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpal, "swpal", LD|ST, IF_LS_3E, 0xB8E08000) // swpal Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 100000nnnnnttttt B8E0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpl, "swpl", LD|ST, IF_LS_3E, 0xB8608000) // swpl Rm, Rt, [Xn] LS_3E 1X111000011mmmmm 100000nnnnnttttt B860 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(adr, "adr", 0, IF_DI_1E, 0x10000000) // adr Rd, simm21 DI_1E 0ii10000iiiiiiii iiiiiiiiiiiddddd 1000 0000 Rd simm21 INST1(adrp, "adrp", 0, IF_DI_1E, 0x90000000) // adrp Rd, simm21 DI_1E 1ii10000iiiiiiii iiiiiiiiiiiddddd 9000 0000 Rd simm21 INST1(b, "b", 0, IF_BI_0A, 0x14000000) // b simm26 BI_0A 000101iiiiiiiiii iiiiiiiiiiiiiiii 1400 0000 simm26:00 INST1(b_tail, "b", 0, IF_BI_0C, 0x14000000) // b simm26 BI_0A 000101iiiiiiiiii iiiiiiiiiiiiiiii 1400 0000 simm26:00, same as b representing a tail call of bl. INST1(bl_local, "bl", 0, IF_BI_0A, 0x94000000) // bl simm26 BI_0A 100101iiiiiiiiii iiiiiiiiiiiiiiii 9400 0000 simm26:00, same as bl, but with a BasicBlock target. INST1(bl, "bl", 0, IF_BI_0C, 0x94000000) // bl simm26 BI_0C 100101iiiiiiiiii iiiiiiiiiiiiiiii 9400 0000 simm26:00 INST1(br, "br", 0, IF_BR_1A, 0xD61F0000) // br Rn BR_1A 1101011000011111 000000nnnnn00000 D61F 0000, an indirect branch like switch expansion INST1(br_tail, "br", 0, IF_BR_1B, 0xD61F0000) // br Rn BR_1B 1101011000011111 000000nnnnn00000 D61F 0000, same as br representing a tail call of blr. Encode target with Reg3. INST1(blr, "blr", 0, IF_BR_1B, 0xD63F0000) // blr Rn BR_1B 1101011000111111 000000nnnnn00000 D63F 0000, Encode target with Reg3. INST1(ret, "ret", 0, IF_BR_1A, 0xD65F0000) // ret Rn BR_1A 1101011001011111 000000nnnnn00000 D65F 0000 INST1(beq, "beq", 0, IF_BI_0B, 0x54000000) // beq simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00000 5400 0000 simm19:00 INST1(bne, "bne", 0, IF_BI_0B, 0x54000001) // bne simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00001 5400 0001 simm19:00 INST1(bhs, "bhs", 0, IF_BI_0B, 0x54000002) // bhs simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00010 5400 0002 simm19:00 INST1(blo, "blo", 0, IF_BI_0B, 0x54000003) // blo simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00011 5400 0003 simm19:00 INST1(bmi, "bmi", 0, IF_BI_0B, 0x54000004) // bmi simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00100 5400 0004 simm19:00 INST1(bpl, "bpl", 0, IF_BI_0B, 0x54000005) // bpl simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00101 5400 0005 simm19:00 INST1(bvs, "bvs", 0, IF_BI_0B, 0x54000006) // bvs simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00110 5400 0006 simm19:00 INST1(bvc, "bvc", 0, IF_BI_0B, 0x54000007) // bvc simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00111 5400 0007 simm19:00 INST1(bhi, "bhi", 0, IF_BI_0B, 0x54000008) // bhi simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01000 5400 0008 simm19:00 INST1(bls, "bls", 0, IF_BI_0B, 0x54000009) // bls simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01001 5400 0009 simm19:00 INST1(bge, "bge", 0, IF_BI_0B, 0x5400000A) // bge simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01010 5400 000A simm19:00 INST1(blt, "blt", 0, IF_BI_0B, 0x5400000B) // blt simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01011 5400 000B simm19:00 INST1(bgt, "bgt", 0, IF_BI_0B, 0x5400000C) // bgt simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01100 5400 000C simm19:00 INST1(ble, "ble", 0, IF_BI_0B, 0x5400000D) // ble simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01101 5400 000D simm19:00 INST1(cbz, "cbz", 0, IF_BI_1A, 0x34000000) // cbz Rt, simm19 BI_1A X0110100iiiiiiii iiiiiiiiiiittttt 3400 0000 Rt simm19:00 INST1(cbnz, "cbnz", 0, IF_BI_1A, 0x35000000) // cbnz Rt, simm19 BI_1A X0110101iiiiiiii iiiiiiiiiiittttt 3500 0000 Rt simm19:00 INST1(tbz, "tbz", 0, IF_BI_1B, 0x36000000) // tbz Rt, imm6, simm14 BI_1B B0110110bbbbbiii iiiiiiiiiiittttt 3600 0000 Rt imm6, simm14:00 INST1(tbnz, "tbnz", 0, IF_BI_1B, 0x37000000) // tbnz Rt, imm6, simm14 BI_1B B0110111bbbbbiii iiiiiiiiiiittttt 3700 0000 Rt imm6, simm14:00 INST1(movk, "movk", 0, IF_DI_1B, 0x72800000) // movk Rd,imm(i16,hw) DI_1B X11100101hwiiiii iiiiiiiiiiiddddd 7280 0000 imm(i16,hw) INST1(movn, "movn", 0, IF_DI_1B, 0x12800000) // movn Rd,imm(i16,hw) DI_1B X00100101hwiiiii iiiiiiiiiiiddddd 1280 0000 imm(i16,hw) INST1(movz, "movz", 0, IF_DI_1B, 0x52800000) // movz Rd,imm(i16,hw) DI_1B X10100101hwiiiii iiiiiiiiiiiddddd 5280 0000 imm(i16,hw) INST1(csel, "csel", 0, IF_DR_3D, 0x1A800000) // csel Rd,Rn,Rm,cond DR_3D X0011010100mmmmm cccc00nnnnnddddd 1A80 0000 cond INST1(csinc, "csinc", 0, IF_DR_3D, 0x1A800400) // csinc Rd,Rn,Rm,cond DR_3D X0011010100mmmmm cccc01nnnnnddddd 1A80 0400 cond INST1(csinv, "csinv", 0, IF_DR_3D, 0x5A800000) // csinv Rd,Rn,Rm,cond DR_3D X1011010100mmmmm cccc00nnnnnddddd 5A80 0000 cond INST1(csneg, "csneg", 0, IF_DR_3D, 0x5A800400) // csneg Rd,Rn,Rm,cond DR_3D X1011010100mmmmm cccc01nnnnnddddd 5A80 0400 cond INST1(cinc, "cinc", 0, IF_DR_2D, 0x1A800400) // cinc Rd,Rn,cond DR_2D X0011010100nnnnn cccc01nnnnnddddd 1A80 0400 cond INST1(cinv, "cinv", 0, IF_DR_2D, 0x5A800000) // cinv Rd,Rn,cond DR_2D X1011010100nnnnn cccc00nnnnnddddd 5A80 0000 cond INST1(cneg, "cneg", 0, IF_DR_2D, 0x5A800400) // cneg Rd,Rn,cond DR_2D X1011010100nnnnn cccc01nnnnnddddd 5A80 0400 cond INST1(cset, "cset", 0, IF_DR_1D, 0x1A9F07E0) // cset Rd,cond DR_1D X001101010011111 cccc0111111ddddd 1A9F 07E0 Rd cond INST1(csetm, "csetm", 0, IF_DR_1D, 0x5A9F03E0) // csetm Rd,cond DR_1D X101101010011111 cccc0011111ddddd 5A9F 03E0 Rd cond INST1(aese, "aese", 0, IF_DV_2P, 0x4E284800) // aese Vd.16B,Vn.16B DV_2P 0100111000101000 010010nnnnnddddd 4E28 4800 Vd.16B Vn.16B (vector) INST1(aesd, "aesd", 0, IF_DV_2P, 0x4E285800) // aesd Vd.16B,Vn.16B DV_2P 0100111000101000 010110nnnnnddddd 4E28 5800 Vd.16B Vn.16B (vector) INST1(aesmc, "aesmc", 0, IF_DV_2P, 0x4E286800) // aesmc Vd.16B,Vn.16B DV_2P 0100111000101000 011010nnnnnddddd 4E28 6800 Vd.16B Vn.16B (vector) INST1(aesimc, "aesimc", 0, IF_DV_2P, 0x4E287800) // aesimc Vd.16B,Vn.16B DV_2P 0100111000101000 011110nnnnnddddd 4E28 7800 Vd.16B Vn.16B (vector) INST1(rev, "rev", 0, IF_DR_2G, 0x5AC00800) // rev Rd,Rm DR_2G X101101011000000 00001Xnnnnnddddd 5AC0 0800 Rd Rn INST1(rev64, "rev64", 0, IF_DV_2M, 0x0E200800) // rev64 Vd,Vn DV_2M 0Q001110XX100000 000010nnnnnddddd 0E20 0800 Vd,Vn (vector) INST1(adc, "adc", 0, IF_DR_3A, 0x1A000000) // adc Rd,Rn,Rm DR_3A X0011010000mmmmm 000000nnnnnddddd 1A00 0000 INST1(adcs, "adcs", 0, IF_DR_3A, 0x3A000000) // adcs Rd,Rn,Rm DR_3A X0111010000mmmmm 000000nnnnnddddd 3A00 0000 INST1(sbc, "sbc", 0, IF_DR_3A, 0x5A000000) // sdc Rd,Rn,Rm DR_3A X1011010000mmmmm 000000nnnnnddddd 5A00 0000 INST1(sbcs, "sbcs", 0, IF_DR_3A, 0x7A000000) // sdcs Rd,Rn,Rm DR_3A X1111010000mmmmm 000000nnnnnddddd 7A00 0000 INST1(udiv, "udiv", 0, IF_DR_3A, 0x1AC00800) // udiv Rd,Rn,Rm DR_3A X0011010110mmmmm 000010nnnnnddddd 1AC0 0800 INST1(sdiv, "sdiv", 0, IF_DR_3A, 0x1AC00C00) // sdiv Rd,Rn,Rm DR_3A X0011010110mmmmm 000011nnnnnddddd 1AC0 0C00 INST1(mneg, "mneg", 0, IF_DR_3A, 0x1B00FC00) // mneg Rd,Rn,Rm DR_3A X0011011000mmmmm 111111nnnnnddddd 1B00 FC00 INST1(madd, "madd", 0, IF_DR_4A, 0x1B000000) // madd Rd,Rn,Rm,Ra DR_4A X0011011000mmmmm 0aaaaannnnnddddd 1B00 0000 INST1(msub, "msub", 0, IF_DR_4A, 0x1B008000) // msub Rd,Rn,Rm,Ra DR_4A X0011011000mmmmm 1aaaaannnnnddddd 1B00 8000 INST1(smaddl, "smaddl", 0, IF_DR_4A, 0x9B200000) // smaddl Rd,Rn,Rm,Ra DR_4A 10011011001mmmmm 0aaaaannnnnddddd 9B20 0000 INST1(smnegl, "smnegl", 0, IF_DR_3A, 0x9B20FC00) // smnegl Rd,Rn,Rm DR_3A 10011011001mmmmm 111111nnnnnddddd 9B20 FC00 INST1(smsubl, "smsubl", 0, IF_DR_4A, 0x9B208000) // smsubl Rd,Rn,Rm,Ra DR_4A 10011011001mmmmm 1aaaaannnnnddddd 9B20 8000 INST1(smulh, "smulh", 0, IF_DR_3A, 0x9B407C00) // smulh Rd,Rn,Rm DR_3A 10011011010mmmmm 011111nnnnnddddd 9B40 7C00 INST1(umaddl, "umaddl", 0, IF_DR_4A, 0x9BA00000) // umaddl Rd,Rn,Rm,Ra DR_4A 10011011101mmmmm 0aaaaannnnnddddd 9BA0 0000 INST1(umnegl, "umnegl", 0, IF_DR_3A, 0x9BA0FC00) // umnegl Rd,Rn,Rm DR_3A 10011011101mmmmm 111111nnnnnddddd 9BA0 FC00 INST1(umsubl, "umsubl", 0, IF_DR_4A, 0x9BA08000) // umsubl Rd,Rn,Rm,Ra DR_4A 10011011101mmmmm 1aaaaannnnnddddd 9BA0 8000 INST1(umulh, "umulh", 0, IF_DR_3A, 0x9BC07C00) // umulh Rd,Rn,Rm DR_3A 10011011110mmmmm 011111nnnnnddddd 9BC0 7C00 INST1(extr, "extr", 0, IF_DR_3E, 0x13800000) // extr Rd,Rn,Rm,imm6 DR_3E X00100111X0mmmmm ssssssnnnnnddddd 1380 0000 imm(0-63) INST1(lslv, "lslv", 0, IF_DR_3A, 0x1AC02000) // lslv Rd,Rn,Rm DR_3A X0011010110mmmmm 001000nnnnnddddd 1AC0 2000 INST1(lsrv, "lsrv", 0, IF_DR_3A, 0x1AC02400) // lsrv Rd,Rn,Rm DR_3A X0011010110mmmmm 001001nnnnnddddd 1AC0 2400 INST1(asrv, "asrv", 0, IF_DR_3A, 0x1AC02800) // asrv Rd,Rn,Rm DR_3A X0011010110mmmmm 001010nnnnnddddd 1AC0 2800 INST1(rorv, "rorv", 0, IF_DR_3A, 0x1AC02C00) // rorv Rd,Rn,Rm DR_3A X0011010110mmmmm 001011nnnnnddddd 1AC0 2C00 INST1(crc32b, "crc32b", 0, IF_DR_3A, 0x1AC04000) // crc32b Rd,Rn,Rm DR_3A 00011010110mmmmm 010000nnnnnddddd 1AC0 4000 INST1(crc32h, "crc32h", 0, IF_DR_3A, 0x1AC04400) // crc32h Rd,Rn,Rm DR_3A 00011010110mmmmm 010001nnnnnddddd 1AC0 4400 INST1(crc32w, "crc32w", 0, IF_DR_3A, 0x1AC04800) // crc32w Rd,Rn,Rm DR_3A 00011010110mmmmm 010010nnnnnddddd 1AC0 4800 INST1(crc32x, "crc32x", 0, IF_DR_3A, 0x9AC04C00) // crc32x Rd,Rn,Xm DR_3A 10011010110mmmmm 010011nnnnnddddd 9AC0 4C00 INST1(crc32cb, "crc32cb", 0, IF_DR_3A, 0x1AC05000) // crc32cb Rd,Rn,Rm DR_3A 00011010110mmmmm 010100nnnnnddddd 1AC0 5000 INST1(crc32ch, "crc32ch", 0, IF_DR_3A, 0x1AC05400) // crc32ch Rd,Rn,Rm DR_3A 00011010110mmmmm 010101nnnnnddddd 1AC0 5400 INST1(crc32cw, "crc32cw", 0, IF_DR_3A, 0x1AC05800) // crc32cw Rd,Rn,Rm DR_3A 00011010110mmmmm 010110nnnnnddddd 1AC0 5800 INST1(crc32cx, "crc32cx", 0, IF_DR_3A, 0x9AC05C00) // crc32cx Rd,Rn,Xm DR_3A 10011010110mmmmm 010111nnnnnddddd 9AC0 5C00 INST1(sha1c, "sha1c", 0, IF_DV_3F, 0x5E000000) // sha1c Qd, Sn Vm.4S DV_3F 01011110000mmmmm 000000nnnnnddddd 5E00 0000 Qd Sn Vm.4S (vector) INST1(sha1m, "sha1m", 0, IF_DV_3F, 0x5E002000) // sha1m Qd, Sn Vm.4S DV_3F 01011110000mmmmm 001000nnnnnddddd 5E00 0000 Qd Sn Vm.4S (vector) INST1(sha1p, "sha1p", 0, IF_DV_3F, 0x5E001000) // sha1m Qd, Sn Vm.4S DV_3F 01011110000mmmmm 000100nnnnnddddd 5E00 0000 Qd Sn Vm.4S (vector) INST1(sha1h, "sha1h", 0, IF_DV_2U, 0x5E280800) // sha1h Sd, Sn DV_2U 0101111000101000 000010nnnnnddddd 5E28 0800 Sn Sn INST1(sha1su0, "sha1su0", 0, IF_DV_3F, 0x5E003000) // sha1su0 Vd.4S,Vn.4S,Vm.4S DV_3F 01011110000mmmmm 001100nnnnnddddd 5E00 3000 Vd.4S Vn.4S Vm.4S (vector) INST1(sha1su1, "sha1su1", 0, IF_DV_2P, 0x5E281800) // sha1su1 Vd.4S, Vn.4S DV_2P 0101111000101000 000110nnnnnddddd 5E28 1800 Vd.4S Vn.4S (vector) INST1(sha256h, "sha256h", 0, IF_DV_3F, 0x5E004000) // sha256h Qd,Qn,Vm.4S DV_3F 01011110000mmmmm 010000nnnnnddddd 5E00 4000 Qd Qn Vm.4S (vector) INST1(sha256h2, "sha256h2", 0, IF_DV_3F, 0x5E005000) // sha256h Qd,Qn,Vm.4S DV_3F 01011110000mmmmm 010100nnnnnddddd 5E00 5000 Qd Qn Vm.4S (vector) INST1(sha256su0, "sha256su0", 0, IF_DV_2P, 0x5E282800) // sha256su0 Vd.4S,Vn.4S DV_2P 0101111000101000 001010nnnnnddddd 5E28 2800 Vd.4S Vn.4S (vector) INST1(sha256su1, "sha256su1", 0, IF_DV_3F, 0x5E006000) // sha256su1 Vd.4S,Vn.4S,Vm.4S DV_3F 01011110000mmmmm 011000nnnnnddddd 5E00 6000 Vd.4S Vn.4S Vm.4S (vector) INST1(ext, "ext", 0, IF_DV_3G, 0x2E000000) // ext Vd,Vn,Vm,index DV_3G 0Q101110000mmmmm 0iiii0nnnnnddddd 2E00 0000 Vd Vn Vm index (vector) INST1(sbfm, "sbfm", 0, IF_DI_2D, 0x13000000) // sbfm Rd,Rn,imr,ims DI_2D X00100110Nrrrrrr ssssssnnnnnddddd 1300 0000 imr, ims INST1(bfm, "bfm", 0, IF_DI_2D, 0x33000000) // bfm Rd,Rn,imr,ims DI_2D X01100110Nrrrrrr ssssssnnnnnddddd 3300 0000 imr, ims INST1(ubfm, "ubfm", 0, IF_DI_2D, 0x53000000) // ubfm Rd,Rn,imr,ims DI_2D X10100110Nrrrrrr ssssssnnnnnddddd 5300 0000 imr, ims INST1(sbfiz, "sbfiz", 0, IF_DI_2D, 0x13000000) // sbfiz Rd,Rn,lsb,width DI_2D X00100110Nrrrrrr ssssssnnnnnddddd 1300 0000 imr, ims INST1(bfi, "bfi", 0, IF_DI_2D, 0x33000000) // bfi Rd,Rn,lsb,width DI_2D X01100110Nrrrrrr ssssssnnnnnddddd 3300 0000 imr, ims INST1(ubfiz, "ubfiz", 0, IF_DI_2D, 0x53000000) // ubfiz Rd,Rn,lsb,width DI_2D X10100110Nrrrrrr ssssssnnnnnddddd 5300 0000 imr, ims INST1(sbfx, "sbfx", 0, IF_DI_2D, 0x13000000) // sbfx Rd,Rn,lsb,width DI_2D X00100110Nrrrrrr ssssssnnnnnddddd 1300 0000 imr, ims INST1(bfxil, "bfxil", 0, IF_DI_2D, 0x33000000) // bfxil Rd,Rn,lsb,width DI_2D X01100110Nrrrrrr ssssssnnnnnddddd 3300 0000 imr, ims INST1(ubfx, "ubfx", 0, IF_DI_2D, 0x53000000) // ubfx Rd,Rn,lsb,width DI_2D X10100110Nrrrrrr ssssssnnnnnddddd 5300 0000 imr, ims INST1(sxtb, "sxtb", 0, IF_DR_2H, 0x13001C00) // sxtb Rd,Rn DR_2H X00100110X000000 000111nnnnnddddd 1300 1C00 INST1(sxth, "sxth", 0, IF_DR_2H, 0x13003C00) // sxth Rd,Rn DR_2H X00100110X000000 001111nnnnnddddd 1300 3C00 INST1(sxtw, "sxtw", 0, IF_DR_2H, 0x13007C00) // sxtw Rd,Rn DR_2H X00100110X000000 011111nnnnnddddd 1300 7C00 INST1(uxtb, "uxtb", 0, IF_DR_2H, 0x53001C00) // uxtb Rd,Rn DR_2H 0101001100000000 000111nnnnnddddd 5300 1C00 INST1(uxth, "uxth", 0, IF_DR_2H, 0x53003C00) // uxth Rd,Rn DR_2H 0101001100000000 001111nnnnnddddd 5300 3C00 INST1(nop, "nop", 0, IF_SN_0A, 0xD503201F) // nop SN_0A 1101010100000011 0010000000011111 D503 201F INST1(yield, "yield", 0, IF_SN_0A, 0xD503203F) // yield SN_0A 1101010100000011 0010000000111111 D503 203F INST1(brk_windows, "brk_windows", 0, IF_SI_0A, 0xD43E0000) // brk (windows) SI_0A 1101010000111110 0000000000000000 D43E 0000 0xF000 INST1(brk_unix, "brk_unix", 0, IF_SI_0A, 0xD4200000) // brk imm16 SI_0A 11010100001iiiii iiiiiiiiiii00000 D420 0000 imm16 INST1(dsb, "dsb", 0, IF_SI_0B, 0xD503309F) // dsb barrierKind SI_0B 1101010100000011 0011bbbb10011111 D503 309F imm4 - barrier kind INST1(dmb, "dmb", 0, IF_SI_0B, 0xD50330BF) // dmb barrierKind SI_0B 1101010100000011 0011bbbb10111111 D503 30BF imm4 - barrier kind INST1(isb, "isb", 0, IF_SI_0B, 0xD50330DF) // isb barrierKind SI_0B 1101010100000011 0011bbbb11011111 D503 30DF imm4 - barrier kind INST1(dczva, "dczva", 0, IF_SR_1A, 0xD50B7420) // dc zva,Rt SR_1A 1101010100001011 01110100001ttttt D50B 7420 Rt INST1(umov, "umov", 0, IF_DV_2B, 0x0E003C00) // umov Rd,Vn[] DV_2B 0Q001110000iiiii 001111nnnnnddddd 0E00 3C00 Rd,Vn[] INST1(smov, "smov", 0, IF_DV_2B, 0x0E002C00) // smov Rd,Vn[] DV_2B 0Q001110000iiiii 001011nnnnnddddd 0E00 3C00 Rd,Vn[] INST1(movi, "movi", 0, IF_DV_1B, 0x0F000400) // movi Vd,imm8 DV_1B 0QX0111100000iii cmod01iiiiiddddd 0F00 0400 Vd imm8 (immediate vector) INST1(mvni, "mvni", 0, IF_DV_1B, 0x2F000400) // mvni Vd,imm8 DV_1B 0Q10111100000iii cmod01iiiiiddddd 2F00 0400 Vd imm8 (immediate vector) INST1(urecpe, "urecpe", 0, IF_DV_2A, 0x0EA1C800) // urecpe Vd,Vn DV_2A 0Q0011101X100001 110010nnnnnddddd 0EA1 C800 Vd,Vn (vector) INST1(ursqrte, "ursqrte", 0, IF_DV_2A, 0x2EA1C800) // ursqrte Vd,Vn DV_2A 0Q1011101X100001 110010nnnnnddddd 2EA1 C800 Vd,Vn (vector) INST1(bsl, "bsl", 0, IF_DV_3C, 0x2E601C00) // bsl Vd,Vn,Vm DV_3C 0Q101110011mmmmm 000111nnnnnddddd 2E60 1C00 Vd,Vn,Vm INST1(bit, "bit", 0, IF_DV_3C, 0x2EA01C00) // bit Vd,Vn,Vm DV_3C 0Q101110101mmmmm 000111nnnnnddddd 2EA0 1C00 Vd,Vn,Vm INST1(bif, "bif", 0, IF_DV_3C, 0x2EE01C00) // bif Vd,Vn,Vm DV_3C 0Q101110111mmmmm 000111nnnnnddddd 2EE0 1C00 Vd,Vn,Vm INST1(addv, "addv", 0, IF_DV_2T, 0x0E31B800) // addv Vd,Vn DV_2T 0Q001110XX110001 101110nnnnnddddd 0E31 B800 Vd,Vn (vector) INST1(cnt, "cnt", 0, IF_DV_2M, 0x0E205800) // cnt Vd,Vn DV_2M 0Q00111000100000 010110nnnnnddddd 0E20 5800 Vd,Vn (vector) INST1(not, "not", 0, IF_DV_2M, 0x2E205800) // not Vd,Vn DV_2M 0Q10111000100000 010110nnnnnddddd 2E20 5800 Vd,Vn (vector) INST1(saddlv, "saddlv", LNG, IF_DV_2T, 0x0E303800) // saddlv Vd,Vn DV_2T 0Q001110XX110000 001110nnnnnddddd 0E30 3800 Vd,Vn (vector) INST1(smaxv, "smaxv", 0, IF_DV_2T, 0x0E30A800) // smaxv Vd,Vn DV_2T 0Q001110XX110000 101010nnnnnddddd 0E30 A800 Vd,Vn (vector) INST1(sminv, "sminv", 0, IF_DV_2T, 0x0E31A800) // sminv Vd,Vn DV_2T 0Q001110XX110001 101010nnnnnddddd 0E31 A800 Vd,Vn (vector) INST1(uaddlv, "uaddlv", 0, IF_DV_2T, 0x2E303800) // uaddlv Vd,Vn DV_2T 0Q101110XX110000 001110nnnnnddddd 2E30 3800 Vd,Vn (vector) INST1(umaxv, "umaxv", 0, IF_DV_2T, 0x2E30A800) // umaxv Vd,Vn DV_2T 0Q101110XX110000 101010nnnnnddddd 2E30 A800 Vd,Vn (vector) INST1(uminv, "uminv", 0, IF_DV_2T, 0x2E31A800) // uminv Vd,Vn DV_2T 0Q101110XX110001 101010nnnnnddddd 2E31 A800 Vd,Vn (vector) INST1(fmaxnmv, "fmaxnmv", 0, IF_DV_2R, 0x2E30C800) // fmaxnmv Vd,Vn DV_2R 0Q1011100X110000 110010nnnnnddddd 2E30 C800 Vd,Vn (vector) INST1(fmaxv, "fmaxv", 0, IF_DV_2R, 0x2E30F800) // fmaxv Vd,Vn DV_2R 0Q1011100X110000 111110nnnnnddddd 2E30 F800 Vd,Vn (vector) INST1(fminnmv, "fminnmv", 0, IF_DV_2R, 0x2EB0C800) // fminnmv Vd,Vn DV_2R 0Q1011101X110000 110010nnnnnddddd 2EB0 C800 Vd,Vn (vector) INST1(fminv, "fminv", 0, IF_DV_2R, 0x2EB0F800) // fminv Vd,Vn DV_2R 0Q1011101X110000 111110nnnnnddddd 2EB0 F800 Vd,Vn (vector) INST1(uzp1, "uzp1", 0, IF_DV_3A, 0x0E001800) // uzp1 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 000110nnnnnddddd 0E00 1800 Vd,Vn,Vm (vector) INST1(uzp2, "uzp2", 0, IF_DV_3A, 0x0E005800) // upz2 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 010110nnnnnddddd 0E00 5800 Vd,Vn,Vm (vector) INST1(zip1, "zip1", 0, IF_DV_3A, 0x0E003800) // zip1 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 011110nnnnnddddd 0E00 3800 Vd,Vn,Vm (vector) INST1(zip2, "zip2", 0, IF_DV_3A, 0x0E007800) // zip2 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 001110nnnnnddddd 0E00 7800 Vd,Vn,Vm (vector) INST1(trn1, "trn1", 0, IF_DV_3A, 0x0E002800) // trn1 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 001010nnnnnddddd 0E00 2800 Vd,Vn,Vm (vector) INST1(trn2, "trn2", 0, IF_DV_3A, 0x0E006800) // trn2 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 011010nnnnnddddd 0E00 6800 Vd,Vn,Vm (vector) INST1(sqxtn2, "sqxtn2", NRW, IF_DV_2M, 0x0E214800) // sqxtn2 Vd,Vn DV_2M 0Q001110XX100001 010010nnnnnddddd 0E21 4800 Vd,Vn (vector) INST1(sqxtun2, "sqxtun2", NRW, IF_DV_2M, 0x2E212800) // sqxtnu2 Vd,Vn DV_2M 0Q101110XX100001 001010nnnnnddddd 2E21 2800 Vd,Vn (vector) INST1(uqxtn2, "uqxtn2", NRW, IF_DV_2M, 0x2E214800) // uqxtn2 Vd,Vn DV_2M 0Q101110XX100001 010010nnnnnddddd 2E21 4800 Vd,Vn (vector) INST1(xtn, "xtn", NRW, IF_DV_2M, 0x0E212800) // xtn Vd,Vn DV_2M 00101110XX110000 001110nnnnnddddd 0E21 2800 Vd,Vn (vector) INST1(xtn2, "xtn2", NRW, IF_DV_2M, 0x4E212800) // xtn2 Vd,Vn DV_2M 01101110XX110000 001110nnnnnddddd 4E21 2800 Vd,Vn (vector) INST1(fnmul, "fnmul", 0, IF_DV_3D, 0x1E208800) // fnmul Vd,Vn,Vm DV_3D 000111100X1mmmmm 100010nnnnnddddd 1E20 8800 Vd,Vn,Vm (scalar) INST1(fmadd, "fmadd", 0, IF_DV_4A, 0x1F000000) // fmadd Vd,Va,Vn,Vm DV_4A 000111110X0mmmmm 0aaaaannnnnddddd 1F00 0000 Vd Vn Vm Va (scalar) INST1(fmsub, "fmsub", 0, IF_DV_4A, 0x1F008000) // fmsub Vd,Va,Vn,Vm DV_4A 000111110X0mmmmm 1aaaaannnnnddddd 1F00 8000 Vd Vn Vm Va (scalar) INST1(fnmadd, "fnmadd", 0, IF_DV_4A, 0x1F200000) // fnmadd Vd,Va,Vn,Vm DV_4A 000111110X1mmmmm 0aaaaannnnnddddd 1F20 0000 Vd Vn Vm Va (scalar) INST1(fnmsub, "fnmsub", 0, IF_DV_4A, 0x1F208000) // fnmsub Vd,Va,Vn,Vm DV_4A 000111110X1mmmmm 1aaaaannnnnddddd 1F20 8000 Vd Vn Vm Va (scalar) INST1(fcvt, "fcvt", 0, IF_DV_2J, 0x1E224000) // fcvt Vd,Vn DV_2J 00011110SS10001D D10000nnnnnddddd 1E22 4000 Vd,Vn INST1(pmul, "pmul", 0, IF_DV_3A, 0x2E209C00) // pmul Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100111nnnnnddddd 2E20 9C00 Vd,Vn,Vm (vector) INST1(saba, "saba", 0, IF_DV_3A, 0x0E207C00) // saba Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011111nnnnnddddd 0E20 7C00 Vd,Vn,Vm (vector) INST1(sabd, "sabd", 0, IF_DV_3A, 0x0E207400) // sabd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011101nnnnnddddd 0E20 7400 Vd,Vn,Vm (vector) INST1(smax, "smax", 0, IF_DV_3A, 0x0E206400) // smax Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011001nnnnnddddd 0E20 6400 Vd,Vn,Vm (vector) INST1(smaxp, "smaxp", 0, IF_DV_3A, 0x0E20A400) // smaxp Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101001nnnnnddddd 0E20 A400 Vd,Vn,Vm (vector) INST1(smin, "smin", 0, IF_DV_3A, 0x0E206C00) // smax Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011011nnnnnddddd 0E20 6C00 Vd,Vn,Vm (vector) INST1(sminp, "sminp", 0, IF_DV_3A, 0x0E20AC00) // smax Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101011nnnnnddddd 0E20 AC00 Vd,Vn,Vm (vector) INST1(uaba, "uaba", 0, IF_DV_3A, 0x2E207C00) // uaba Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011111nnnnnddddd 2E20 7C00 Vd,Vn,Vm (vector) INST1(uabd, "uabd", 0, IF_DV_3A, 0x2E207400) // uabd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011101nnnnnddddd 2E20 7400 Vd,Vn,Vm (vector) INST1(umax, "umax", 0, IF_DV_3A, 0x2E206400) // umax Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011001nnnnnddddd 2E20 6400 Vd,Vn,Vm (vector) INST1(umaxp, "umaxp", 0, IF_DV_3A, 0x2E20A400) // umaxp Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 101001nnnnnddddd 2E20 A400 Vd,Vn,Vm (vector) INST1(umin, "umin", 0, IF_DV_3A, 0x2E206C00) // umin Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011011nnnnnddddd 2E20 6C00 Vd,Vn,Vm (vector) INST1(uminp, "uminp", 0, IF_DV_3A, 0x2E20AC00) // umin Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 101011nnnnnddddd 2E20 AC00 Vd,Vn,Vm (vector) INST1(fcvtl, "fcvtl", LNG, IF_DV_2A, 0x0E217800) // fcvtl Vd,Vn DV_2A 000011100X100001 011110nnnnnddddd 0E21 7800 Vd,Vn (vector) INST1(fcvtl2, "fcvtl2", LNG, IF_DV_2A, 0x4E217800) // fcvtl2 Vd,Vn DV_2A 040011100X100001 011110nnnnnddddd 4E21 7800 Vd,Vn (vector) INST1(fcvtn, "fcvtn", NRW, IF_DV_2A, 0x0E216800) // fcvtn Vd,Vn DV_2A 000011100X100001 011010nnnnnddddd 0E21 6800 Vd,Vn (vector) INST1(fcvtn2, "fcvtn2", NRW, IF_DV_2A, 0x4E216800) // fcvtn2 Vd,Vn DV_2A 040011100X100001 011010nnnnnddddd 4E21 6800 Vd,Vn (vector) INST1(fcvtxn2, "fcvtxn2", NRW, IF_DV_2A, 0x6E616800) // fcvtxn2 Vd,Vn DV_2A 0110111001100001 011010nnnnnddddd 6E61 6800 Vd,Vn (vector) INST1(frecpx, "frecpx", 0, IF_DV_2G, 0x5EA1F800) // frecpx Vd,Vn DV_2G 010111101X100001 111110nnnnnddddd 5EA1 F800 Vd,Vn (scalar) INST1(addhn, "addhn", NRW, IF_DV_3A, 0x0E204000) // addhn Vd,Vn,Vm DV_3A 00001110XX1mmmmm 010000nnnnnddddd 0E20 4000 Vd,Vn,Vm (vector) INST1(addhn2, "addhn2", NRW, IF_DV_3A, 0x4E204000) // addhn2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 010000nnnnnddddd 4E20 4000 Vd,Vn,Vm (vector) INST1(pmull, "pmull", LNG, IF_DV_3A, 0x0E20E000) // pmull Vd,Vn,Vm DV_3A 00001110XX1mmmmm 111000nnnnnddddd 0E20 E000 Vd,Vn,Vm (vector) INST1(pmull2, "pmull2", LNG, IF_DV_3A, 0x4E20E000) // pmull2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 111000nnnnnddddd 4E20 E000 Vd,Vn,Vm (vector) INST1(raddhn, "raddhn", NRW, IF_DV_3A, 0x2E204000) // raddhn Vd,Vn,Vm DV_3A 00101110XX1mmmmm 010000nnnnnddddd 2E20 4000 Vd,Vn,Vm (vector) INST1(raddhn2, "raddhn2", NRW, IF_DV_3A, 0x6E204000) // raddhn2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 010000nnnnnddddd 6E20 4000 Vd,Vn,Vm (vector) INST1(rsubhn, "rsubhn", NRW, IF_DV_3A, 0x2E206000) // rsubhn Vd,Vn,Vm DV_3A 00101110XX1mmmmm 011000nnnnnddddd 2E20 6000 Vd,Vn,Vm (vector) INST1(rsubhn2, "rsubhn2", NRW, IF_DV_3A, 0x6E206000) // rsubhn2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 011000nnnnnddddd 6E20 6000 Vd,Vn,Vm (vector) INST1(sabal, "sabal", LNG, IF_DV_3A, 0x0E205000) // sabal Vd,Vn,Vm DV_3A 00001110XX1mmmmm 010100nnnnnddddd 0E20 5000 Vd,Vn,Vm (vector) INST1(sabal2, "sabal2", LNG, IF_DV_3A, 0x4E205000) // sabal2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 010100nnnnnddddd 4E20 5000 Vd,Vn,Vm (vector) INST1(sabdl, "sabdl", LNG, IF_DV_3A, 0x0E207000) // sabdl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 011100nnnnnddddd 0E20 7000 Vd,Vn,Vm (vector) INST1(sabdl2, "sabdl2", LNG, IF_DV_3A, 0x4E207000) // sabdl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 011100nnnnnddddd 4E20 7000 Vd,Vn,Vm (vector) INST1(sadalp, "sadalp", LNG, IF_DV_2T, 0x0E206800) // sadalp Vd,Vn DV_2T 0Q001110XX100000 011010nnnnnddddd 0E20 6800 Vd,Vn (vector) INST1(saddl, "saddl", LNG, IF_DV_3A, 0x0E200000) // saddl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 000000nnnnnddddd 0E20 0000 Vd,Vn,Vm (vector) INST1(saddl2, "saddl2", LNG, IF_DV_3A, 0x4E200000) // saddl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 000000nnnnnddddd 4E20 0000 Vd,Vn,Vm (vector) INST1(saddlp, "saddlp", LNG, IF_DV_2T, 0x0E202800) // saddlp Vd,Vn DV_2T 0Q001110XX100000 001010nnnnnddddd 0E20 2800 Vd,Vn (vector) INST1(saddw, "saddw", WID, IF_DV_3A, 0x0E201000) // saddw Vd,Vn,Vm DV_3A 00001110XX1mmmmm 000100nnnnnddddd 0E20 1000 Vd,Vn,Vm (vector) INST1(saddw2, "saddw2", WID, IF_DV_3A, 0x4E201000) // saddw2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 000100nnnnnddddd 4E20 1000 Vd,Vn,Vm (vector) INST1(shadd, "shadd", 0, IF_DV_3A, 0x0E200400) // shadd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 000001nnnnnddddd 0E20 0400 Vd,Vn,Vm (vector) INST1(shsub, "shsub", 0, IF_DV_3A, 0x0E202400) // shsub Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001001nnnnnddddd 0E20 2400 Vd,Vn,Vm (vector) INST1(srhadd, "srhadd", 0, IF_DV_3A, 0x0E201400) // srhadd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 000101nnnnnddddd 0E20 1400 Vd,Vn,Vm (vector) INST1(ssubl, "ssubl", LNG, IF_DV_3A, 0x0E202000) // ssubl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 001000nnnnnddddd 0E20 2000 Vd,Vn,Vm (vector) INST1(ssubl2, "ssubl2", LNG, IF_DV_3A, 0x4E202000) // ssubl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 001000nnnnnddddd 4E20 2000 Vd,Vn,Vm (vector) INST1(ssubw, "ssubw", WID, IF_DV_3A, 0x0E203000) // ssubw Vd,Vn,Vm DV_3A 00001110XX1mmmmm 001100nnnnnddddd 0E20 3000 Vd,Vn,Vm (vector) INST1(ssubw2, "ssubw2", WID, IF_DV_3A, 0x4E203000) // ssubw2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 001100nnnnnddddd 4E20 3000 Vd,Vn,Vm (vector) INST1(subhn, "subhn", NRW, IF_DV_3A, 0x0E206000) // subhn Vd,Vn,Vm DV_3A 00001110XX1mmmmm 011000nnnnnddddd 0E20 6000 Vd,Vn,Vm (vector) INST1(subhn2, "subhn2", NRW, IF_DV_3A, 0x4E206000) // subhn2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 011000nnnnnddddd 4E20 6000 Vd,Vn,Vm (vector) INST1(uabal, "uabal", LNG, IF_DV_3A, 0x2E205000) // uabal Vd,Vn,Vm DV_3A 00101110XX1mmmmm 010100nnnnnddddd 2E20 5000 Vd,Vn,Vm (vector) INST1(uabal2, "uabal2", LNG, IF_DV_3A, 0x6E205000) // uabal2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 010100nnnnnddddd 6E20 5000 Vd,Vn,Vm (vector) INST1(uabdl, "uabdl", LNG, IF_DV_3A, 0x2E207000) // uabdl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 011100nnnnnddddd 2E20 7000 Vd,Vn,Vm (vector) INST1(uabdl2, "uabdl2", LNG, IF_DV_3A, 0x6E207000) // uabdl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 011100nnnnnddddd 6E20 7000 Vd,Vn,Vm (vector) INST1(uadalp, "uadalp", LNG, IF_DV_2T, 0x2E206800) // uadalp Vd,Vn DV_2T 0Q101110XX100000 011010nnnnnddddd 2E20 6800 Vd,Vn (vector) INST1(uaddl, "uaddl", LNG, IF_DV_3A, 0x2E200000) // uaddl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 000000nnnnnddddd 2E20 0000 Vd,Vn,Vm (vector) INST1(uaddl2, "uaddl2", LNG, IF_DV_3A, 0x6E200000) // uaddl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 000000nnnnnddddd 6E20 0000 Vd,Vn,Vm (vector) INST1(uaddlp, "uaddlp", LNG, IF_DV_2T, 0x2E202800) // uaddlp Vd,Vn DV_2T 0Q101110XX100000 001010nnnnnddddd 2E20 2800 Vd,Vn (vector) INST1(uaddw, "uaddw", WID, IF_DV_3A, 0x2E201000) // uaddw Vd,Vn,Vm DV_3A 00101110XX1mmmmm 000100nnnnnddddd 2E20 1000 Vd,Vn,Vm (vector) INST1(uaddw2, "uaddw2", WID, IF_DV_3A, 0x6E201000) // uaddw2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 000100nnnnnddddd 6E20 1000 Vd,Vn,Vm (vector) INST1(uhadd, "uhadd", 0, IF_DV_3A, 0x2E200400) // uhadd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 000001nnnnnddddd 2E20 0400 Vd,Vn,Vm (vector) INST1(uhsub, "uhsub", 0, IF_DV_3A, 0x2E202400) // uhsub Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001001nnnnnddddd 2E20 2400 Vd,Vn,Vm (vector) INST1(urhadd, "urhadd", 0, IF_DV_3A, 0x2E201400) // urhadd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 000101nnnnnddddd 2E20 1400 Vd,Vn,Vm (vector) INST1(usubl, "usubl", LNG, IF_DV_3A, 0x2E202000) // usubl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 001000nnnnnddddd 2E20 2000 Vd,Vn,Vm (vector) INST1(usubl2, "usubl2", LNG, IF_DV_3A, 0x6E202000) // usubl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 001000nnnnnddddd 6E20 2000 Vd,Vn,Vm (vector) INST1(usubw, "usubw", WID, IF_DV_3A, 0x2E203000) // usubw Vd,Vn,Vm DV_3A 00101110XX1mmmmm 001100nnnnnddddd 2E20 3000 Vd,Vn,Vm (vector) INST1(usubw2, "usubw2", WID, IF_DV_3A, 0x6E203000) // usubw2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 001100nnnnnddddd 6E20 3000 Vd,Vn,Vm (vector) INST1(shll, "shll", LNG, IF_DV_2M, 0x2F00A400) // shll Vd,Vn,imm DV_2M 0Q101110XX100001 001110nnnnnddddd 2E21 3800 Vd,Vn, {8/16/32} INST1(shll2, "shll2", LNG, IF_DV_2M, 0x6F00A400) // shll Vd,Vn,imm DV_2M 0Q101110XX100001 001110nnnnnddddd 2E21 3800 Vd,Vn, {8/16/32} INST1(sshll, "sshll", LNG, IF_DV_2O, 0x0F00A400) // sshll Vd,Vn,imm DV_2O 000011110iiiiiii 101001nnnnnddddd 0F00 A400 Vd,Vn imm (left shift - vector) INST1(sshll2, "sshll2", LNG, IF_DV_2O, 0x4F00A400) // sshll2 Vd,Vn,imm DV_2O 010011110iiiiiii 101001nnnnnddddd 4F00 A400 Vd,Vn imm (left shift - vector) INST1(ushll, "ushll", LNG, IF_DV_2O, 0x2F00A400) // ushll Vd,Vn,imm DV_2O 001011110iiiiiii 101001nnnnnddddd 2F00 A400 Vd,Vn imm (left shift - vector) INST1(ushll2, "ushll2", LNG, IF_DV_2O, 0x6F00A400) // ushll2 Vd,Vn,imm DV_2O 011011110iiiiiii 101001nnnnnddddd 6F00 A400 Vd,Vn imm (left shift - vector) INST1(shrn, "shrn", RSH|NRW,IF_DV_2O, 0x0F008400) // shrn Vd,Vn,imm DV_2O 000011110iiiiiii 100001nnnnnddddd 0F00 8400 Vd,Vn imm (right shift - vector) INST1(shrn2, "shrn2", RSH|NRW,IF_DV_2O, 0x4F008400) // shrn2 Vd,Vn,imm DV_2O 010011110iiiiiii 100001nnnnnddddd 4F00 8400 Vd,Vn imm (right shift - vector) INST1(rshrn, "rshrn", RSH|NRW,IF_DV_2O, 0x0F008C00) // rshrn Vd,Vn,imm DV_2O 000011110iiiiiii 100011nnnnnddddd 0F00 8C00 Vd,Vn imm (right shift - vector) INST1(rshrn2, "rshrn2", RSH|NRW,IF_DV_2O, 0x4F008C00) // rshrn2 Vd,Vn,imm DV_2O 010011110iiiiiii 100011nnnnnddddd 4F00 8C00 Vd,Vn imm (right shift - vector) INST1(sqrshrn2, "sqrshrn2", RSH|NRW,IF_DV_2O, 0x0F009C00) // sqrshrn2 Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100111nnnnnddddd 0F00 9C00 Vd Vn imm (right shift - vector) INST1(sqrshrun2, "sqrshrun2", RSH|NRW,IF_DV_2O, 0x2F008C00) // sqrshrun2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100011nnnnnddddd 2F00 8C00 Vd Vn imm (right shift - vector) INST1(sqshrn2, "sqshrn2", RSH|NRW,IF_DV_2O, 0x0F009400) // sqshrn2 Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100101nnnnnddddd 0F00 9400 Vd Vn imm (right shift - vector) INST1(sqshrun2, "sqshrun2", RSH|NRW,IF_DV_2O, 0x2F008400) // sqshrun2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100001nnnnnddddd 2F00 8400 Vd Vn imm (right shift - vector) INST1(uqrshrn2, "uqrshrn2", RSH|NRW,IF_DV_2O, 0x2F009C00) // uqrshrn2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100111nnnnnddddd 2F00 9C00 Vd Vn imm (right shift - vector) INST1(uqshrn2, "uqshrn2", RSH|NRW,IF_DV_2O, 0x2F009400) // uqshrn2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100101nnnnnddddd 2F00 9400 Vd Vn imm (right shift - vector) INST1(sxtl, "sxtl", LNG, IF_DV_2O, 0x0F00A400) // sxtl Vd,Vn DV_2O 000011110iiiiiii 101001nnnnnddddd 0F00 A400 Vd,Vn (left shift - vector) INST1(sxtl2, "sxtl2", LNG, IF_DV_2O, 0x4F00A400) // sxtl2 Vd,Vn DV_2O 010011110iiiiiii 101001nnnnnddddd 4F00 A400 Vd,Vn (left shift - vector) INST1(uxtl, "uxtl", LNG, IF_DV_2O, 0x2F00A400) // uxtl Vd,Vn DV_2O 001011110iiiiiii 101001nnnnnddddd 2F00 A400 Vd,Vn (left shift - vector) INST1(uxtl2, "uxtl2", LNG, IF_DV_2O, 0x6F00A400) // uxtl2 Vd,Vn DV_2O 011011110iiiiiii 101001nnnnnddddd 6F00 A400 Vd,Vn (left shift - vector) INST1(tbl, "tbl", 0, IF_DV_3C, 0x0E000000) // tbl Vd,{Vn},Vm DV_3C 0Q001110000mmmmm 000000nnnnnddddd 0E00 0000 Vd,Vn,Vm (vector) INST1(tbl_2regs, "tbl", 0, IF_DV_3C, 0x0E002000) // tbl Vd,{Vn,Vn+1},Vm DV_3C 0Q001110000mmmmm 001000nnnnnddddd 0E00 2000 Vd,Vn,Vm (vector) INST1(tbl_3regs, "tbl", 0, IF_DV_3C, 0x0E004000) // tbl Vd,{Vn,Vn+1,Vn+2},Vm DV_3C 0Q001110000mmmmm 010000nnnnnddddd 0E00 4000 Vd,Vn,Vm (vector) INST1(tbl_4regs, "tbl", 0, IF_DV_3C, 0x0E006000) // tbl Vd,{Vn,Vn+1,Vn+2,Vn+3},Vm DV_3C 0Q001110000mmmmm 011000nnnnnddddd 0E00 6000 Vd,Vn,Vm (vector) INST1(tbx, "tbx", 0, IF_DV_3C, 0x0E001000) // tbx Vd,{Vn},Vm DV_3C 0Q001110000mmmmm 000100nnnnnddddd 0E00 1000 Vd,Vn,Vm (vector) INST1(tbx_2regs, "tbx", 0, IF_DV_3C, 0x0E003000) // tbx Vd,{Vn,Vn+1},Vm DV_3C 0Q001110000mmmmm 001100nnnnnddddd 0E00 3000 Vd,Vn,Vm (vector) INST1(tbx_3regs, "tbx", 0, IF_DV_3C, 0x0E005000) // tbx Vd,{Vn,Vn+1,Vn+2},Vm DV_3C 0Q001110000mmmmm 010100nnnnnddddd 0E00 5000 Vd,Vn,Vm (vector) INST1(tbx_4regs, "tbx", 0, IF_DV_3C, 0x0E007000) // tbx Vd,{Vn,Vn+1,Vn+2,Vn+3},Vm DV_3C 0Q001110000mmmmm 011100nnnnnddddd 0E00 7000 Vd,Vn,Vm (vector) #if FEATURE_LOOP_ALIGN INST1(align, "align", 0, IF_SN_0A, BAD_CODE) // align SN_0A #endif // clang-format on /*****************************************************************************/ #undef INST1 #undef INST2 #undef INST3 #undef INST4 #undef INST5 #undef INST6 #undef INST9 /*****************************************************************************/
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /***************************************************************************** * Arm64 instructions for JIT compiler * * id -- the enum name for the instruction * nm -- textual name (for assembly dipslay) * info -- miscellaneous instruction info (load/store/compare/ASIMD right shift) * fmt -- encoding format used by this instruction * e1 -- encoding 1 * e2 -- encoding 2 * e3 -- encoding 3 * e4 -- encoding 4 * e5 -- encoding 5 * e6 -- encoding 6 * e7 -- encoding 7 * e8 -- encoding 8 * e9 -- encoding 9 * ******************************************************************************/ #if !defined(TARGET_ARM64) #error Unexpected target type #endif #ifndef INST1 #error INST1 must be defined before including this file. #endif #ifndef INST2 #error INST2 must be defined before including this file. #endif #ifndef INST3 #error INST3 must be defined before including this file. #endif #ifndef INST4 #error INST4 must be defined before including this file. #endif #ifndef INST5 #error INST5 must be defined before including this file. #endif #ifndef INST6 #error INST6 must be defined before including this file. #endif #ifndef INST9 #error INST9 must be defined before including this file. #endif /*****************************************************************************/ /* The following is ARM64-specific */ /*****************************************************************************/ // If you're adding a new instruction: // You need not only to fill in one of these macros describing the instruction, but also: // * If the instruction writes to more than one destination register, update the function // emitInsMayWriteMultipleRegs in emitArm64.cpp. // clang-format off INST9(invalid, "INVALID", 0, IF_NONE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE, BAD_CODE) // enum name info DR_2E DR_2G DI_1B DI_1D DV_3C DV_2B DV_2C DV_2E DV_2F INST9(mov, "mov", 0, IF_EN9, 0x2A0003E0, 0x11000000, 0x52800000, 0x320003E0, 0x0EA01C00, 0x0E003C00, 0x4E001C00, 0x5E000400, 0x6E000400) // mov Rd,Rm DR_2E X0101010000mmmmm 00000011111ddddd 2A00 03E0 // mov Rd,Rn DR_2G X001000100000000 000000nnnnnddddd 1100 0000 mov to/from SP only // mov Rd,imm(i16,hw) DI_1B X10100101hwiiiii iiiiiiiiiiiddddd 5280 0000 imm(i16,hw) // mov Rd,imm(N,r,s) DI_1D X01100100Nrrrrrr ssssss11111ddddd 3200 03E0 imm(N,r,s) // mov Vd,Vn DV_3C 0Q001110101nnnnn 000111nnnnnddddd 0EA0 1C00 Vd,Vn // mov Rd,Vn[0] DV_2B 0Q001110000iiiii 001111nnnnnddddd 0E00 3C00 Rd,Vn[] (to general) // mov Vd[],Rn DV_2C 01001110000iiiii 000111nnnnnddddd 4E00 1C00 Vd[],Rn (from general) // mov Vd,Vn[] DV_2E 01011110000iiiii 000001nnnnnddddd 5E00 0400 Vd,Vn[] (scalar by element) // mov Vd[],Vn[] DV_2F 01101110000iiiii 0jjjj1nnnnnddddd 6E00 0400 Vd[],Vn[] (from/to elem) // enum name info DR_3A DR_3B DR_3C DI_2A DV_3A DV_3E INST6(add, "add", 0, IF_EN6A, 0x0B000000, 0x0B000000, 0x0B200000, 0x11000000, 0x0E208400, 0x5EE08400) // add Rd,Rn,Rm DR_3A X0001011000mmmmm 000000nnnnnddddd 0B00 0000 Rd,Rn,Rm // add Rd,Rn,(Rm,shk,imm) DR_3B X0001011sh0mmmmm ssssssnnnnnddddd 0B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // add Rd,Rn,(Rm,ext,shl) DR_3C X0001011001mmmmm ooosssnnnnnddddd 0B20 0000 ext(Rm) LSL imm(0-4) // add Rd,Rn,i12 DI_2A X0010001shiiiiii iiiiiinnnnnddddd 1100 0000 imm(i12,sh) // add Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100001nnnnnddddd 0E20 8400 Vd,Vn,Vm (vector) // add Vd,Vn,Vm DV_3E 01011110111mmmmm 100001nnnnnddddd 5EE0 8400 Vd,Vn,Vm (scalar) INST6(sub, "sub", 0, IF_EN6A, 0x4B000000, 0x4B000000, 0x4B200000, 0x51000000, 0x2E208400, 0x7EE08400) // sub Rd,Rn,Rm DR_3A X1001011000mmmmm 000000nnnnnddddd 4B00 0000 Rd,Rn,Rm // sub Rd,Rn,(Rm,shk,imm) DR_3B X1001011sh0mmmmm ssssssnnnnnddddd 4B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // sub Rd,Rn,(Rm,ext,shl) DR_3C X1001011001mmmmm ooosssnnnnnddddd 4B20 0000 ext(Rm) LSL imm(0-4) // sub Rd,Rn,i12 DI_2A X1010001shiiiiii iiiiiinnnnnddddd 5100 0000 imm(i12,sh) // sub Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100001nnnnnddddd 2E20 8400 Vd,Vn,Vm (vector) // sub Vd,Vn,Vm DV_3E 01111110111mmmmm 100001nnnnnddddd 7EE0 8400 Vd,Vn,Vm (scalar) // enum name info LS_2D LS_3F LS_2E LS_2F LS_3G LS_2G INST6(ld1, "ld1", LD, IF_EN6B, 0x0C407000, 0x0CC07000, 0x0CDF7000, 0x0D400000, 0x0DC00000, 0x0DDF0000) // LD1 (multiple structures, one register variant) // ld1 {Vt},[Xn] LS_2D 0Q00110001000000 0111ssnnnnnttttt 0C40 7000 base register // ld1 {Vt},[Xn],Xm LS_3F 0Q001100110mmmmm 0111ssnnnnnttttt 0CC0 7000 post-indexed by a register // ld1 {Vt},[Xn],#imm LS_2E 0Q00110011011111 0111ssnnnnnttttt 0CDF 7000 post-indexed by an immediate // LD1 (single structure) // ld1 {Vt}[],[Xn] LS_2F 0Q00110101000000 xx0Sssnnnnnttttt 0D40 0000 base register // ld1 {Vt}[],[Xn],Xm LS_3G 0Q001101110mmmmm xx0Sssnnnnnttttt 0DC0 0000 post-indexed by a register // ld1 {Vt}[],[Xn],#imm LS_2G 0Q00110111011111 xx0Sssnnnnnttttt 0DDF 0000 post-indexed by an immediate INST6(ld2, "ld2", LD, IF_EN6B, 0x0C408000, 0x0CC08000, 0x0CDF8000, 0x0D600000, 0x0DE00000, 0x0DFF0000) // LD2 (multiple structures) // ld2 {Vt,Vt2},[Xn] LS_2D 0Q00110001000000 1000ssnnnnnttttt 0C40 8000 base register // ld2 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100110mmmmm 1000ssnnnnnttttt 0CC0 8000 post-indexed by a register // ld2 {Vt,Vt2},[Xn],#imm LS_2E 0Q001100110mmmmm 1000ssnnnnnttttt 0CDF 8000 post-indexed by an immediate // LD2 (single structure) // ld2 {Vt,Vt2}[],[Xn] LS_2F 0Q00110101100000 xx0Sssnnnnnttttt 0D60 0000 base register // ld2 {Vt,Vt2}[],[Xn],Xm LS_3G 0Q001101111mmmmm xx0Sssnnnnnttttt 0DE0 0000 post-indexed by a register // ld2 {Vt,Vt2}[],[Xn],#imm LS_2G 0Q00110111111111 xx0Sssnnnnnttttt 0DFF 0000 post-indexed by an immediate INST6(ld3, "ld3", LD, IF_EN6B, 0x0C404000, 0x0CC04000, 0x0CDF4000, 0x0D402000, 0x0DC02000, 0x0DDF2000) // LD3 (multiple structures) // ld3 {Vt-Vt3},[Xn] LS_2D 0Q00110001000000 0100ssnnnnnttttt 0C40 4000 base register // ld3 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100110mmmmm 0100ssnnnnnttttt 0CC0 4000 post-indexed by a register // ld3 {Vt-Vt3},[Xn],#imm LS_2E 0Q001100110mmmmm 0100ssnnnnnttttt 0CDF 4000 post-indexed by an immediate // LD3 (single structure) // ld3 {Vt-Vt3}[],[Xn] LS_2F 0Q00110101000000 xx1Sssnnnnnttttt 0D40 2000 base register // ld3 {Vt-Vt3}[],[Xn],Xm LS_3G 0Q001101110mmmmm xx1Sssnnnnnttttt 0DC0 2000 post-indexed by a register // ld3 {Vt-Vt3}[],[Xn],#imm LS_2G 0Q00110111011111 xx1Sssnnnnnttttt 0DDF 2000 post-indexed by an immediate INST6(ld4, "ld4", LD, IF_EN6B, 0x0C400000, 0x0CC00000, 0x0CDF0000, 0x0D602000, 0x0DE02000, 0x0DFF2000) // LD4 (multiple structures) // ld4 {Vt-Vt4},[Xn] LS_2D 0Q00110001000000 0000ssnnnnnttttt 0C40 0000 base register // ld4 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100110mmmmm 0000ssnnnnnttttt 0CC0 0000 post-indexed by a register // ld4 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110011011111 0000ssnnnnnttttt 0CDF 0000 post-indexed by an immediate // LD4 (single structure) // ld4 {Vt-Vt4}[],[Xn] LS_2F 0Q00110101100000 xx1Sssnnnnnttttt 0D60 2000 base register // ld4 {Vt-Vt4}[],[Xn],Xm LS_3G 0Q001101111mmmmm xx1Sssnnnnnttttt 0DE0 2000 post-indexed by a register // ld4 {Vt-Vt4}[],[Xn],#imm LS_2G 0Q00110111111111 xx1Sssnnnnnttttt 0DFF 2000 post-indexed by an immediate INST6(st1, "st1", LD, IF_EN6B, 0x0C007000, 0x0C807000, 0x0C9F7000, 0x0D000000, 0x0D800000, 0x0D9F0000) // ST1 (multiple structures, one register variant) // st1 {Vt},[Xn] LS_2D 0Q00110000000000 0111ssnnnnnttttt 0C00 7000 base register // st1 {Vt},[Xn],Xm LS_3F 0Q001100100mmmmm 0111ssnnnnnttttt 0C80 7000 post-indexed by a register // st1 {Vt},[Xn],#imm LS_2E 0Q00110010011111 0111ssnnnnnttttt 0C9F 7000 post-indexed by an immediate // ST1 (single structure) // st1 {Vt}[],[Xn] LS_2F 0Q00110100000000 xx0Sssnnnnnttttt 0D00 0000 base register // st1 {Vt}[],[Xn],Xm LS_3G 0Q001101100mmmmm xx0Sssnnnnnttttt 0D80 0000 post-indexed by a register // st1 {Vt}[],[Xn],#imm LS_2G 0Q00110110011111 xx0Sssnnnnnttttt 0D9F 0000 post-indexed by an immediate INST6(st2, "st2", ST, IF_EN6B, 0x0C008000, 0x0C808000, 0x0C9F8000, 0x0D200000, 0x0DA00000, 0x0DBF0000) // ST2 (multiple structures) // st2 {Vt,Vt2},[Xn] LS_2D 0Q00110000000000 1000ssnnnnnttttt 0C00 8000 base register // st2 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100100mmmmm 1000ssnnnnnttttt 0C80 8000 post-indexed by a register // st2 {Vt,Vt2},[Xn],#imm LS_2E 0Q00110010011111 1000ssnnnnnttttt 0C9F 8000 post-indexed by an immediate // ST2 (single structure) // st2 {Vt,Vt2}[],[Xn] LS_2F 0Q00110100100000 xx0Sssnnnnnttttt 0D20 0000 base register // st2 {Vt,Vt2}[],[Xn],Xm LS_3G 0Q001101101mmmmm xx0Sssnnnnnttttt 0DA0 0000 post-indexed by a register // st2 {Vt,Vt2}[],[Xn],#imm LS_2G 0Q00110110111111 xx0Sssnnnnnttttt 0DBF 0000 post-indexed by an immediate INST6(st3, "st3", ST, IF_EN6B, 0x0C004000, 0x0C804000, 0x0C9F4000, 0x0D002000, 0x0D802000, 0x0D9F2000) // ST3 (multiple structures) // st3 {Vt-Vt3},[Xn] LS_2D 0Q00110000000000 0100ssnnnnnttttt 0C00 4000 base register // st3 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100100mmmmm 0100ssnnnnnttttt 0C80 4000 post-indexed by a register // st3 {Vt-Vt3},[Xn],#imm LS_2E 0Q00110010011111 0100ssnnnnnttttt 0C9F 4000 post-indexed by an immediate // ST3 (single structure) // st3 {Vt-Vt3}[],[Xn] LS_2F 0Q00110100000000 xx1Sssnnnnnttttt 0D00 2000 base register // st3 {Vt-Vt3}[],[Xn],Xm LS_3G 0Q001101100mmmmm xx1Sssnnnnnttttt 0D80 2000 post-indexed by a register // st3 {Vt-Vt3}[],[Xn],#imm LS_2G 0Q00110110011111 xx1Sssnnnnnttttt 0D9F 2000 post-indexed by an immediate INST6(st4, "st4", ST, IF_EN6B, 0x0C000000, 0x0C800000, 0x0C9F0000, 0x0D202000, 0x0DA02000, 0x0DBF2000) // ST4 (multiple structures) // st4 {Vt-Vt4},[Xn] LS_2D 0Q00110000000000 0000ssnnnnnttttt 0C00 0000 base register // st4 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100100mmmmm 0000ssnnnnnttttt 0C80 0000 post-indexed by a register // st4 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110010011111 0000ssnnnnnttttt 0C9F 0000 post-indexed by an immediate // ST4 (single structure) // st4 {Vt-Vt4}[],[Xn] LS_2F 0Q00110100100000 xx1Sssnnnnnttttt 0D20 2000 base register // st4 {Vt-Vt4}[],[Xn],Xm LS_3G 0Q001101101mmmmm xx1Sssnnnnnttttt 0DA0 2000 post-indexed by a register // st4 {Vt-Vt4}[],[Xn],#imm LS_2G 0Q00110110111111 xx1Sssnnnnnttttt 0DBF 2000 post-indexed by an immediate // enum name info LS_2A LS_2B LS_2C LS_3A LS_1A INST5(ldr, "ldr", LD, IF_EN5A, 0xB9400000, 0xB9400000, 0xB8400000, 0xB8600800, 0x18000000) // ldr Rt,[Xn] LS_2A 1X11100101000000 000000nnnnnttttt B940 0000 // ldr Rt,[Xn+pimm12] LS_2B 1X11100101iiiiii iiiiiinnnnnttttt B940 0000 imm(0-4095<<{2,3}) // ldr Rt,[Xn+simm9] LS_2C 1X111000010iiiii iiiiPPnnnnnttttt B840 0000 [Xn imm(-256..+255) pre/post/no inc] // ldr Rt,[Xn,(Rm,ext,shl)] LS_3A 1X111000011mmmmm oooS10nnnnnttttt B860 0800 [Xn, ext(Rm) LSL {0,2,3}] // ldr Vt/Rt,[PC+simm19<<2] LS_1A XX011V00iiiiiiii iiiiiiiiiiittttt 1800 0000 [PC +- imm(1MB)] INST5(ldrsw, "ldrsw", LD, IF_EN5A, 0xB9800000, 0xB9800000, 0xB8800000, 0xB8A00800, 0x98000000) // ldrsw Rt,[Xn] LS_2A 1011100110000000 000000nnnnnttttt B980 0000 // ldrsw Rt,[Xn+pimm12] LS_2B 1011100110iiiiii iiiiiinnnnnttttt B980 0000 imm(0-4095<<2) // ldrsw Rt,[Xn+simm9] LS_2C 10111000100iiiii iiiiPPnnnnnttttt B880 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrsw Rt,[Xn,(Rm,ext,shl)] LS_3A 10111000101mmmmm oooS10nnnnnttttt B8A0 0800 [Xn, ext(Rm) LSL {0,2}] // ldrsw Rt,[PC+simm19<<2] LS_1A 10011000iiiiiiii iiiiiiiiiiittttt 9800 0000 [PC +- imm(1MB)] // enum name info DV_2G DV_2H DV_2I DV_1A DV_1B INST5(fmov, "fmov", 0, IF_EN5B, 0x1E204000, 0x1E260000, 0x1E270000, 0x1E201000, 0x0F00F400) // fmov Vd,Vn DV_2G 000111100X100000 010000nnnnnddddd 1E20 4000 Vd,Vn (scalar) // fmov Rd,Vn DV_2H X00111100X100110 000000nnnnnddddd 1E26 0000 Rd,Vn (scalar, to general) // fmov Vd,Rn DV_2I X00111100X100111 000000nnnnnddddd 1E27 0000 Vd,Rn (scalar, from general) // fmov Vd,immfp DV_1A 000111100X1iiiii iii10000000ddddd 1E20 1000 Vd,immfp (scalar) // fmov Vd,immfp DV_1B 0QX0111100000iii 111101iiiiiddddd 0F00 F400 Vd,immfp (immediate vector) // enum name info DR_3A DR_3B DI_2C DV_3C DV_1B INST5(orr, "orr", 0, IF_EN5C, 0x2A000000, 0x2A000000, 0x32000000, 0x0EA01C00, 0x0F001400) // orr Rd,Rn,Rm DR_3A X0101010000mmmmm 000000nnnnnddddd 2A00 0000 // orr Rd,Rn,(Rm,shk,imm) DR_3B X0101010sh0mmmmm iiiiiinnnnnddddd 2A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // orr Rd,Rn,imm(N,r,s) DI_2C X01100100Nrrrrrr ssssssnnnnnddddd 3200 0000 imm(N,r,s) // orr Vd,Vn,Vm DV_3C 0Q001110101mmmmm 000111nnnnnddddd 0EA0 1C00 Vd,Vn,Vm // orr Vd,imm8 DV_1B 0Q00111100000iii ---101iiiiiddddd 0F00 1400 Vd imm8 (immediate vector) // enum name info LS_2A LS_2B LS_2C LS_3A INST4(ldrb, "ldrb", LD, IF_EN4A, 0x39400000, 0x39400000, 0x38400000, 0x38600800) // ldrb Rt,[Xn] LS_2A 0011100101000000 000000nnnnnttttt 3940 0000 // ldrb Rt,[Xn+pimm12] LS_2B 0011100101iiiiii iiiiiinnnnnttttt 3940 0000 imm(0-4095) // ldrb Rt,[Xn+simm9] LS_2C 00111000010iiiii iiiiPPnnnnnttttt 3840 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrb Rt,[Xn,(Rm,ext,shl)] LS_3A 00111000011mmmmm oooS10nnnnnttttt 3860 0800 [Xn, ext(Rm)] INST4(ldrh, "ldrh", LD, IF_EN4A, 0x79400000, 0x79400000, 0x78400000, 0x78600800) // ldrh Rt,[Xn] LS_2A 0111100101000000 000000nnnnnttttt 7940 0000 // ldrh Rt,[Xn+pimm12] LS_2B 0111100101iiiiii iiiiiinnnnnttttt 7940 0000 imm(0-4095<<1) // ldrh Rt,[Xn+simm9] LS_2C 01111000010iiiii iiiiPPnnnnnttttt 7840 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrh Rt,[Xn,(Rm,ext,shl)] LS_3A 01111000011mmmmm oooS10nnnnnttttt 7860 0800 [Xn, ext(Rm) LSL {0,1}] INST4(ldrsb, "ldrsb", LD, IF_EN4A, 0x39800000, 0x39800000, 0x38800000, 0x38A00800) // ldrsb Rt,[Xn] LS_2A 001110011X000000 000000nnnnnttttt 3980 0000 // ldrsb Rt,[Xn+pimm12] LS_2B 001110011Xiiiiii iiiiiinnnnnttttt 3980 0000 imm(0-4095) // ldrsb Rt,[Xn+simm9] LS_2C 001110001X0iiiii iiii01nnnnnttttt 3880 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrsb Rt,[Xn,(Rm,ext,shl)] LS_3A 001110001X1mmmmm oooS10nnnnnttttt 38A0 0800 [Xn, ext(Rm)] INST4(ldrsh, "ldrsh", LD, IF_EN4A, 0x79800000, 0x79800000, 0x78800000, 0x78A00800) // ldrsh Rt,[Xn] LS_2A 011110011X000000 000000nnnnnttttt 7980 0000 // ldrsh Rt,[Xn+pimm12] LS_2B 011110011Xiiiiii iiiiiinnnnnttttt 7980 0000 imm(0-4095<<1) // ldrsh Rt,[Xn+simm9] LS_2C 011110001X0iiiii iiiiPPnnnnnttttt 7880 0000 [Xn imm(-256..+255) pre/post/no inc] // ldrsh Rt,[Xn,(Rm,ext,shl)] LS_3A 011110001X1mmmmm oooS10nnnnnttttt 78A0 0800 [Xn, ext(Rm) LSL {0,1}] INST4(str, "str", ST, IF_EN4A, 0xB9000000, 0xB9000000, 0xB8000000, 0xB8200800) // str Rt,[Xn] LS_2A 1X11100100000000 000000nnnnnttttt B900 0000 // str Rt,[Xn+pimm12] LS_2B 1X11100100iiiiii iiiiiinnnnnttttt B900 0000 imm(0-4095<<{2,3}) // str Rt,[Xn+simm9] LS_2C 1X111000000iiiii iiiiPPnnnnnttttt B800 0000 [Xn imm(-256..+255) pre/post/no inc] // str Rt,[Xn,(Rm,ext,shl)] LS_3A 1X111000001mmmmm oooS10nnnnnttttt B820 0800 [Xn, ext(Rm)] INST4(strb, "strb", ST, IF_EN4A, 0x39000000, 0x39000000, 0x38000000, 0x38200800) // strb Rt,[Xn] LS_2A 0011100100000000 000000nnnnnttttt 3900 0000 // strb Rt,[Xn+pimm12] LS_2B 0011100100iiiiii iiiiiinnnnnttttt 3900 0000 imm(0-4095) // strb Rt,[Xn+simm9] LS_2C 00111000000iiiii iiiiPPnnnnnttttt 3800 0000 [Xn imm(-256..+255) pre/post/no inc] // strb Rt,[Xn,(Rm,ext,shl)] LS_3A 00111000001mmmmm oooS10nnnnnttttt 3820 0800 [Xn, ext(Rm)] INST4(strh, "strh", ST, IF_EN4A, 0x79000000, 0x79000000, 0x78000000, 0x78200800) // strh Rt,[Xn] LS_2A 0111100100000000 000000nnnnnttttt 7900 0000 // strh Rt,[Xn+pimm12] LS_2B 0111100100iiiiii iiiiiinnnnnttttt 7900 0000 imm(0-4095<<1) // strh Rt,[Xn+simm9] LS_2C 01111000000iiiii iiiiPPnnnnnttttt 7800 0000 [Xn imm(-256..+255) pre/post/no inc] // strh Rt,[Xn,(Rm,ext,shl)] LS_3A 01111000001mmmmm oooS10nnnnnttttt 7820 0800 [Xn, ext(Rm)] // enum name info DR_3A DR_3B DR_3C DI_2A INST4(adds, "adds", 0, IF_EN4B, 0x2B000000, 0x2B000000, 0x2B200000, 0x31000000) // adds Rd,Rn,Rm DR_3A X0101011000mmmmm 000000nnnnnddddd 2B00 0000 // adds Rd,Rn,(Rm,shk,imm) DR_3B X0101011sh0mmmmm ssssssnnnnnddddd 2B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // adds Rd,Rn,(Rm,ext,shl) DR_3C X0101011001mmmmm ooosssnnnnnddddd 2B20 0000 ext(Rm) LSL imm(0-4) // adds Rd,Rn,i12 DI_2A X0110001shiiiiii iiiiiinnnnnddddd 3100 0000 imm(i12,sh) INST4(subs, "subs", 0, IF_EN4B, 0x6B000000, 0x6B000000, 0x6B200000, 0x71000000) // subs Rd,Rn,Rm DR_3A X1101011000mmmmm 000000nnnnnddddd 6B00 0000 // subs Rd,Rn,(Rm,shk,imm) DR_3B X1101011sh0mmmmm ssssssnnnnnddddd 6B00 0000 Rm {LSL,LSR,ASR} imm(0-63) // subs Rd,Rn,(Rm,ext,shl) DR_3C X1101011001mmmmm ooosssnnnnnddddd 6B20 0000 ext(Rm) LSL imm(0-4) // subs Rd,Rn,i12 DI_2A X1110001shiiiiii iiiiiinnnnnddddd 7100 0000 imm(i12,sh) // enum name info DR_2A DR_2B DR_2C DI_1A INST4(cmp, "cmp", CMP, IF_EN4C, 0x6B00001F, 0x6B00001F, 0x6B20001F, 0x7100001F) // cmp Rn,Rm DR_2A X1101011000mmmmm 000000nnnnn11111 6B00 001F // cmp Rn,(Rm,shk,imm) DR_2B X1101011sh0mmmmm ssssssnnnnn11111 6B00 001F Rm {LSL,LSR,ASR} imm(0-63) // cmp Rn,(Rm,ext,shl) DR_2C X1101011001mmmmm ooosssnnnnn11111 6B20 001F ext(Rm) LSL imm(0-4) // cmp Rn,i12 DI_1A X111000100iiiiii iiiiiinnnnn11111 7100 001F imm(i12,sh) INST4(cmn, "cmn", CMP, IF_EN4C, 0x2B00001F, 0x2B00001F, 0x2B20001F, 0x3100001F) // cmn Rn,Rm DR_2A X0101011000mmmmm 000000nnnnn11111 2B00 001F // cmn Rn,(Rm,shk,imm) DR_2B X0101011sh0mmmmm ssssssnnnnn11111 2B00 001F Rm {LSL,LSR,ASR} imm(0-63) // cmn Rn,(Rm,ext,shl) DR_2C X0101011001mmmmm ooosssnnnnn11111 2B20 001F ext(Rm) LSL imm(0-4) // cmn Rn,i12 DI_1A X0110001shiiiiii iiiiiinnnnn11111 3100 001F imm(0-4095) // enum name info DV_3B DV_3D DV_3BI DV_3DI INST4(fmul, "fmul", 0, IF_EN4D, 0x2E20DC00, 0x1E200800, 0x0F809000, 0x5F809000) // fmul Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 110111nnnnnddddd 2E20 DC00 Vd,Vn,Vm (vector) // fmul Vd,Vn,Vm DV_3D 000111100X1mmmmm 000010nnnnnddddd 1E20 0800 Vd,Vn,Vm (scalar) // fmul Vd,Vn,Vm[] DV_3BI 0Q0011111XLmmmmm 1001H0nnnnnddddd 0F80 9000 Vd,Vn,Vm[] (vector by element) // fmul Vd,Vn,Vm[] DV_3DI 010111111XLmmmmm 1001H0nnnnnddddd 5F80 9000 Vd,Vn,Vm[] (scalar by element) INST4(fmulx, "fmulx", 0, IF_EN4D, 0x0E20DC00, 0x5E20DC00, 0x2F809000, 0x7F809000) // fmulx Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110111nnnnnddddd 0E20 DC00 Vd,Vn,Vm (vector) // fmulx Vd,Vn,Vm DV_3D 010111100X1mmmmm 110111nnnnnddddd 5E20 DC00 Vd,Vn,Vm (scalar) // fmulx Vd,Vn,Vm[] DV_3BI 0Q1011111XLmmmmm 1001H0nnnnnddddd 2F80 9000 Vd,Vn,Vm[] (vector by element) // fmulx Vd,Vn,Vm[] DV_3DI 011111111XLmmmmm 1001H0nnnnnddddd 7F80 9000 Vd,Vn,Vm[] (scalar by element) // enum name info DR_3A DR_3B DI_2C DV_3C INST4(and, "and", 0, IF_EN4E, 0x0A000000, 0x0A000000, 0x12000000, 0x0E201C00) // and Rd,Rn,Rm DR_3A X0001010000mmmmm 000000nnnnnddddd 0A00 0000 // and Rd,Rn,(Rm,shk,imm) DR_3B X0001010sh0mmmmm iiiiiinnnnnddddd 0A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // and Rd,Rn,imm(N,r,s) DI_2C X00100100Nrrrrrr ssssssnnnnnddddd 1200 0000 imm(N,r,s) // and Vd,Vn,Vm DV_3C 0Q001110001mmmmm 000111nnnnnddddd 0E20 1C00 Vd,Vn,Vm INST4(eor, "eor", 0, IF_EN4E, 0x4A000000, 0x4A000000, 0x52000000, 0x2E201C00) // eor Rd,Rn,Rm DR_3A X1001010000mmmmm 000000nnnnnddddd 4A00 0000 // eor Rd,Rn,(Rm,shk,imm) DR_3B X1001010sh0mmmmm iiiiiinnnnnddddd 4A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // eor Rd,Rn,imm(N,r,s) DI_2C X10100100Nrrrrrr ssssssnnnnnddddd 5200 0000 imm(N,r,s) // eor Vd,Vn,Vm DV_3C 0Q101110001mmmmm 000111nnnnnddddd 2E20 1C00 Vd,Vn,Vm // enum name info DR_3A DR_3B DV_3C DV_1B INST4(bic, "bic", 0, IF_EN4F, 0x0A200000, 0x0A200000, 0x0E601C00, 0x2F001400) // bic Rd,Rn,Rm DR_3A X0001010001mmmmm 000000nnnnnddddd 0A20 0000 // bic Rd,Rn,(Rm,shk,imm) DR_3B X0001010sh1mmmmm iiiiiinnnnnddddd 0A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // bic Vd,Vn,Vm DV_3C 0Q001110011mmmmm 000111nnnnnddddd 0E60 1C00 Vd,Vn,Vm // bic Vd,imm8 DV_1B 0Q10111100000iii ---101iiiiiddddd 2F00 1400 Vd imm8 (immediate vector) // enum name info DR_2E DR_2F DV_2M DV_2L INST4(neg, "neg", 0, IF_EN4G, 0x4B0003E0, 0x4B0003E0, 0x2E20B800, 0x7E20B800) // neg Rd,Rm DR_2E X1001011000mmmmm 00000011111ddddd 4B00 03E0 // neg Rd,(Rm,shk,imm) DR_2F X1001011sh0mmmmm ssssss11111ddddd 4B00 03E0 Rm {LSL,LSR,ASR} imm(0-63) // neg Vd,Vn DV_2M 0Q101110XX100000 101110nnnnnddddd 2E20 B800 Vd,Vn (vector) // neg Vd,Vn DV_2L 01111110XX100000 101110nnnnnddddd 7E20 B800 Vd,Vn (scalar) // enum name info DV_3E DV_3A DV_2L DV_2M INST4(cmeq, "cmeq", 0, IF_EN4H, 0x7EE08C00, 0x2E208C00, 0x5E209800, 0x0E209800) // cmeq Vd,Vn,Vm DV_3E 01111110111mmmmm 100011nnnnnddddd 7EE0 8C00 Vd,Vn,Vm (scalar) // cmeq Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100011nnnnnddddd 2E20 8C00 Vd,Vn,Vm (vector) // cmeq Vd,Vn,#0 DV_2L 01011110XX100000 100110nnnnnddddd 5E20 9800 Vd,Vn,#0 (scalar - with zero) // cmeq Vd,Vn,#0 DV_2M 0Q001110XX100000 100110nnnnnddddd 0E20 9800 Vd,Vn,#0 (vector - with zero) INST4(cmge, "cmge", 0, IF_EN4H, 0x5EE03C00, 0x0E203C00, 0x7E208800, 0x2E208800) // cmge Vd,Vn,Vm DV_3E 01011110111mmmmm 001111nnnnnddddd 5EE0 3C00 Vd,Vn,Vm (scalar) // cmge Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001111nnnnnddddd 0E20 3C00 Vd,Vn,Vm (vector) // cmge Vd,Vn,#0 DV_2L 01111110XX100000 100010nnnnnddddd 5E20 8800 Vd,Vn,#0 (scalar - with zero) // cmge Vd,Vn,#0 DV_2M 0Q101110XX100000 100010nnnnnddddd 2E20 8800 Vd,Vn,#0 (vector - with zero) INST4(cmgt, "cmgt", 0, IF_EN4H, 0x5EE03400, 0x0E203400, 0x5E208800, 0x0E208800) // cmgt Vd,Vn,Vm DV_3E 01011110111mmmmm 001101nnnnnddddd 5EE0 3400 Vd,Vn,Vm (scalar) // cmgt Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001101nnnnnddddd 0E20 3400 Vd,Vn,Vm (vector) // cmgt Vd,Vn,#0 DV_2L 01011110XX100000 100010nnnnnddddd 5E20 8800 Vd,Vn,#0 (scalar - with zero) // cmgt Vd,Vn,#0 DV_2M 0Q001110XX100000 101110nnnnnddddd 0E20 8800 Vd,Vn,#0 (vector - with zero) // enum name info DV_3D DV_3B DV_2G DV_2A INST4(fcmeq, "fcmeq", 0, IF_EN4I, 0x5E20E400, 0x0E20E400, 0x5EA0D800, 0x0EA0D800) // fcmeq Vd,Vn,Vm DV_3D 010111100X1mmmmm 111001nnnnnddddd 5E20 E400 Vd,Vn,Vm (scalar) // fcmeq Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 111001nnnnnddddd 0E20 E400 Vd,Vn,Vm (vector) // fcmeq Vd,Vn,#0 DV_2G 010111101X100000 110110nnnnnddddd 5EA0 D800 Vd,Vn,#0 (scalar - with zero) // fcmeq Vd,Vn,#0 DV_2A 0Q0011101X100000 110110nnnnnddddd 0EA0 D800 Vd,Vn,#0 (vector - with zero) INST4(fcmge, "fcmge", 0, IF_EN4I, 0x7E20E400, 0x2E20E400, 0x7EA0C800, 0x2EA0C800) // fcmge Vd,Vn,Vm DV_3D 011111100X1mmmmm 111001nnnnnddddd 7E20 E400 Vd,Vn,Vm (scalar) // fcmge Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111001nnnnnddddd 2E20 E400 Vd,Vn,Vm (vector) // fcmge Vd,Vn,#0 DV_2G 011111101X100000 110010nnnnnddddd 7EA0 E800 Vd,Vn,#0 (scalar - with zero) // fcmge Vd,Vn,#0 DV_2A 0Q1011101X100000 110010nnnnnddddd 2EA0 C800 Vd,Vn,#0 (vector - with zero) INST4(fcmgt, "fcmgt", 0, IF_EN4I, 0x7EA0E400, 0x2EA0E400, 0x5EA0C800, 0x0EA0C800) // fcmgt Vd,Vn,Vm DV_3D 011111101X1mmmmm 111001nnnnnddddd 7EA0 E400 Vd,Vn,Vm (scalar) // fcmgt Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 111001nnnnnddddd 2EA0 E400 Vd,Vn,Vm (vector) // fcmgt Vd,Vn,#0 DV_2G 010111101X100000 110010nnnnnddddd 5EA0 E800 Vd,Vn,#0 (scalar - with zero) // fcmgt Vd,Vn,#0 DV_2A 0Q0011101X100000 110010nnnnnddddd 0EA0 C800 Vd,Vn,#0 (vector - with zero) // enum name info DV_2N DV_2O DV_3E DV_3A INST4(sqshl, "sqshl", 0, IF_EN4J, 0x5F007400, 0x0F007400, 0x5E204C00, 0x0E204C00) // sqshl Vd,Vn,imm DV_2N 010111110iiiiiii 011101nnnnnddddd 5F00 7400 Vd Vn imm (left shift - scalar) // sqshl Vd,Vn,imm DV_2O 0Q0011110iiiiiii 011101nnnnnddddd 0F00 7400 Vd Vn imm (left shift - vector) // sqshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010011nnnnnddddd 5E20 4C00 Vd Vn Vm (scalar) // sqshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010011nnnnnddddd 0E20 4C00 Vd Vn Vm (vector) INST4(uqshl, "uqshl", 0, IF_EN4J, 0x7F007400, 0x2F007400, 0x7E204C00, 0x2E204C00) // uqshl Vd,Vn,imm DV_2N 011111110iiiiiii 011101nnnnnddddd 7F00 7400 Vd Vn imm (left shift - scalar) // uqshl Vd,Vn,imm DV_2O 0Q1011110iiiiiii 011101nnnnnddddd 2F00 7400 Vd Vn imm (left shift - vector) // uqshl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010011nnnnnddddd 7E20 4C00 Vd Vn Vm (scalar) // uqshl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010011nnnnnddddd 2E20 4C00 Vd Vn Vm (vector) // enum name info DV_3E DV_3A DV_3EI DV_3AI INST4(sqdmlal, "sqdmlal", LNG, IF_EN4K, 0x5E209000, 0x0E209000, 0x5F003000, 0x0F003000) // sqdmlal Vd,Vn,Vm DV_3E 01011110XX1mmmmm 100100nnnnnddddd 5E20 9000 Vd,Vn,Vm (scalar) // sqdmlal Vd,Vn,Vm DV_3A 00001110XX1mmmmm 100100nnnnnddddd 0E20 9000 Vd,Vn,Vm (vector) // sqdmlal Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 0011H0nnnnnddddd 5F00 3000 Vd,Vn,Vm[] (scalar by element) // sqdmlal Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0011H0nnnnnddddd 0F00 3000 Vd,Vn,Vm[] (vector by element) INST4(sqdmlsl, "sqdmlsl", LNG, IF_EN4K, 0x5E20B000, 0x0E20B000, 0x5F007000, 0x0F007000) // sqdmlsl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 101100nnnnnddddd 5E20 B000 Vd,Vn,Vm (scalar) // sqdmlsl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 101100nnnnnddddd 0E20 B000 Vd,Vn,Vm (vector) // sqdmlsl Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 0111H0nnnnnddddd 5F00 7000 Vd,Vn,Vm[] (scalar by element) // sqdmlsl Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0111H0nnnnnddddd 0F00 7000 Vd,Vn,Vm[] (vector by element) INST4(sqdmulh, "sqdmulh", 0, IF_EN4K, 0x5E20B400, 0x0E20B400, 0x5F00C000, 0x0F00C000) // sqdmulh Vd,Vn,Vm DV_3E 01011110XX1mmmmm 101101nnnnnddddd 5E20 B400 Vd,Vn,Vm (scalar) // sqdmulh Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101101nnnnnddddd 0E20 B400 Vd,Vn,Vm (vector) // sqdmulh Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 1100H0nnnnnddddd 5F00 C000 Vd,Vn,Vm[] (scalar by element) // sqdmulh Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1100H0nnnnnddddd 0F00 C000 Vd,Vn,Vm[] (vector by element) INST4(sqdmull, "sqdmull", LNG, IF_EN4K, 0x5E20D000, 0x0E20D000, 0x5F00B000, 0x0F00B000) // sqdmull Vd,Vn,Vm DV_3E 01011110XX1mmmmm 110100nnnnnddddd 5E20 D000 Vd,Vn,Vm (scalar) // sqdmull Vd,Vn,Vm DV_3A 00001110XX1mmmmm 110100nnnnnddddd 0E20 D000 Vd,Vn,Vm (vector) // sqdmull Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 1011H0nnnnnddddd 5F00 B000 Vd,Vn,Vm[] (scalar by element) // sqdmull Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 1011H0nnnnnddddd 0F00 B000 Vd,Vn,Vm[] (vector by element) INST4(sqrdmlah, "sqrdmlah", 0, IF_EN4K, 0x7E008400, 0x2E008400, 0x7F00D000, 0x2F00D000) // sqrdmlah Vd,Vn,Vm DV_3E 01111110XX0mmmmm 100001nnnnnddddd 7E00 8400 Vd,Vn,Vm (scalar) // sqrdmlah Vd,Vn,Vm DV_3A 0Q101110XX0mmmmm 100001nnnnnddddd 2E00 8400 Vd,Vn,Vm (vector) // sqrdmlah Vd,Vn,Vm[] DV_3EI 01111111XXLMmmmm 1101H0nnnnnddddd 7F00 D000 Vd,Vn,Vm[] (scalar by element) // sqrdmlah Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 1101H0nnnnnddddd 2F00 D000 Vd,Vn,Vm[] (vector by element) INST4(sqrdmlsh, "sqrdmlsh", 0, IF_EN4K, 0x7E008C00, 0x2E008C00, 0x7F00F000, 0x2F00F000) // sqrdmlsh Vd,Vn,Vm DV_3E 01111110XX0mmmmm 100011nnnnnddddd 7E00 8C00 Vd,Vn,Vm (scalar) // sqrdmlsh Vd,Vn,Vm DV_3A 0Q101110XX0mmmmm 100011nnnnnddddd 2E00 8C00 Vd,Vn,Vm (vector) // sqrdmlsh Vd,Vn,Vm[] DV_3EI 01111111XXLMmmmm 1111H0nnnnnddddd 7F00 F000 Vd,Vn,Vm[] (scalar by element) // sqrdmlsh Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 1111H0nnnnnddddd 2F00 F000 Vd,Vn,Vm[] (vector by element) INST4(sqrdmulh, "sqrdmulh", 0, IF_EN4K, 0x7E20B400, 0x2E20B400, 0x5F00D000, 0x0F00D000) // sqrdmulh Vd,Vn,Vm DV_3E 01111110XX1mmmmm 101101nnnnnddddd 7E20 B400 Vd,Vn,Vm (scalar) // sqrdmulh Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 101101nnnnnddddd 2E20 B400 Vd,Vn,Vm (vector) // sqrdmulh Vd,Vn,Vm[] DV_3EI 01011111XXLMmmmm 1101H0nnnnnddddd 5F00 D000 Vd,Vn,Vm[] (scalar by element) // sqrdmulh Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1101H0nnnnnddddd 0F00 D000 Vd,Vn,Vm[] (vector by element) // enum name info DR_3A DR_3B DI_2C INST3(ands, "ands", 0, IF_EN3A, 0x6A000000, 0x6A000000, 0x72000000) // ands Rd,Rn,Rm DR_3A X1101010000mmmmm 000000nnnnnddddd 6A00 0000 // ands Rd,Rn,(Rm,shk,imm) DR_3B X1101010sh0mmmmm iiiiiinnnnnddddd 6A00 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // ands Rd,Rn,imm(N,r,s) DI_2C X11100100Nrrrrrr ssssssnnnnnddddd 7200 0000 imm(N,r,s) // enum name info DR_2A DR_2B DI_1C INST3(tst, "tst", 0, IF_EN3B, 0x6A00001F, 0x6A00001F, 0x7200001F) // tst Rn,Rm DR_2A X1101010000mmmmm 000000nnnnn11111 6A00 001F // tst Rn,(Rm,shk,imm) DR_2B X1101010sh0mmmmm iiiiiinnnnn11111 6A00 001F Rm {LSL,LSR,ASR,ROR} imm(0-63) // tst Rn,imm(N,r,s) DI_1C X11100100Nrrrrrr ssssssnnnnn11111 7200 001F imm(N,r,s) // enum name info DR_3A DR_3B DV_3C INST3(orn, "orn", 0, IF_EN3C, 0x2A200000, 0x2A200000, 0x0EE01C00) // orn Rd,Rn,Rm DR_3A X0101010001mmmmm 000000nnnnnddddd 2A20 0000 // orn Rd,Rn,(Rm,shk,imm) DR_3B X0101010sh1mmmmm iiiiiinnnnnddddd 2A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // orn Vd,Vn,Vm DV_3C 0Q001110111mmmmm 000111nnnnnddddd 0EE0 1C00 Vd,Vn,Vm // enum name info DV_2C DV_2D DV_2E INST3(dup, "dup", 0, IF_EN3D, 0x0E000C00, 0x0E000400, 0x5E000400) // dup Vd,Rn DV_2C 0Q001110000iiiii 000011nnnnnddddd 0E00 0C00 Vd,Rn (vector from general) // dup Vd,Vn[] DV_2D 0Q001110000iiiii 000001nnnnnddddd 0E00 0400 Vd,Vn[] (vector by element) // dup Vd,Vn[] DV_2E 01011110000iiiii 000001nnnnnddddd 5E00 0400 Vd,Vn[] (scalar by element) // enum name info DV_3B DV_3BI DV_3DI INST3(fmla, "fmla", 0, IF_EN3E, 0x0E20CC00, 0x0F801000, 0x5F801000) // fmla Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110011nnnnnddddd 0E20 CC00 Vd,Vn,Vm (vector) // fmla Vd,Vn,Vm[] DV_3BI 0Q0011111XLmmmmm 0001H0nnnnnddddd 0F80 1000 Vd,Vn,Vm[] (vector by element) // fmla Vd,Vn,Vm[] DV_3DI 010111111XLmmmmm 0001H0nnnnnddddd 5F80 1000 Vd,Vn,Vm[] (scalar by element) INST3(fmls, "fmls", 0, IF_EN3E, 0x0EA0CC00, 0x0F805000, 0x5F805000) // fmls Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 110011nnnnnddddd 0EA0 CC00 Vd,Vn,Vm (vector) // fmls Vd,Vn,Vm[] DV_3BI 0Q0011111XLmmmmm 0101H0nnnnnddddd 0F80 5000 Vd,Vn,Vm[] (vector by element) // fmls Vd,Vn,Vm[] DV_3DI 010111111XLmmmmm 0101H0nnnnnddddd 5F80 5000 Vd,Vn,Vm[] (scalar by element) // enum name info DV_2A DV_2G DV_2H INST3(fcvtas, "fcvtas", 0, IF_EN3F, 0x0E21C800, 0x5E21C800, 0x1E240000) // fcvtas Vd,Vn DV_2A 0Q0011100X100001 110010nnnnnddddd 0E21 C800 Vd,Vn (vector) // fcvtas Vd,Vn DV_2G 010111100X100001 110010nnnnnddddd 5E21 C800 Vd,Vn (scalar) // fcvtas Rd,Vn DV_2H X00111100X100100 000000nnnnnddddd 1E24 0000 Rd,Vn (scalar, to general) INST3(fcvtau, "fcvtau", 0, IF_EN3F, 0x2E21C800, 0x7E21C800, 0x1E250000) // fcvtau Vd,Vn DV_2A 0Q1011100X100001 111010nnnnnddddd 2E21 C800 Vd,Vn (vector) // fcvtau Vd,Vn DV_2G 011111100X100001 111010nnnnnddddd 7E21 C800 Vd,Vn (scalar) // fcvtau Rd,Vn DV_2H X00111100X100101 000000nnnnnddddd 1E25 0000 Rd,Vn (scalar, to general) INST3(fcvtms, "fcvtms", 0, IF_EN3F, 0x0E21B800, 0x5E21B800, 0x1E300000) // fcvtms Vd,Vn DV_2A 0Q0011100X100001 101110nnnnnddddd 0E21 B800 Vd,Vn (vector) // fcvtms Vd,Vn DV_2G 010111100X100001 101110nnnnnddddd 5E21 B800 Vd,Vn (scalar) // fcvtms Rd,Vn DV_2H X00111100X110000 000000nnnnnddddd 1E30 0000 Rd,Vn (scalar, to general) INST3(fcvtmu, "fcvtmu", 0, IF_EN3F, 0x2E21B800, 0x7E21B800, 0x1E310000) // fcvtmu Vd,Vn DV_2A 0Q1011100X100001 101110nnnnnddddd 2E21 B800 Vd,Vn (vector) // fcvtmu Vd,Vn DV_2G 011111100X100001 101110nnnnnddddd 7E21 B800 Vd,Vn (scalar) // fcvtmu Rd,Vn DV_2H X00111100X110001 000000nnnnnddddd 1E31 0000 Rd,Vn (scalar, to general) INST3(fcvtns, "fcvtns", 0, IF_EN3F, 0x0E21A800, 0x5E21A800, 0x1E200000) // fcvtns Vd,Vn DV_2A 0Q0011100X100001 101010nnnnnddddd 0E21 A800 Vd,Vn (vector) // fcvtns Vd,Vn DV_2G 010111100X100001 101010nnnnnddddd 5E21 A800 Vd,Vn (scalar) // fcvtns Rd,Vn DV_2H X00111100X100000 000000nnnnnddddd 1E20 0000 Rd,Vn (scalar, to general) INST3(fcvtnu, "fcvtnu", 0, IF_EN3F, 0x2E21A800, 0x7E21A800, 0x1E210000) // fcvtnu Vd,Vn DV_2A 0Q1011100X100001 101010nnnnnddddd 2E21 A800 Vd,Vn (vector) // fcvtnu Vd,Vn DV_2G 011111100X100001 101010nnnnnddddd 7E21 A800 Vd,Vn (scalar) // fcvtnu Rd,Vn DV_2H X00111100X100001 000000nnnnnddddd 1E21 0000 Rd,Vn (scalar, to general) INST3(fcvtps, "fcvtps", 0, IF_EN3F, 0x0EA1A800, 0x5EA1A800, 0x1E280000) // fcvtps Vd,Vn DV_2A 0Q0011101X100001 101010nnnnnddddd 0EA1 A800 Vd,Vn (vector) // fcvtps Vd,Vn DV_2G 010111101X100001 101010nnnnnddddd 5EA1 A800 Vd,Vn (scalar) // fcvtps Rd,Vn DV_2H X00111100X101000 000000nnnnnddddd 1E28 0000 Rd,Vn (scalar, to general) INST3(fcvtpu, "fcvtpu", 0, IF_EN3F, 0x2EA1A800, 0x7EA1A800, 0x1E290000) // fcvtpu Vd,Vn DV_2A 0Q1011101X100001 101010nnnnnddddd 2EA1 A800 Vd,Vn (vector) // fcvtpu Vd,Vn DV_2G 011111101X100001 101010nnnnnddddd 7EA1 A800 Vd,Vn (scalar) // fcvtpu Rd,Vn DV_2H X00111100X101001 000000nnnnnddddd 1E29 0000 Rd,Vn (scalar, to general) INST3(fcvtzs, "fcvtzs", 0, IF_EN3F, 0x0EA1B800, 0x5EA1B800, 0x1E380000) // fcvtzs Vd,Vn DV_2A 0Q0011101X100001 101110nnnnnddddd 0EA1 B800 Vd,Vn (vector) // fcvtzs Vd,Vn DV_2G 010111101X100001 101110nnnnnddddd 5EA1 B800 Vd,Vn (scalar) // fcvtzs Rd,Vn DV_2H X00111100X111000 000000nnnnnddddd 1E38 0000 Rd,Vn (scalar, to general) INST3(fcvtzu, "fcvtzu", 0, IF_EN3F, 0x2EA1B800, 0x7EA1B800, 0x1E390000) // fcvtzu Vd,Vn DV_2A 0Q1011101X100001 101110nnnnnddddd 2EA1 B800 Vd,Vn (vector) // fcvtzu Vd,Vn DV_2G 011111101X100001 101110nnnnnddddd 7EA1 B800 Vd,Vn (scalar) // fcvtzu Rd,Vn DV_2H X00111100X111001 000000nnnnnddddd 1E39 0000 Rd,Vn (scalar, to general) // enum name info DV_2A DV_2G DV_2I INST3(scvtf, "scvtf", 0, IF_EN3G, 0x0E21D800, 0x5E21D800, 0x1E220000) // scvtf Vd,Vn DV_2A 0Q0011100X100001 110110nnnnnddddd 0E21 D800 Vd,Vn (vector) // scvtf Vd,Vn DV_2G 010111100X100001 110110nnnnnddddd 7E21 D800 Vd,Vn (scalar) // scvtf Rd,Vn DV_2I X00111100X100010 000000nnnnnddddd 1E22 0000 Vd,Rn (scalar, from general) INST3(ucvtf, "ucvtf", 0, IF_EN3G, 0x2E21D800, 0x7E21D800, 0x1E230000) // ucvtf Vd,Vn DV_2A 0Q1011100X100001 110110nnnnnddddd 2E21 D800 Vd,Vn (vector) // ucvtf Vd,Vn DV_2G 011111100X100001 110110nnnnnddddd 7E21 D800 Vd,Vn (scalar) // ucvtf Rd,Vn DV_2I X00111100X100011 000000nnnnnddddd 1E23 0000 Vd,Rn (scalar, from general) INST3(mul, "mul", 0, IF_EN3H, 0x1B007C00, 0x0E209C00, 0x0F008000) // mul Rd,Rn,Rm DR_3A X0011011000mmmmm 011111nnnnnddddd 1B00 7C00 // mul Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100111nnnnnddddd 0E20 9C00 Vd,Vn,Vm (vector) // mul Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1000H0nnnnnddddd 0F00 8000 Vd,Vn,Vm[] (vector by element) INST3(smull, "smull", LNG, IF_EN3H, 0x9B207C00, 0x0E20C000, 0x0F00A000) // smull Rd,Rn,Rm DR_3A 10011011001mmmmm 011111nnnnnddddd 9B20 7C00 // smull Vd,Vn,Vm DV_3A 0000111000100000 1100000000000000 0E20 C000 Vd,Vn,Vm (vector) // smull Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 1010H0nnnnnddddd 0F00 A000 Vd,Vn,Vm[] (vector by element) INST3(umull, "umull", LNG, IF_EN3H, 0x9BA07C00, 0x2E20C000, 0x2F00A000) // umull Rd,Rn,Rm DR_3A 10011011101mmmmm 011111nnnnnddddd 9BA0 7C00 // umull Vd,Vn,Vm DV_3A 00101110XX1mmmmm 110000nnnnnddddd 2E20 C000 Vd,Vn,Vm (vector) // umull Vd,Vn,Vm[] DV_3AI 00101111XXLMmmmm 1010H0nnnnnddddd 2F00 A000 Vd,Vn,Vm[] (vector by element) // enum name info DR_2E DR_2F DV_2M INST3(mvn, "mvn", 0, IF_EN3I, 0x2A2003E0, 0x2A2003E0, 0x2E205800) // mvn Rd,Rm DR_2E X0101010001mmmmm 00000011111ddddd 2A20 03E0 // mvn Rd,(Rm,shk,imm) DR_2F X0101010sh1mmmmm iiiiii11111ddddd 2A20 03E0 Rm {LSL,LSR,ASR} imm(0-63) // mvn Vd,Vn DV_2M 0Q10111000100000 010110nnnnnddddd 2E20 5800 Vd,Vn (vector) // enum name info LS_2D LS_3F LS_2E INST3(ld1_2regs, "ld1", LD, IF_EN3J, 0x0C40A000, 0x0CC0A000, 0x0CDFA000) // LD1 (multiple structures, two registers variant) // ld1 {Vt,Vt2},[Xn] LS_2D 0Q00110001000000 1010ssnnnnnttttt 0C40 A000 base register // ld1 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100110mmmmm 1010ssnnnnnttttt 0CC0 A000 post-indexed by a register // ld1 {Vt,Vt2},[Xn],#imm LS_2E 0Q00110011011111 1010ssnnnnnttttt 0CDF A000 post-indexed by an immediate INST3(ld1_3regs, "ld1", LD, IF_EN3J, 0x0C406000, 0x0CC06000, 0x0CDF6000) // LD1 (multiple structures, three registers variant) // ld1 {Vt-Vt3},[Xn] LS_2D 0Q00110001000000 0110ssnnnnnttttt 0C40 6000 base register // ld1 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100110mmmmm 0110ssnnnnnttttt 0CC0 6000 post-indexed by a register // ld1 {Vt-Vt3},[Xn],#imm LS_2E 0Q00110011011111 0110ssnnnnnttttt 0CDF 6000 post-indexed by an immediate INST3(ld1_4regs, "ld1", LD, IF_EN3J, 0x0C402000, 0x0CC02000, 0x0CDF2000) // LD1 (multiple structures, four registers variant) // ld1 {Vt-Vt4},[Xn] LS_2D 0Q00110001000000 0010ssnnnnnttttt 0C40 2000 base register // ld1 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100110mmmmm 0010ssnnnnnttttt 0CC0 2000 post-indexed by a register // ld1 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110011011111 0010ssnnnnnttttt 0CDF 2000 post-indexed by an immediate INST3(st1_2regs, "st1", ST, IF_EN3J, 0x0C00A000, 0x0C80A000, 0x0C9FA000) // ST1 (multiple structures, two registers variant) // st1 {Vt,Vt2},[Xn] LS_2D 0Q00110000000000 1010ssnnnnnttttt 0C00 A000 base register // st1 {Vt,Vt2},[Xn],Xm LS_3F 0Q001100100mmmmm 1010ssnnnnnttttt 0C80 A000 post-indexed by a register // st1 {Vt,Vt2},[Xn],#imm LS_2E 0Q00110010011111 1010ssnnnnnttttt 0C9F A000 post-indexed by an immediate INST3(st1_3regs, "st1", ST, IF_EN3J, 0x0C006000, 0x0C806000, 0x0C9F6000) // ST1 (multiple structures, three registers variant) // st1 {Vt-Vt3},[Xn] LS_2D 0Q00110000000000 0110ssnnnnnttttt 0C00 6000 base register // st1 {Vt-Vt3},[Xn],Xm LS_3F 0Q001100100mmmmm 0110XXnnnnnttttt 0C80 6000 post-indexed by a register // st1 {Vt-Vt3},[Xn],#imm LS_2E 0Q00110010011111 0110XXnnnnnttttt 0C9F 6000 post-indexed by an immediate INST3(st1_4regs, "st1", ST, IF_EN3J, 0x0C002000, 0x0C802000, 0x0C9F2000) // ST1 (multiple structures, four registers variant) // st1 {Vt-Vt4},[Xn] LS_2D 0Q00110000000000 0010XXnnnnnttttt 0C00 2000 base register // st1 {Vt-Vt4},[Xn],Xm LS_3F 0Q001100100mmmmm 0010XXnnnnnttttt 0C80 2000 post-indexed by a register // st1 {Vt-Vt4},[Xn],#imm LS_2E 0Q00110010011111 0010XXnnnnnttttt 0C9F 2000 post-indexed by an immediate INST3(ld1r, "ld1r", LD, IF_EN3J, 0x0D40C000, 0x0DC0C000, 0x0DDFC000) // ld1r {Vt},[Xn] LS_2D 0Q00110101000000 1100ssnnnnnttttt 0D40 C000 base register // ld1r {Vt},[Xn],Xm LS_3F 0Q001101110mmmmm 1100ssnnnnnttttt 0DC0 C000 post-indexed by a register // ld1r {Vt},[Xn],#1 LS_2E 0Q00110111011111 1100ssnnnnnttttt 0DDF C000 post-indexed by an immediate INST3(ld2r, "ld2r", LD, IF_EN3J, 0x0D60C000, 0x0DE0C000, 0x0DFFC000) // ld2r {Vt,Vt2},[Xn] LS_2D 0Q00110101100000 1100ssnnnnnttttt 0D60 C000 base register // ld2r {Vt,Vt2},[Xn],Xm LS_3F 0Q001101111mmmmm 1100ssnnnnnttttt 0DE0 C000 post-indexed by a register // ld2r {Vt,Vt2},[Xn],#2 LS_2E 0Q00110111111111 1100ssnnnnnttttt 0DFF C000 post-indexed by an immediate INST3(ld3r, "ld3r", LD, IF_EN3J, 0x0D40E000, 0x0DC0E000, 0x0DDFE000) // ld3r {Vt-Vt3},[Xn] LS_2D 0Q00110101000000 1110ssnnnnnttttt 0D40 E000 base register // ld3r {Vt-Vt3},[Xn],Xm LS_3F 0Q001101110mmmmm 1110ssnnnnnttttt 0DC0 E000 post-indexed by a register // ld3r {Vt-Vt3},[Xn],#4 LS_2E 0Q00110111011111 1110ssnnnnnttttt 0DDF E000 post-indexed by an immediate INST3(ld4r, "ld4r", LD, IF_EN3J, 0x0D60E000, 0x0DE0E000, 0x0DFFE000) // ld4r {Vt-Vt4},[Xn] LS_2D 0Q00110101100000 1110ssnnnnnttttt 0D60 E000 base register // ld4r {Vt-Vt4},[Xn],Xm LS_3F 0Q001101111mmmmm 1110ssnnnnnttttt 0DE0 E000 post-indexed by a register // ld4r {Vt-Vt4},[Xn],#8 LS_2E 0Q00110111111111 1110ssnnnnnttttt 0DFF E000 post-indexed by an immediate // enum name info DR_2E DR_2F INST2(negs, "negs", 0, IF_EN2A, 0x6B0003E0, 0x6B0003E0) // negs Rd,Rm DR_2E X1101011000mmmmm 00000011111ddddd 6B00 03E0 // negs Rd,(Rm,shk,imm) DR_2F X1101011sh0mmmmm ssssss11111ddddd 6B00 03E0 Rm {LSL,LSR,ASR} imm(0-63) // enum name info DR_3A DR_3B INST2(bics, "bics", 0, IF_EN2B, 0x6A200000, 0x6A200000) // bics Rd,Rn,Rm DR_3A X1101010001mmmmm 000000nnnnnddddd 6A20 0000 // bics Rd,Rn,(Rm,shk,imm) DR_3B X1101010sh1mmmmm iiiiiinnnnnddddd 6A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) INST2(eon, "eon", 0, IF_EN2B, 0x4A200000, 0x4A200000) // eon Rd,Rn,Rm DR_3A X1001010001mmmmm 000000nnnnnddddd 4A20 0000 // eon Rd,Rn,(Rm,shk,imm) DR_3B X1001010sh1mmmmm iiiiiinnnnnddddd 4A20 0000 Rm {LSL,LSR,ASR,ROR} imm(0-63) // enum name info DR_3A DI_2C INST2(lsl, "lsl", 0, IF_EN2C, 0x1AC02000, 0x53000000) // lsl Rd,Rn,Rm DR_3A X0011010110mmmmm 001000nnnnnddddd 1AC0 2000 // lsl Rd,Rn,imm6 DI_2D X10100110Xrrrrrr ssssssnnnnnddddd 5300 0000 imm(N,r,s) INST2(lsr, "lsr", 0, IF_EN2C, 0x1AC02400, 0x53000000) // lsr Rd,Rn,Rm DR_3A X0011010110mmmmm 001001nnnnnddddd 1AC0 2400 // lsr Rd,Rn,imm6 DI_2D X10100110Xrrrrrr ssssssnnnnnddddd 5300 0000 imm(N,r,s) INST2(asr, "asr", 0, IF_EN2C, 0x1AC02800, 0x13000000) // asr Rd,Rn,Rm DR_3A X0011010110mmmmm 001010nnnnnddddd 1AC0 2800 // asr Rd,Rn,imm6 DI_2D X00100110Xrrrrrr ssssssnnnnnddddd 1300 0000 imm(N,r,s) // enum name info DR_3A DI_2B INST2(ror, "ror", 0, IF_EN2D, 0x1AC02C00, 0x13800000) // ror Rd,Rn,Rm DR_3A X0011010110mmmmm 001011nnnnnddddd 1AC0 2C00 // ror Rd,Rn,imm6 DI_2B X00100111X0nnnnn ssssssnnnnnddddd 1380 0000 imm(0-63) // enum name info LS_3B LS_3C INST2(ldp, "ldp", LD, IF_EN2E, 0x29400000, 0x28400000) // ldp Rt,Ra,[Xn] LS_3B X010100101000000 0aaaaannnnnttttt 2940 0000 [Xn imm7] // ldp Rt,Ra,[Xn+simm7] LS_3C X010100PP1iiiiii iaaaaannnnnttttt 2840 0000 [Xn imm7 LSL {} pre/post/no inc] INST2(ldpsw, "ldpsw", LD, IF_EN2E, 0x69400000, 0x68400000) // ldpsw Rt,Ra,[Xn] LS_3B 0110100101000000 0aaaaannnnnttttt 6940 0000 [Xn imm7] // ldpsw Rt,Ra,[Xn+simm7] LS_3C 0110100PP1iiiiii iaaaaannnnnttttt 6840 0000 [Xn imm7 LSL {} pre/post/no inc] INST2(stp, "stp", ST, IF_EN2E, 0x29000000, 0x28000000) // stp Rt,Ra,[Xn] LS_3B X010100100000000 0aaaaannnnnttttt 2900 0000 [Xn imm7] // stp Rt,Ra,[Xn+simm7] LS_3C X010100PP0iiiiii iaaaaannnnnttttt 2800 0000 [Xn imm7 LSL {} pre/post/no inc] INST2(ldnp, "ldnp", LD, IF_EN2E, 0x28400000, 0x28400000) // ldnp Rt,Ra,[Xn] LS_3B X010100001000000 0aaaaannnnnttttt 2840 0000 [Xn imm7] // ldnp Rt,Ra,[Xn+simm7] LS_3C X010100001iiiiii iaaaaannnnnttttt 2840 0000 [Xn imm7 LSL {}] INST2(stnp, "stnp", ST, IF_EN2E, 0x28000000, 0x28000000) // stnp Rt,Ra,[Xn] LS_3B X010100000000000 0aaaaannnnnttttt 2800 0000 [Xn imm7] // stnp Rt,Ra,[Xn+simm7] LS_3C X010100000iiiiii iaaaaannnnnttttt 2800 0000 [Xn imm7 LSL {}] INST2(ccmp, "ccmp", CMP, IF_EN2F, 0x7A400000, 0x7A400800) // ccmp Rn,Rm, nzcv,cond DR_2I X1111010010mmmmm cccc00nnnnn0nzcv 7A40 0000 nzcv, cond // ccmp Rn,imm5,nzcv,cond DI_1F X1111010010iiiii cccc10nnnnn0nzcv 7A40 0800 imm5, nzcv, cond INST2(ccmn, "ccmn", CMP, IF_EN2F, 0x3A400000, 0x3A400800) // ccmn Rn,Rm, nzcv,cond DR_2I X0111010010mmmmm cccc00nnnnn0nzcv 3A40 0000 nzcv, cond // ccmn Rn,imm5,nzcv,cond DI_1F X0111010910iiiii cccc10nnnnn0nzcv 3A40 0800 imm5, nzcv, cond // enum name info DV_2C DV_2F INST2(ins, "ins", 0, IF_EN2H, 0x4E001C00, 0x6E000400) // ins Vd[],Rn DV_2C 01001110000iiiii 000111nnnnnddddd 4E00 1C00 Vd[],Rn (from general) // ins Vd[],Vn[] DV_2F 01101110000iiiii 0jjjj1nnnnnddddd 6E00 0400 Vd[],Vn[] (from/to elem) // enum name info DV_3B DV_3D INST2(fadd, "fadd", 0, IF_EN2G, 0x0E20D400, 0x1E202800) // fadd Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110101nnnnnddddd 0E20 D400 Vd,Vn,Vm (vector) // fadd Vd,Vn,Vm DV_3D 000111100X1mmmmm 001010nnnnnddddd 1E20 2800 Vd,Vn,Vm (scalar) INST2(fsub, "fsub", 0, IF_EN2G, 0x0EA0D400, 0x1E203800) // fsub Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 110101nnnnnddddd 0EA0 D400 Vd,Vn,Vm (vector) // fsub Vd,Vn,Vm DV_3D 000111100X1mmmmm 001110nnnnnddddd 1E20 3800 Vd,Vn,Vm (scalar) INST2(fdiv, "fdiv", 0, IF_EN2G, 0x2E20FC00, 0x1E201800) // fdiv Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111111nnnnnddddd 2E20 FC00 Vd,Vn,Vm (vector) // fdiv Vd,Vn,Vm DV_3D 000111100X1mmmmm 000110nnnnnddddd 1E20 1800 Vd,Vn,Vm (scalar) INST2(fmax, "fmax", 0, IF_EN2G, 0x0E20F400, 0x1E204800) // fmax Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 111101nnnnnddddd 0E20 F400 Vd,Vn,Vm (vector) // fmax Vd,Vn,Vm DV_3D 000111100X1mmmmm 010010nnnnnddddd 1E20 4800 Vd,Vn,Vm (scalar) INST2(fmaxnm, "fmaxnm", 0, IF_EN2G, 0x0E20C400, 0x1E206800) // fmaxnm Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 110001nnnnnddddd 0E20 C400 Vd,Vn,Vm (vector) // fmaxnm Vd,Vn,Vm DV_3D 000111100X1mmmmm 011010nnnnnddddd 1E20 6800 Vd,Vn,Vm (scalar) INST2(fmin, "fmin", 0, IF_EN2G, 0x0EA0F400, 0x1E205800) // fmin Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 111101nnnnnddddd 0EA0 F400 Vd,Vn,Vm (vector) // fmin Vd,Vn,Vm DV_3D 000111100X1mmmmm 010110nnnnnddddd 1E20 5800 Vd,Vn,Vm (scalar) INST2(fminnm, "fminnm", 0, IF_EN2G, 0x0EA0C400, 0x1E207800) // fminnm Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 110001nnnnnddddd 0EA0 C400 Vd,Vn,Vm (vector) // fminnm Vd,Vn,Vm DV_3D 000111100X1mmmmm 011110nnnnnddddd 1E20 7800 Vd,Vn,Vm (scalar) INST2(fabd, "fabd", 0, IF_EN2G, 0x2EA0D400, 0x7EA0D400) // fabd Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 110101nnnnnddddd 2EA0 D400 Vd,Vn,Vm (vector) // fabd Vd,Vn,Vm DV_3D 011111101X1mmmmm 110101nnnnnddddd 7EA0 D400 Vd,Vn,Vm (scalar) INST2(facge, "facge", 0, IF_EN2G, 0x2E20EC00, 0x7E20EC00) // facge Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111011nnnnnddddd 2E20 EC00 Vd,Vn,Vm (vector) // facge Vd,Vn,Vm DV_3D 011111100X1mmmmm 111011nnnnnddddd 7E20 EC00 Vd,Vn,Vm (scalar) INST2(facgt, "facgt", 0, IF_EN2G, 0x2EA0EC00, 0x7EA0EC00) // facgt Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 111011nnnnnddddd 2EA0 EC00 Vd,Vn,Vm (vector) // facgt Vd,Vn,Vm DV_3D 011111101X1mmmmm 111011nnnnnddddd 7EA0 EC00 Vd,Vn,Vm (scalar) INST2(frecps, "frecps", 0, IF_EN2G, 0x0E20FC00, 0x5E20FC00) // frecps Vd,Vn,Vm DV_3B 0Q0011100X1mmmmm 111111nnnnnddddd 0E20 FC00 Vd,Vn,Vm (vector) // frecps Vd,Vn,Vm DV_3D 010111100X1mmmmm 111111nnnnnddddd 5E20 FC00 Vd,Vn,Vm (scalar) INST2(frsqrts, "frsqrts", 0, IF_EN2G, 0x0EA0FC00, 0x5EA0FC00) // frsqrts Vd,Vn,Vm DV_3B 0Q0011101X1mmmmm 111111nnnnnddddd 0EA0 FC00 Vd,Vn,Vm (vector) // frsqrts Vd,Vn,Vm DV_3D 010111101X1mmmmm 111111nnnnnddddd 5EA0 FC00 Vd,Vn,Vm (scalar) // enum name info DV_2K DV_1C INST2(fcmp, "fcmp", 0, IF_EN2I, 0x1E202000, 0x1E202008) // fcmp Vn,Vm DV_2K 000111100X1mmmmm 001000nnnnn00000 1E20 2000 Vn Vm // fcmp Vn,#0.0 DV_1C 000111100X100000 001000nnnnn01000 1E20 2008 Vn #0.0 INST2(fcmpe, "fcmpe", 0, IF_EN2I, 0x1E202010, 0x1E202018) // fcmpe Vn,Vm DV_2K 000111100X1mmmmm 001000nnnnn10000 1E20 2010 Vn Vm // fcmpe Vn,#0.0 DV_1C 000111100X100000 001000nnnnn11000 1E20 2018 Vn #0.0 // enum name info DV_2A DV_2G INST2(fabs, "fabs", 0, IF_EN2J, 0x0EA0F800, 0x1E20C000) // fabs Vd,Vn DV_2A 0Q0011101X100000 111110nnnnnddddd 0EA0 F800 Vd,Vn (vector) // fabs Vd,Vn DV_2G 000111100X100000 110000nnnnnddddd 1E20 C000 Vd,Vn (scalar) INST2(fcmle, "fcmle", 0, IF_EN2J, 0x2EA0D800, 0x7EA0D800) // fcmle Vd,Vn,#0 DV_2A 0Q1011101X100000 111110nnnnnddddd 2EA0 D800 Vd,Vn,#0 (vector - with zero) // fcmle Vd,Vn,#0 DV_2G 011111101X100000 110110nnnnnddddd 7EA0 D800 Vd,Vn,#0 (scalar - with zero) INST2(fcmlt, "fcmlt", 0, IF_EN2J, 0x0EA0E800, 0x5EA0E800) // fcmlt Vd,Vn,#0 DV_2A 0Q0011101X100000 111110nnnnnddddd 0EA0 E800 Vd,Vn,#0 (vector - with zero) // fcmlt Vd,Vn,#0 DV_2G 010111101X100000 111010nnnnnddddd 5EA0 E800 Vd,Vn,#0 (scalar - with zero) INST2(fcvtxn, "fcvtxn", NRW, IF_EN2J, 0x2E616800, 0x7E616800) // fcvtxn Vd,Vn DV_2A 0010111001100001 011010nnnnnddddd 2E61 6800 Vd,Vn (vector) // fcvtxn Vd,Vn DV_2G 0111111001100001 011010nnnnnddddd 7E61 6800 Vd,Vn (scalar) INST2(fneg, "fneg", 0, IF_EN2J, 0x2EA0F800, 0x1E214000) // fneg Vd,Vn DV_2A 0Q1011101X100000 111110nnnnnddddd 2EA0 F800 Vd,Vn (vector) // fneg Vd,Vn DV_2G 000111100X100001 010000nnnnnddddd 1E21 4000 Vd,Vn (scalar) INST2(frecpe, "frecpe", 0, IF_EN2J, 0x0EA1D800, 0x5EA1D800) // frecpe Vd,Vn DV_2A 0Q0011101X100001 110110nnnnnddddd 0EA1 D800 Vd,Vn (vector) // frecpe Vd,Vn DV_2G 010111101X100001 110110nnnnnddddd 5EA1 D800 Vd,Vn (scalar) INST2(frintn, "frintn", 0, IF_EN2J, 0x0E218800, 0x1E244000) // frintn Vd,Vn DV_2A 0Q0011100X100001 100010nnnnnddddd 0E21 8800 Vd,Vn (vector) // frintn Vd,Vn DV_2G 000111100X100100 010000nnnnnddddd 1E24 4000 Vd,Vn (scalar) INST2(frintp, "frintp", 0, IF_EN2J, 0x0EA18800, 0x1E24C000) // frintp Vd,Vn DV_2A 0Q0011101X100001 100010nnnnnddddd 0EA1 8800 Vd,Vn (vector) // frintp Vd,Vn DV_2G 000111100X100100 110000nnnnnddddd 1E24 C000 Vd,Vn (scalar) INST2(frintm, "frintm", 0, IF_EN2J, 0x0E219800, 0x1E254000) // frintm Vd,Vn DV_2A 0Q0011100X100001 100110nnnnnddddd 0E21 9800 Vd,Vn (vector) // frintm Vd,Vn DV_2G 000111100X100101 010000nnnnnddddd 1E25 4000 Vd,Vn (scalar) INST2(frintz, "frintz", 0, IF_EN2J, 0x0EA19800, 0x1E25C000) // frintz Vd,Vn DV_2A 0Q0011101X100001 100110nnnnnddddd 0EA1 9800 Vd,Vn (vector) // frintz Vd,Vn DV_2G 000111100X100101 110000nnnnnddddd 1E25 C000 Vd,Vn (scalar) INST2(frinta, "frinta", 0, IF_EN2J, 0x2E218800, 0x1E264000) // frinta Vd,Vn DV_2A 0Q1011100X100001 100010nnnnnddddd 2E21 8800 Vd,Vn (vector) // frinta Vd,Vn DV_2G 000111100X100110 010000nnnnnddddd 1E26 4000 Vd,Vn (scalar) INST2(frintx, "frintx", 0, IF_EN2J, 0x2E219800, 0x1E274000) // frintx Vd,Vn DV_2A 0Q1011100X100001 100110nnnnnddddd 2E21 9800 Vd,Vn (vector) // frintx Vd,Vn DV_2G 000111100X100111 010000nnnnnddddd 1E27 4000 Vd,Vn (scalar) INST2(frinti, "frinti", 0, IF_EN2J, 0x2EA19800, 0x1E27C000) // frinti Vd,Vn DV_2A 0Q1011101X100001 100110nnnnnddddd 2EA1 9800 Vd,Vn (vector) // frinti Vd,Vn DV_2G 000111100X100111 110000nnnnnddddd 1E27 C000 Vd,Vn (scalar) INST2(frsqrte, "frsqrte", 0, IF_EN2J, 0x2EA1D800, 0x7EA1D800) // frsqrte Vd,Vn DV_2A 0Q1011101X100001 110110nnnnnddddd 2EA1 D800 Vd,Vn (vector) // frsqrte Vd,Vn DV_2G 011111101X100001 110110nnnnnddddd 7EA1 D800 Vd,Vn (scalar) INST2(fsqrt, "fsqrt", 0, IF_EN2J, 0x2EA1F800, 0x1E21C000) // fsqrt Vd,Vn DV_2A 0Q1011101X100001 111110nnnnnddddd 2EA1 F800 Vd,Vn (vector) // fsqrt Vd,Vn DV_2G 000111100X100001 110000nnnnnddddd 1E21 C000 Vd,Vn (scalar) // enum name info DV_2M DV_2L INST2(abs, "abs", 0, IF_EN2K, 0x0E20B800, 0x5E20B800) // abs Vd,Vn DV_2M 0Q001110XX100000 101110nnnnnddddd 0E20 B800 Vd,Vn (vector) // abs Vd,Vn DV_2L 01011110XX100000 101110nnnnnddddd 5E20 B800 Vd,Vn (scalar) INST2(cmle, "cmle", 0, IF_EN2K, 0x2E209800, 0x7E209800) // cmle Vd,Vn,#0 DV_2M 0Q101110XX100000 100110nnnnnddddd 2E20 9800 Vd,Vn,#0 (vector - with zero) // cmle Vd,Vn,#0 DV_2L 01111110XX100000 100110nnnnnddddd 7E20 9800 Vd,Vn,#0 (scalar - wtih zero) INST2(cmlt, "cmlt", 0, IF_EN2K, 0x0E20A800, 0x5E20A800) // cmlt Vd,Vn,#0 DV_2M 0Q101110XX100000 101010nnnnnddddd 0E20 A800 Vd,Vn,#0 (vector - with zero) // cmlt Vd,Vn,#0 DV_2L 01011110XX100000 101010nnnnnddddd 5E20 A800 Vd,Vn,#0 (scalar - with zero) INST2(sqabs, "sqabs", 0, IF_EN2K, 0x0E207800, 0x5E207800) // sqabs Vd,Vn DV_2M 0Q001110XX100000 011110nnnnnddddd 0E20 7800 Vd,Vn (vector) // sqabs Vd,Vn DV_2L 01011110XX100000 011110nnnnnddddd 5E20 7800 Vd,Vn (scalar) INST2(sqneg, "sqneg", 0, IF_EN2K, 0x2E207800, 0x7E207800) // sqneg Vd,Vn DV_2M 0Q101110XX100000 011110nnnnnddddd 2E20 7800 Vd,Vn (vector) // sqneg Vd,Vn DV_2L 01111110XX100000 011110nnnnnddddd 7E20 7800 Vd,Vn (scalar) INST2(sqxtn, "sqxtn", NRW, IF_EN2K, 0x0E214800, 0x5E214800) // sqxtn Vd,Vn DV_2M 0Q001110XX100001 010010nnnnnddddd 0E21 4800 Vd,Vn (vector) // sqxtn Vd,Vn DV_2L 01011110XX100001 010010nnnnnddddd 5E21 4800 Vd,Vn (scalar) INST2(sqxtun, "sqxtun", NRW, IF_EN2K, 0x2E212800, 0x7E212800) // sqxtun Vd,Vn DV_2M 0Q101110XX100001 001010nnnnnddddd 2E21 2800 Vd,Vn (vector) // sqxtun Vd,Vn DV_2L 01111110XX100001 001010nnnnnddddd 7E21 2800 Vd,Vn (scalar) INST2(suqadd, "suqadd", 0, IF_EN2K, 0x0E203800, 0x5E203800) // suqadd Vd,Vn DV_2M 0Q001110XX100000 001110nnnnnddddd 0E20 3800 Vd,Vn (vector) // suqadd Vd,Vn DV_2L 01011110XX100000 001110nnnnnddddd 5E20 3800 Vd,Vn (scalar) INST2(usqadd, "usqadd", 0, IF_EN2K, 0x2E203800, 0x7E203800) // usqadd Vd,Vn DV_2M 0Q101110XX100000 001110nnnnnddddd 2E20 3800 Vd,Vn (vector) // usqadd Vd,Vn DV_2L 01111110XX100000 001110nnnnnddddd 7E20 3800 Vd,Vn (scalar) INST2(uqxtn, "uqxtn", NRW, IF_EN2K, 0x2E214800, 0x7E214800) // uqxtn Vd,Vn DV_2M 0Q101110XX100001 010010nnnnnddddd 2E21 4800 Vd,Vn (vector) // uqxtn Vd,Vn DV_2L 01111110XX100001 010010nnnnnddddd 7E21 4800 Vd,Vn (scalar) // enum name info DR_2G DV_2M INST2(cls, "cls", 0, IF_EN2L, 0x5AC01400, 0x0E204800) // cls Rd,Rm DR_2G X101101011000000 000101nnnnnddddd 5AC0 1400 Rd Rn (general) // cls Vd,Vn DV_2M 0Q00111000100000 010010nnnnnddddd 0E20 4800 Vd,Vn (vector) INST2(clz, "clz", 0, IF_EN2L, 0x5AC01000, 0x2E204800) // clz Rd,Rm DR_2G X101101011000000 000100nnnnnddddd 5AC0 1000 Rd Rn (general) // clz Vd,Vn DV_2M 0Q10111000100000 010010nnnnnddddd 2E20 4800 Vd,Vn (vector) INST2(rbit, "rbit", 0, IF_EN2L, 0x5AC00000, 0x2E605800) // rbit Rd,Rm DR_2G X101101011000000 000000nnnnnddddd 5AC0 0000 Rd Rn (general) // rbit Vd,Vn DV_2M 0Q10111001100000 010110nnnnnddddd 2E60 5800 Vd,Vn (vector) INST2(rev16, "rev16", 0, IF_EN2L, 0x5AC00400, 0x0E201800) // rev16 Rd,Rm DR_2G X101101011000000 000001nnnnnddddd 5AC0 0400 Rd Rn (general) // rev16 Vd,Vn DV_2M 0Q001110XX100000 000110nnnnnddddd 0E20 1800 Vd,Vn (vector) INST2(rev32, "rev32", 0, IF_EN2L, 0xDAC00800, 0x2E200800) // rev32 Rd,Rm DR_2G 1101101011000000 000010nnnnnddddd DAC0 0800 Rd Rn (general) // rev32 Vd,Vn DV_2M 0Q101110XX100000 000010nnnnnddddd 2E20 0800 Vd,Vn (vector) // enum name info DV_3A DV_3AI INST2(mla, "mla", 0, IF_EN2M, 0x0E209400, 0x2F000000) // mla Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100101nnnnnddddd 0E20 9400 Vd,Vn,Vm (vector) // mla Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 0000H0nnnnnddddd 2F00 0000 Vd,Vn,Vm[] (vector by element) INST2(mls, "mls", 0, IF_EN2M, 0x2E209400, 0x2F004000) // mls Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100101nnnnnddddd 2E20 9400 Vd,Vn,Vm (vector) // mls Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 0100H0nnnnnddddd 2F00 4000 Vd,Vn,Vm[] (vector by element) INST2(smlal, "smlal", LNG, IF_EN2M, 0x0E208000, 0x0F002000) // smlal Vd,Vn,Vm DV_3A 00001110XX1mmmmm 100000nnnnnddddd 0E20 8000 Vd,Vn,Vm (vector) // smlal Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0010H0nnnnnddddd 0F00 2000 Vd,Vn,Vm[] (vector by element) INST2(smlal2, "smlal2", LNG, IF_EN2M, 0x4E208000, 0x4F002000) // smlal2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 100000nnnnnddddd 4E20 8000 Vd,Vn,Vm (vector) // smlal2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0010H0nnnnnddddd 4F00 2000 Vd,Vn,Vm[] (vector by element) INST2(smlsl, "smlsl", LNG, IF_EN2M, 0x0E20A000, 0x0F006000) // smlsl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 101000nnnnnddddd 0E20 A000 Vd,Vn,Vm (vector) // smlsl Vd,Vn,Vm[] DV_3AI 00001111XXLMmmmm 0110H0nnnnnddddd 0F00 6000 Vd,Vn,Vm[] (vector by element) INST2(smlsl2, "smlsl2", LNG, IF_EN2M, 0x4E20A000, 0x4F006000) // smlsl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 101000nnnnnddddd 4E20 A000 Vd,Vn,Vm (vector) // smlsl2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0110H0nnnnnddddd 4F00 6000 Vd,Vn,Vm[] (vector by element) INST2(smull2, "smull2", LNG, IF_EN2M, 0x4E20C000, 0x4F00A000) // smull2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 110000nnnnnddddd 4E20 C000 Vd,Vn,Vm (vector) // smull2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 1010H0nnnnnddddd 4F00 A000 Vd,Vn,Vm[] (vector by element) INST2(sqdmlal2, "sqdmlal2", LNG, IF_EN2M, 0x4E209000, 0x4F003000) // sqdmlal2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 100100nnnnnddddd 4E20 9000 Vd,Vn,Vm (vector) // sqdmlal2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0011H0nnnnnddddd 4F00 3000 Vd,Vn,Vm[] (vector by element) INST2(sqdmlsl2, "sqdmlsl2", LNG, IF_EN2M, 0x4E20B000, 0x4F007000) // sqdmlsl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 101100nnnnnddddd 4E20 B000 Vd,Vn,Vm (vector) // sqdmlsl2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 0111H0nnnnnddddd 4F00 7000 Vd,Vn,Vm[] (vector by element) INST2(sqdmull2, "sqdmull2", LNG, IF_EN2M, 0x4E20D000, 0x4F00B000) // sqdmull2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 110100nnnnnddddd 4E20 D000 Vd,Vn,Vm (vector) // sqdmull2 Vd,Vn,Vm[] DV_3AI 01001111XXLMmmmm 1011H0nnnnnddddd 4F00 B000 Vd,Vn,Vm[] (vector by element) INST2(sdot, "sdot", 0, IF_EN2M, 0x0E009400, 0x0F00E000) // sdot Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 100101nnnnnddddd 0E00 9400 Vd,Vn,Vm (vector) // sdot Vd,Vn,Vm[] DV_3AI 0Q001111XXLMmmmm 1110H0nnnnnddddd 0F00 E000 Vd,Vn,Vm[] (vector by element) INST2(udot, "udot", 0, IF_EN2M, 0x2E009400, 0x2F00E000) // udot Vd,Vn,Vm DV_3A 0Q101110XX0mmmmm 100101nnnnnddddd 2E00 9400 Vd,Vn,Vm (vector) // udot Vd,Vn,Vm[] DV_3AI 0Q101111XXLMmmmm 1110H0nnnnnddddd 2F00 E000 Vd,Vn,Vm[] (vector by element) INST2(umlal, "umlal", LNG, IF_EN2M, 0x2E208000, 0x2F002000) // umlal Vd,Vn,Vm DV_3A 00101110XX1mmmmm 100000nnnnnddddd 2E20 8000 Vd,Vn,Vm (vector) // umlal Vd,Vn,Vm[] DV_3AI 00101111XXLMmmmm 0010H0nnnnnddddd 2F00 2000 Vd,Vn,Vm[] (vector by element) INST2(umlal2, "umlal2", LNG, IF_EN2M, 0x6E208000, 0x6F002000) // umlal2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 100000nnnnnddddd 6E20 8000 Vd,Vn,Vm (vector) // umlal2 Vd,Vn,Vm[] DV_3AI 01101111XXLMmmmm 0010H0nnnnnddddd 6F00 2000 Vd,Vn,Vm[] (vector by element) INST2(umlsl, "umlsl", LNG, IF_EN2M, 0x2E20A000, 0x2F006000) // umlsl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 101000nnnnnddddd 2E20 A000 Vd,Vn,Vm (vector) // umlsl Vd,Vn,Vm[] DV_3AI 00101111XXLMmmmm 0110H0nnnnnddddd 2F00 6000 Vd,Vn,Vm[] (vector by element) INST2(umlsl2, "umlsl2", LNG, IF_EN2M, 0x6E20A000, 0x6F006000) // umlsl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 101000nnnnnddddd 6E20 A000 Vd,Vn,Vm (vector) // umlsl2 Vd,Vn,Vm[] DV_3AI 01101111XXLMmmmm 0110H0nnnnnddddd 6F00 6000 Vd,Vn,Vm[] (vector by element) INST2(umull2, "umull2", LNG, IF_EN2M, 0x6E20C000, 0x6F00A000) // umull2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 110000nnnnnddddd 6E20 C000 Vd,Vn,Vm (vector) // umull2 Vd,Vn,Vm[] DV_3AI 01101111XXLMmmmm 1010H0nnnnnddddd 6F00 A000 Vd,Vn,Vm[] (vector by element) // enum name info DV_2N DV_2O INST2(sshr, "sshr", RSH, IF_EN2N, 0x5F000400, 0x0F000400) // sshr Vd,Vn,imm DV_2N 010111110iiiiiii 000001nnnnnddddd 5F00 0400 Vd Vn imm (right shift - scalar) // sshr Vd,Vn,imm DV_2O 0Q0011110iiiiiii 000001nnnnnddddd 0F00 0400 Vd,Vn imm (right shift - vector) INST2(ssra, "ssra", RSH, IF_EN2N, 0x5F001400, 0x0F001400) // ssra Vd,Vn,imm DV_2N 010111110iiiiiii 000101nnnnnddddd 5F00 1400 Vd Vn imm (right shift - scalar) // ssra Vd,Vn,imm DV_2O 0Q0011110iiiiiii 000101nnnnnddddd 0F00 1400 Vd,Vn imm (right shift - vector) INST2(srshr, "srshr", RSH, IF_EN2N, 0x5F002400, 0x0F002400) // srshr Vd,Vn,imm DV_2N 010111110iiiiiii 001001nnnnnddddd 5F00 0400 Vd Vn imm (right shift - scalar) // srshr Vd,Vn,imm DV_2O 0Q0011110iiiiiii 001001nnnnnddddd 0F00 0400 Vd,Vn imm (right shift - vector) INST2(srsra, "srsra", RSH, IF_EN2N, 0x5F003400, 0x0F003400) // srsra Vd,Vn,imm DV_2N 010111110iiiiiii 001101nnnnnddddd 5F00 1400 Vd Vn imm (right shift - scalar) // srsra Vd,Vn,imm DV_2O 0Q0011110iiiiiii 001101nnnnnddddd 0F00 1400 Vd,Vn imm (right shift - vector) INST2(shl, "shl", 0, IF_EN2N, 0x5F005400, 0x0F005400) // shl Vd,Vn,imm DV_2N 010111110iiiiiii 010101nnnnnddddd 5F00 5400 Vd Vn imm (left shift - scalar) // shl Vd,Vn,imm DV_2O 0Q0011110iiiiiii 010101nnnnnddddd 0F00 5400 Vd,Vn imm (left shift - vector) INST2(ushr, "ushr", RSH, IF_EN2N, 0x7F000400, 0x2F000400) // ushr Vd,Vn,imm DV_2N 011111110iiiiiii 000001nnnnnddddd 7F00 0400 Vd Vn imm (right shift - scalar) // ushr Vd,Vn,imm DV_2O 0Q1011110iiiiiii 000001nnnnnddddd 2F00 0400 Vd,Vn imm (right shift - vector) INST2(usra, "usra", RSH, IF_EN2N, 0x7F001400, 0x2F001400) // usra Vd,Vn,imm DV_2N 011111110iiiiiii 000101nnnnnddddd 7F00 1400 Vd Vn imm (right shift - scalar) // usra Vd,Vn,imm DV_2O 0Q1011110iiiiiii 000101nnnnnddddd 2F00 1400 Vd,Vn imm (right shift - vector) INST2(urshr, "urshr", RSH, IF_EN2N, 0x7F002400, 0x2F002400) // urshr Vd,Vn,imm DV_2N 011111110iiiiiii 001001nnnnnddddd 7F00 2400 Vd Vn imm (right shift - scalar) // urshr Vd,Vn,imm DV_2O 0Q1011110iiiiiii 001001nnnnnddddd 2F00 2400 Vd,Vn imm (right shift - vector) INST2(ursra, "ursra", RSH, IF_EN2N, 0x7F003400, 0x2F003400) // ursra Vd,Vn,imm DV_2N 011111110iiiiiii 001101nnnnnddddd 7F00 3400 Vd Vn imm (right shift - scalar) // ursra Vd,Vn,imm DV_2O 0Q1011110iiiiiii 001101nnnnnddddd 2F00 3400 Vd,Vn imm (right shift - vector) INST2(sri, "sri", RSH, IF_EN2N, 0x7F004400, 0x2F004400) // sri Vd,Vn,imm DV_2N 011111110iiiiiii 010001nnnnnddddd 7F00 4400 Vd Vn imm (right shift - scalar) // sri Vd,Vn,imm DV_2O 0Q1011110iiiiiii 010001nnnnnddddd 2F00 4400 Vd,Vn imm (right shift - vector) INST2(sli, "sli", 0, IF_EN2N, 0x7F005400, 0x2F005400) // sli Vd,Vn,imm DV_2N 011111110iiiiiii 010101nnnnnddddd 7F00 5400 Vd Vn imm (left shift - scalar) // sli Vd,Vn,imm DV_2O 0Q1011110iiiiiii 010101nnnnnddddd 2F00 5400 Vd,Vn imm (left shift - vector) INST2(sqshlu, "sqshlu", 0, IF_EN2N, 0x7F006400, 0x2F006400) // sqshlu Vd,Vn,imm DV_2N 011111110iiiiiii 011001nnnnnddddd 7F00 6400 Vd Vn imm (left shift - scalar) // sqshlu Vd,Vn,imm DV_2O 0Q1011110iiiiiii 011001nnnnnddddd 2F00 6400 Vd Vn imm (left shift - vector) INST2(sqrshrn, "sqrshrn", RSH|NRW,IF_EN2N, 0x5F009C00, 0x0F009C00) // sqrshrn Vd,Vn,imm DV_2N 010111110iiiiiii 100111nnnnnddddd 5F00 9C00 Vd Vn imm (right shift - scalar) // sqrshrn Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100111nnnnnddddd 0F00 9C00 Vd Vn imm (right shift - vector) INST2(sqrshrun, "sqrshrun", RSH|NRW,IF_EN2N, 0x7F008C00, 0x2F008C00) // sqrshrun Vd,Vn,imm DV_2N 011111110iiiiiii 100011nnnnnddddd 7F00 8C00 Vd Vn imm (right shift - scalar) // sqrshrun Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100011nnnnnddddd 2F00 8C00 Vd Vn imm (right shift - vector) INST2(sqshrn, "sqshrn", RSH|NRW,IF_EN2N, 0x5F009400, 0x0F009400) // sqshrn Vd,Vn,imm DV_2N 010111110iiiiiii 100101nnnnnddddd 5F00 9400 Vd Vn imm (right shift - scalar) // sqshrn Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100101nnnnnddddd 0F00 9400 Vd Vn imm (right shift - vector) INST2(sqshrun, "sqshrun", RSH|NRW,IF_EN2N, 0x7F008400, 0x2F008400) // sqshrun Vd,Vn,imm DV_2N 011111110iiiiiii 100001nnnnnddddd 7F00 8400 Vd Vn imm (right shift - scalar) // sqshrun Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100001nnnnnddddd 2F00 8400 Vd Vn imm (right shift - vector) INST2(uqrshrn, "uqrshrn", RSH|NRW,IF_EN2N, 0x7F009C00, 0x2F009C00) // uqrshrn Vd,Vn,imm DV_2N 011111110iiiiiii 100111nnnnnddddd 7F00 9C00 Vd Vn imm (right shift - scalar) // uqrshrn Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100111nnnnnddddd 2F00 9C00 Vd Vn imm (right shift - vector) INST2(uqshrn, "uqshrn", RSH|NRW,IF_EN2N, 0x7F009400, 0x2F009400) // usqhrn Vd,Vn,imm DV_2N 011111110iiiiiii 100101nnnnnddddd 7F00 9400 Vd Vn imm (right shift - scalar) // usqhrn Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100101nnnnnddddd 2F00 9400 Vd Vn imm (right shift - vector) // enum name info DV_3E DV_3A INST2(cmhi, "cmhi", 0, IF_EN2O, 0x7EE03400, 0x2E203400) // cmhi Vd,Vn,Vm DV_3E 01111110111mmmmm 001101nnnnnddddd 7EE0 3400 Vd,Vn,Vm (scalar) // cmhi Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001101nnnnnddddd 2E20 3400 Vd,Vn,Vm (vector) INST2(cmhs, "cmhs", 0, IF_EN2O, 0x7EE03C00, 0x2E203C00) // cmhs Vd,Vn,Vm DV_3E 01111110111mmmmm 001111nnnnnddddd 7EE0 3C00 Vd,Vn,Vm (scalar) // cmhs Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001111nnnnnddddd 2E20 3C00 Vd,Vn,Vm (vector) INST2(cmtst, "cmtst", 0, IF_EN2O, 0x5EE08C00, 0x0E208C00) // cmtst Vd,Vn,Vm DV_3E 01011110111mmmmm 100011nnnnnddddd 5EE0 8C00 Vd,Vn,Vm (scalar) // cmtst Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 100011nnnnnddddd 0E20 8C00 Vd,Vn,Vm (vector) INST2(sqadd, "sqadd", 0, IF_EN2O, 0x5E200C00, 0x0E200C00) // sqadd Vd,Vn,Vm DV_3E 01011110XX1mmmmm 000011nnnnnddddd 5E20 0C00 Vd,Vn,Vm (scalar) // sqadd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 000011nnnnnddddd 0E20 0C00 Vd,Vn,Vm (vector) INST2(sqrshl, "sqrshl", 0, IF_EN2O, 0x5E205C00, 0x0E205C00) // sqrshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010111nnnnnddddd 5E20 5C00 Vd,Vn,Vm (scalar) // sqrshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010111nnnnnddddd 0E20 5C00 Vd,Vn,Vm (vector) INST2(sqsub, "sqsub", 0, IF_EN2O, 0x5E202C00, 0x0E202C00) // sqsub Vd,Vn,Vm DV_3E 01011110XX1mmmmm 001011nnnnnddddd 5E20 2C00 Vd,Vn,Vm (scalar) // sqsub Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001011nnnnnddddd 0E20 2C00 Vd,Vn,Vm (vector) INST2(srshl, "srshl", 0, IF_EN2O, 0x5E205400, 0x0E205400) // srshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010101nnnnnddddd 5E20 5400 Vd,Vn,Vm (scalar) // srshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010101nnnnnddddd 0E20 5400 Vd,Vn,Vm (vector) INST2(sshl, "sshl", 0, IF_EN2O, 0x5E204400, 0x0E204400) // sshl Vd,Vn,Vm DV_3E 01011110XX1mmmmm 010001nnnnnddddd 5E20 4400 Vd,Vn,Vm (scalar) // sshl Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 010001nnnnnddddd 0E20 4400 Vd,Vn,Vm (vector) INST2(uqadd, "uqadd", 0, IF_EN2O, 0x7E200C00, 0x2E200C00) // uqadd Vd,Vn,Vm DV_3E 01111110XX1mmmmm 000011nnnnnddddd 7E20 0C00 Vd,Vn,Vm (scalar) // uqadd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 000011nnnnnddddd 2E20 0C00 Vd,Vn,Vm (vector) INST2(uqrshl, "uqrshl", 0, IF_EN2O, 0x7E205C00, 0x2E205C00) // uqrshl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010111nnnnnddddd 7E20 5C00 Vd,Vn,Vm (scalar) // uqrshl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010111nnnnnddddd 2E20 5C00 Vd,Vn,Vm (vector) INST2(uqsub, "uqsub", 0, IF_EN2O, 0x7E202C00, 0x2E202C00) // uqsub Vd,Vn,Vm DV_3E 01111110XX1mmmmm 001011nnnnnddddd 7E20 2C00 Vd,Vn,Vm (scalar) // uqsub Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001011nnnnnddddd 2E20 2C00 Vd,Vn,Vm (vector) INST2(urshl, "urshl", 0, IF_EN2O, 0x7E205400, 0x2E205400) // urshl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010101nnnnnddddd 7E20 5400 Vd,Vn,Vm (scalar) // urshl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010101nnnnnddddd 2E20 5400 Vd,Vn,Vm (vector) INST2(ushl, "ushl", 0, IF_EN2O, 0x7E204400, 0x2E204400) // ushl Vd,Vn,Vm DV_3E 01111110XX1mmmmm 010001nnnnnddddd 7E20 4400 Vd,Vn,Vm (scalar) // ushl Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 010001nnnnnddddd 2E20 4400 Vd,Vn,Vm (vector) // enum name info DV_2Q DV_3B INST2(faddp, "faddp", 0, IF_EN2P, 0x7E30D800, 0x2E20D400) // faddp Vd,Vn DV_2Q 011111100X110000 110110nnnnnddddd 7E30 D800 Vd,Vn (scalar) // faddp Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 110101nnnnnddddd 2E20 D400 Vd,Vn,Vm (vector) INST2(fmaxnmp, "fmaxnmp", 0, IF_EN2P, 0x7E30C800, 0x2E20C400) // fmaxnmp Vd,Vn DV_2Q 011111100X110000 110010nnnnnddddd 7E30 C800 Vd,Vn (scalar) // fmaxnmp Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 110001nnnnnddddd 2E20 C400 Vd,Vn,Vm (vector) INST2(fmaxp, "fmaxp", 0, IF_EN2P, 0x7E30F800, 0x2E20F400) // fmaxp Vd,Vn DV_2Q 011111100X110000 111110nnnnnddddd 7E30 F800 Vd,Vn (scalar) // fmaxp Vd,Vn,Vm DV_3B 0Q1011100X1mmmmm 111101nnnnnddddd 2E20 F400 Vd,Vn,Vm (vector) INST2(fminnmp, "fminnmp", 0, IF_EN2P, 0x7EB0C800, 0x2EA0C400) // fminnmp Vd,Vn DV_2Q 011111101X110000 110010nnnnnddddd 7EB0 C800 Vd,Vn (scalar) // fminnmp Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 110001nnnnnddddd 2EA0 C400 Vd,Vn,Vm (vector) INST2(fminp, "fminp", 0, IF_EN2P, 0x7EB0F800, 0x2EA0F400) // fminp Vd,Vn DV_2Q 011111101X110000 111110nnnnnddddd 7EB0 F800 Vd,Vn (scalar) // fminp Vd,Vn,Vm DV_3B 0Q1011101X1mmmmm 111101nnnnnddddd 2EA0 F400 Vd,Vn,Vm (vector) INST2(addp, "addp", 0, IF_EN2Q, 0x5E31B800, 0x0E20BC00) // addp Vd,Vn DV_2S 01011110XX110001 101110nnnnnddddd 5E31 B800 Vd,Vn (scalar) // addp Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101111nnnnnddddd 0E20 BC00 Vd,Vn,Vm (vector) INST1(ldar, "ldar", LD, IF_LS_2A, 0x88DFFC00) // ldar Rt,[Xn] LS_2A 1X00100011011111 111111nnnnnttttt 88DF FC00 INST1(ldarb, "ldarb", LD, IF_LS_2A, 0x08DFFC00) // ldarb Rt,[Xn] LS_2A 0000100011011111 111111nnnnnttttt 08DF FC00 INST1(ldarh, "ldarh", LD, IF_LS_2A, 0x48DFFC00) // ldarh Rt,[Xn] LS_2A 0100100011011111 111111nnnnnttttt 48DF FC00 INST1(ldxr, "ldxr", LD, IF_LS_2A, 0x885F7C00) // ldxr Rt,[Xn] LS_2A 1X00100001011111 011111nnnnnttttt 885F 7C00 INST1(ldxrb, "ldxrb", LD, IF_LS_2A, 0x085F7C00) // ldxrb Rt,[Xn] LS_2A 0000100001011111 011111nnnnnttttt 085F 7C00 INST1(ldxrh, "ldxrh", LD, IF_LS_2A, 0x485F7C00) // ldxrh Rt,[Xn] LS_2A 0100100001011111 011111nnnnnttttt 485F 7C00 INST1(ldaxr, "ldaxr", LD, IF_LS_2A, 0x885FFC00) // ldaxr Rt,[Xn] LS_2A 1X00100001011111 111111nnnnnttttt 885F FC00 INST1(ldaxrb, "ldaxrb", LD, IF_LS_2A, 0x085FFC00) // ldaxrb Rt,[Xn] LS_2A 0000100001011111 111111nnnnnttttt 085F FC00 INST1(ldaxrh, "ldaxrh", LD, IF_LS_2A, 0x485FFC00) // ldaxrh Rt,[Xn] LS_2A 0100100001011111 111111nnnnnttttt 485F FC00 INST1(ldur, "ldur", LD, IF_LS_2C, 0xB8400000) // ldur Rt,[Xn+simm9] LS_2C 1X111000010iiiii iiii00nnnnnttttt B840 0000 [Xn imm(-256..+255)] INST1(ldurb, "ldurb", LD, IF_LS_2C, 0x38400000) // ldurb Rt,[Xn+simm9] LS_2C 00111000010iiiii iiii00nnnnnttttt 3840 0000 [Xn imm(-256..+255)] INST1(ldurh, "ldurh", LD, IF_LS_2C, 0x78400000) // ldurh Rt,[Xn+simm9] LS_2C 01111000010iiiii iiii00nnnnnttttt 7840 0000 [Xn imm(-256..+255)] INST1(ldursb, "ldursb", LD, IF_LS_2C, 0x38800000) // ldursb Rt,[Xn+simm9] LS_2C 001110001X0iiiii iiii00nnnnnttttt 3880 0000 [Xn imm(-256..+255)] INST1(ldursh, "ldursh", LD, IF_LS_2C, 0x78800000) // ldursh Rt,[Xn+simm9] LS_2C 011110001X0iiiii iiii00nnnnnttttt 7880 0000 [Xn imm(-256..+255)] INST1(ldursw, "ldursw", LD, IF_LS_2C, 0xB8800000) // ldursw Rt,[Xn+simm9] LS_2C 10111000100iiiii iiii00nnnnnttttt B880 0000 [Xn imm(-256..+255)] INST1(stlr, "stlr", ST, IF_LS_2A, 0x889FFC00) // stlr Rt,[Xn] LS_2A 1X00100010011111 111111nnnnnttttt 889F FC00 INST1(stlrb, "stlrb", ST, IF_LS_2A, 0x089FFC00) // stlrb Rt,[Xn] LS_2A 0000100010011111 111111nnnnnttttt 089F FC00 INST1(stlrh, "stlrh", ST, IF_LS_2A, 0x489FFC00) // stlrh Rt,[Xn] LS_2A 0100100010011111 111111nnnnnttttt 489F FC00 INST1(stxr, "stxr", ST, IF_LS_3D, 0x88007C00) // stxr Ws, Rt,[Xn] LS_3D 1X001000000sssss 011111nnnnnttttt 8800 7C00 INST1(stxrb, "stxrb", ST, IF_LS_3D, 0x08007C00) // stxrb Ws, Rt,[Xn] LS_3D 00001000000sssss 011111nnnnnttttt 0800 7C00 INST1(stxrh, "stxrh", ST, IF_LS_3D, 0x48007C00) // stxrh Ws, Rt,[Xn] LS_3D 01001000000sssss 011111nnnnnttttt 4800 7C00 INST1(stlxr, "stlxr", ST, IF_LS_3D, 0x8800FC00) // stlxr Ws, Rt,[Xn] LS_3D 1X001000000sssss 111111nnnnnttttt 8800 FC00 INST1(stlxrb, "stlxrb", ST, IF_LS_3D, 0x0800FC00) // stlxrb Ws, Rt,[Xn] LS_3D 00001000000sssss 111111nnnnnttttt 0800 FC00 INST1(stlxrh, "stlxrh", ST, IF_LS_3D, 0x4800FC00) // stlxrh Ws, Rt,[Xn] LS_3D 01001000000sssss 111111nnnnnttttt 4800 FC00 INST1(stur, "stur", ST, IF_LS_2C, 0xB8000000) // stur Rt,[Xn+simm9] LS_2C 1X111000000iiiii iiii00nnnnnttttt B800 0000 [Xn imm(-256..+255)] INST1(sturb, "sturb", ST, IF_LS_2C, 0x38000000) // sturb Rt,[Xn+simm9] LS_2C 00111000000iiiii iiii00nnnnnttttt 3800 0000 [Xn imm(-256..+255)] INST1(sturh, "sturh", ST, IF_LS_2C, 0x78000000) // sturh Rt,[Xn+simm9] LS_2C 01111000000iiiii iiii00nnnnnttttt 7800 0000 [Xn imm(-256..+255)] INST1(casb, "casb", LD|ST, IF_LS_3E, 0x08A07C00) // casb Wm, Wt, [Xn] LS_3E 00001000101mmmmm 011111nnnnnttttt 08A0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casab, "casab", LD|ST, IF_LS_3E, 0x08E07C00) // casab Wm, Wt, [Xn] LS_3E 00001000111mmmmm 011111nnnnnttttt 08E0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casalb, "casalb", LD|ST, IF_LS_3E, 0x08E0FC00) // casalb Wm, Wt, [Xn] LS_3E 00001000111mmmmm 111111nnnnnttttt 08E0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(caslb, "caslb", LD|ST, IF_LS_3E, 0x08A0FC00) // caslb Wm, Wt, [Xn] LS_3E 00001000101mmmmm 111111nnnnnttttt 08A0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(cash, "cash", LD|ST, IF_LS_3E, 0x48A07C00) // cash Wm, Wt, [Xn] LS_3E 01001000101mmmmm 011111nnnnnttttt 48A0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casah, "casah", LD|ST, IF_LS_3E, 0x48E07C00) // casah Wm, Wt, [Xn] LS_3E 01001000111mmmmm 011111nnnnnttttt 48E0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casalh, "casalh", LD|ST, IF_LS_3E, 0x48E0FC00) // casalh Wm, Wt, [Xn] LS_3E 01001000111mmmmm 111111nnnnnttttt 48E0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(caslh, "caslh", LD|ST, IF_LS_3E, 0x48A0FC00) // caslh Wm, Wt, [Xn] LS_3E 01001000101mmmmm 111111nnnnnttttt 48A0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(cas, "cas", LD|ST, IF_LS_3E, 0x88A07C00) // cas Rm, Rt, [Xn] LS_3E 1X001000101mmmmm 011111nnnnnttttt 88A0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casa, "casa", LD|ST, IF_LS_3E, 0x88E07C00) // casa Rm, Rt, [Xn] LS_3E 1X001000111mmmmm 011111nnnnnttttt 88E0 7C00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casal, "casal", LD|ST, IF_LS_3E, 0x88E0FC00) // casal Rm, Rt, [Xn] LS_3E 1X001000111mmmmm 111111nnnnnttttt 88E0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(casl, "casl", LD|ST, IF_LS_3E, 0x88A0FC00) // casl Rm, Rt, [Xn] LS_3E 1X001000101mmmmm 111111nnnnnttttt 88A0 FC00 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddb, "ldaddb", LD|ST, IF_LS_3E, 0x38200000) // ldaddb Wm, Wt, [Xn] LS_3E 00111000001mmmmm 000000nnnnnttttt 3820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddab, "ldaddab", LD|ST, IF_LS_3E, 0x38A00000) // ldaddab Wm, Wt, [Xn] LS_3E 00111000101mmmmm 000000nnnnnttttt 38A0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddalb, "ldaddalb", LD|ST, IF_LS_3E, 0x38E00000) // ldaddalb Wm, Wt, [Xn] LS_3E 00111000111mmmmm 000000nnnnnttttt 38E0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddlb, "ldaddlb", LD|ST, IF_LS_3E, 0x38600000) // ldaddlb Wm, Wt, [Xn] LS_3E 00111000011mmmmm 000000nnnnnttttt 3860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddh, "ldaddh", LD|ST, IF_LS_3E, 0x78200000) // ldaddh Wm, Wt, [Xn] LS_3E 01111000001mmmmm 000000nnnnnttttt 7820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddah, "ldaddah", LD|ST, IF_LS_3E, 0x78A00000) // ldaddah Wm, Wt, [Xn] LS_3E 01111000101mmmmm 000000nnnnnttttt 78A0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddalh, "ldaddalh", LD|ST, IF_LS_3E, 0x78E00000) // ldaddalh Wm, Wt, [Xn] LS_3E 01111000111mmmmm 000000nnnnnttttt 78E0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddlh, "ldaddlh", LD|ST, IF_LS_3E, 0x78600000) // ldaddlh Wm, Wt, [Xn] LS_3E 01111000011mmmmm 000000nnnnnttttt 7860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldadd, "ldadd", LD|ST, IF_LS_3E, 0xB8200000) // ldadd Rm, Rt, [Xn] LS_3E 1X111000001mmmmm 000000nnnnnttttt B820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldadda, "ldadda", LD|ST, IF_LS_3E, 0xB8A00000) // ldadda Rm, Rt, [Xn] LS_3E 1X111000101mmmmm 000000nnnnnttttt B8A0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddal, "ldaddal", LD|ST, IF_LS_3E, 0xB8E00000) // ldaddal Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 000000nnnnnttttt B8E0 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldclral, "ldclral", LD|ST, IF_LS_3E, 0xB8E01000) // ldclral Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 000100nnnnnttttt B8E0 1000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldsetal, "ldsetal", LD|ST, IF_LS_3E, 0xB8E03000) // ldsetal Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 001100nnnnnttttt B8E0 3000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(ldaddl, "ldaddl", LD|ST, IF_LS_3E, 0xB8600000) // ldaddl Rm, Rt, [Xn] LS_3E 1X111000011mmmmm 000000nnnnnttttt B860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddb, "staddb", ST, IF_LS_3E, 0x38200000) // staddb Wm, [Xn] LS_3E 00111000001mmmmm 000000nnnnnttttt 3820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddlb, "staddlb", ST, IF_LS_3E, 0x38600000) // staddlb Wm, [Xn] LS_3E 00111000011mmmmm 000000nnnnnttttt 3860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddh, "staddh", ST, IF_LS_3E, 0x78200000) // staddh Wm, [Xn] LS_3E 01111000001mmmmm 000000nnnnnttttt 7820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddlh, "staddlh", ST, IF_LS_3E, 0x78600000) // staddlh Wm, [Xn] LS_3E 01111000011mmmmm 000000nnnnnttttt 7860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(stadd, "stadd", ST, IF_LS_3E, 0xB8200000) // stadd Rm, [Xn] LS_3E 1X111000001mmmmm 000000nnnnnttttt B820 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(staddl, "staddl", ST, IF_LS_3E, 0xB8600000) // staddl Rm, [Xn] LS_3E 1X111000011mmmmm 000000nnnnnttttt B860 0000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpb, "swpb", LD|ST, IF_LS_3E, 0x38208000) // swpb Wm, Wt, [Xn] LS_3E 00111000001mmmmm 100000nnnnnttttt 3820 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpab, "swpab", LD|ST, IF_LS_3E, 0x38A08000) // swpab Wm, Wt, [Xn] LS_3E 00111000101mmmmm 100000nnnnnttttt 38A0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpalb, "swpalb", LD|ST, IF_LS_3E, 0x38E08000) // swpalb Wm, Wt, [Xn] LS_3E 00111000111mmmmm 100000nnnnnttttt 38E0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swplb, "swplb", LD|ST, IF_LS_3E, 0x38608000) // swplb Wm, Wt, [Xn] LS_3E 00111000011mmmmm 100000nnnnnttttt 3860 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swph, "swph", LD|ST, IF_LS_3E, 0x78208000) // swph Wm, Wt, [Xn] LS_3E 01111000001mmmmm 100000nnnnnttttt 7820 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpah, "swpah", LD|ST, IF_LS_3E, 0x78A08000) // swpah Wm, Wt, [Xn] LS_3E 01111000101mmmmm 100000nnnnnttttt 78A0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpalh, "swpalh", LD|ST, IF_LS_3E, 0x78E08000) // swpalh Wm, Wt, [Xn] LS_3E 01111000111mmmmm 100000nnnnnttttt 78E0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swplh, "swplh", LD|ST, IF_LS_3E, 0x78608000) // swplh Wm, Wt, [Xn] LS_3E 01111000011mmmmm 100000nnnnnttttt 7860 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swp, "swp", LD|ST, IF_LS_3E, 0xB8208000) // swp Rm, Rt, [Xn] LS_3E 1X111000001mmmmm 100000nnnnnttttt B820 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpa, "swpa", LD|ST, IF_LS_3E, 0xB8A08000) // swpa Rm, Rt, [Xn] LS_3E 1X111000101mmmmm 100000nnnnnttttt B8A0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpal, "swpal", LD|ST, IF_LS_3E, 0xB8E08000) // swpal Rm, Rt, [Xn] LS_3E 1X111000111mmmmm 100000nnnnnttttt B8E0 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(swpl, "swpl", LD|ST, IF_LS_3E, 0xB8608000) // swpl Rm, Rt, [Xn] LS_3E 1X111000011mmmmm 100000nnnnnttttt B860 8000 Rm Rt Rn ARMv8.1 LSE Atomics INST1(adr, "adr", 0, IF_DI_1E, 0x10000000) // adr Rd, simm21 DI_1E 0ii10000iiiiiiii iiiiiiiiiiiddddd 1000 0000 Rd simm21 INST1(adrp, "adrp", 0, IF_DI_1E, 0x90000000) // adrp Rd, simm21 DI_1E 1ii10000iiiiiiii iiiiiiiiiiiddddd 9000 0000 Rd simm21 INST1(b, "b", 0, IF_BI_0A, 0x14000000) // b simm26 BI_0A 000101iiiiiiiiii iiiiiiiiiiiiiiii 1400 0000 simm26:00 INST1(b_tail, "b", 0, IF_BI_0C, 0x14000000) // b simm26 BI_0A 000101iiiiiiiiii iiiiiiiiiiiiiiii 1400 0000 simm26:00, same as b representing a tail call of bl. INST1(bl_local, "bl", 0, IF_BI_0A, 0x94000000) // bl simm26 BI_0A 100101iiiiiiiiii iiiiiiiiiiiiiiii 9400 0000 simm26:00, same as bl, but with a BasicBlock target. INST1(bl, "bl", 0, IF_BI_0C, 0x94000000) // bl simm26 BI_0C 100101iiiiiiiiii iiiiiiiiiiiiiiii 9400 0000 simm26:00 INST1(br, "br", 0, IF_BR_1A, 0xD61F0000) // br Rn BR_1A 1101011000011111 000000nnnnn00000 D61F 0000, an indirect branch like switch expansion INST1(br_tail, "br", 0, IF_BR_1B, 0xD61F0000) // br Rn BR_1B 1101011000011111 000000nnnnn00000 D61F 0000, same as br representing a tail call of blr. Encode target with Reg3. INST1(blr, "blr", 0, IF_BR_1B, 0xD63F0000) // blr Rn BR_1B 1101011000111111 000000nnnnn00000 D63F 0000, Encode target with Reg3. INST1(ret, "ret", 0, IF_BR_1A, 0xD65F0000) // ret Rn BR_1A 1101011001011111 000000nnnnn00000 D65F 0000 INST1(beq, "beq", 0, IF_BI_0B, 0x54000000) // beq simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00000 5400 0000 simm19:00 INST1(bne, "bne", 0, IF_BI_0B, 0x54000001) // bne simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00001 5400 0001 simm19:00 INST1(bhs, "bhs", 0, IF_BI_0B, 0x54000002) // bhs simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00010 5400 0002 simm19:00 INST1(blo, "blo", 0, IF_BI_0B, 0x54000003) // blo simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00011 5400 0003 simm19:00 INST1(bmi, "bmi", 0, IF_BI_0B, 0x54000004) // bmi simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00100 5400 0004 simm19:00 INST1(bpl, "bpl", 0, IF_BI_0B, 0x54000005) // bpl simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00101 5400 0005 simm19:00 INST1(bvs, "bvs", 0, IF_BI_0B, 0x54000006) // bvs simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00110 5400 0006 simm19:00 INST1(bvc, "bvc", 0, IF_BI_0B, 0x54000007) // bvc simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii00111 5400 0007 simm19:00 INST1(bhi, "bhi", 0, IF_BI_0B, 0x54000008) // bhi simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01000 5400 0008 simm19:00 INST1(bls, "bls", 0, IF_BI_0B, 0x54000009) // bls simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01001 5400 0009 simm19:00 INST1(bge, "bge", 0, IF_BI_0B, 0x5400000A) // bge simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01010 5400 000A simm19:00 INST1(blt, "blt", 0, IF_BI_0B, 0x5400000B) // blt simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01011 5400 000B simm19:00 INST1(bgt, "bgt", 0, IF_BI_0B, 0x5400000C) // bgt simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01100 5400 000C simm19:00 INST1(ble, "ble", 0, IF_BI_0B, 0x5400000D) // ble simm19 BI_0B 01010100iiiiiiii iiiiiiiiiii01101 5400 000D simm19:00 INST1(cbz, "cbz", 0, IF_BI_1A, 0x34000000) // cbz Rt, simm19 BI_1A X0110100iiiiiiii iiiiiiiiiiittttt 3400 0000 Rt simm19:00 INST1(cbnz, "cbnz", 0, IF_BI_1A, 0x35000000) // cbnz Rt, simm19 BI_1A X0110101iiiiiiii iiiiiiiiiiittttt 3500 0000 Rt simm19:00 INST1(tbz, "tbz", 0, IF_BI_1B, 0x36000000) // tbz Rt, imm6, simm14 BI_1B B0110110bbbbbiii iiiiiiiiiiittttt 3600 0000 Rt imm6, simm14:00 INST1(tbnz, "tbnz", 0, IF_BI_1B, 0x37000000) // tbnz Rt, imm6, simm14 BI_1B B0110111bbbbbiii iiiiiiiiiiittttt 3700 0000 Rt imm6, simm14:00 INST1(movk, "movk", 0, IF_DI_1B, 0x72800000) // movk Rd,imm(i16,hw) DI_1B X11100101hwiiiii iiiiiiiiiiiddddd 7280 0000 imm(i16,hw) INST1(movn, "movn", 0, IF_DI_1B, 0x12800000) // movn Rd,imm(i16,hw) DI_1B X00100101hwiiiii iiiiiiiiiiiddddd 1280 0000 imm(i16,hw) INST1(movz, "movz", 0, IF_DI_1B, 0x52800000) // movz Rd,imm(i16,hw) DI_1B X10100101hwiiiii iiiiiiiiiiiddddd 5280 0000 imm(i16,hw) INST1(csel, "csel", 0, IF_DR_3D, 0x1A800000) // csel Rd,Rn,Rm,cond DR_3D X0011010100mmmmm cccc00nnnnnddddd 1A80 0000 cond INST1(csinc, "csinc", 0, IF_DR_3D, 0x1A800400) // csinc Rd,Rn,Rm,cond DR_3D X0011010100mmmmm cccc01nnnnnddddd 1A80 0400 cond INST1(csinv, "csinv", 0, IF_DR_3D, 0x5A800000) // csinv Rd,Rn,Rm,cond DR_3D X1011010100mmmmm cccc00nnnnnddddd 5A80 0000 cond INST1(csneg, "csneg", 0, IF_DR_3D, 0x5A800400) // csneg Rd,Rn,Rm,cond DR_3D X1011010100mmmmm cccc01nnnnnddddd 5A80 0400 cond INST1(cinc, "cinc", 0, IF_DR_2D, 0x1A800400) // cinc Rd,Rn,cond DR_2D X0011010100nnnnn cccc01nnnnnddddd 1A80 0400 cond INST1(cinv, "cinv", 0, IF_DR_2D, 0x5A800000) // cinv Rd,Rn,cond DR_2D X1011010100nnnnn cccc00nnnnnddddd 5A80 0000 cond INST1(cneg, "cneg", 0, IF_DR_2D, 0x5A800400) // cneg Rd,Rn,cond DR_2D X1011010100nnnnn cccc01nnnnnddddd 5A80 0400 cond INST1(cset, "cset", 0, IF_DR_1D, 0x1A9F07E0) // cset Rd,cond DR_1D X001101010011111 cccc0111111ddddd 1A9F 07E0 Rd cond INST1(csetm, "csetm", 0, IF_DR_1D, 0x5A9F03E0) // csetm Rd,cond DR_1D X101101010011111 cccc0011111ddddd 5A9F 03E0 Rd cond INST1(aese, "aese", 0, IF_DV_2P, 0x4E284800) // aese Vd.16B,Vn.16B DV_2P 0100111000101000 010010nnnnnddddd 4E28 4800 Vd.16B Vn.16B (vector) INST1(aesd, "aesd", 0, IF_DV_2P, 0x4E285800) // aesd Vd.16B,Vn.16B DV_2P 0100111000101000 010110nnnnnddddd 4E28 5800 Vd.16B Vn.16B (vector) INST1(aesmc, "aesmc", 0, IF_DV_2P, 0x4E286800) // aesmc Vd.16B,Vn.16B DV_2P 0100111000101000 011010nnnnnddddd 4E28 6800 Vd.16B Vn.16B (vector) INST1(aesimc, "aesimc", 0, IF_DV_2P, 0x4E287800) // aesimc Vd.16B,Vn.16B DV_2P 0100111000101000 011110nnnnnddddd 4E28 7800 Vd.16B Vn.16B (vector) INST1(rev, "rev", 0, IF_DR_2G, 0x5AC00800) // rev Rd,Rm DR_2G X101101011000000 00001Xnnnnnddddd 5AC0 0800 Rd Rn INST1(rev64, "rev64", 0, IF_DV_2M, 0x0E200800) // rev64 Vd,Vn DV_2M 0Q001110XX100000 000010nnnnnddddd 0E20 0800 Vd,Vn (vector) INST1(adc, "adc", 0, IF_DR_3A, 0x1A000000) // adc Rd,Rn,Rm DR_3A X0011010000mmmmm 000000nnnnnddddd 1A00 0000 INST1(adcs, "adcs", 0, IF_DR_3A, 0x3A000000) // adcs Rd,Rn,Rm DR_3A X0111010000mmmmm 000000nnnnnddddd 3A00 0000 INST1(sbc, "sbc", 0, IF_DR_3A, 0x5A000000) // sdc Rd,Rn,Rm DR_3A X1011010000mmmmm 000000nnnnnddddd 5A00 0000 INST1(sbcs, "sbcs", 0, IF_DR_3A, 0x7A000000) // sdcs Rd,Rn,Rm DR_3A X1111010000mmmmm 000000nnnnnddddd 7A00 0000 INST1(udiv, "udiv", 0, IF_DR_3A, 0x1AC00800) // udiv Rd,Rn,Rm DR_3A X0011010110mmmmm 000010nnnnnddddd 1AC0 0800 INST1(sdiv, "sdiv", 0, IF_DR_3A, 0x1AC00C00) // sdiv Rd,Rn,Rm DR_3A X0011010110mmmmm 000011nnnnnddddd 1AC0 0C00 INST1(mneg, "mneg", 0, IF_DR_3A, 0x1B00FC00) // mneg Rd,Rn,Rm DR_3A X0011011000mmmmm 111111nnnnnddddd 1B00 FC00 INST1(madd, "madd", 0, IF_DR_4A, 0x1B000000) // madd Rd,Rn,Rm,Ra DR_4A X0011011000mmmmm 0aaaaannnnnddddd 1B00 0000 INST1(msub, "msub", 0, IF_DR_4A, 0x1B008000) // msub Rd,Rn,Rm,Ra DR_4A X0011011000mmmmm 1aaaaannnnnddddd 1B00 8000 INST1(smaddl, "smaddl", 0, IF_DR_4A, 0x9B200000) // smaddl Rd,Rn,Rm,Ra DR_4A 10011011001mmmmm 0aaaaannnnnddddd 9B20 0000 INST1(smnegl, "smnegl", 0, IF_DR_3A, 0x9B20FC00) // smnegl Rd,Rn,Rm DR_3A 10011011001mmmmm 111111nnnnnddddd 9B20 FC00 INST1(smsubl, "smsubl", 0, IF_DR_4A, 0x9B208000) // smsubl Rd,Rn,Rm,Ra DR_4A 10011011001mmmmm 1aaaaannnnnddddd 9B20 8000 INST1(smulh, "smulh", 0, IF_DR_3A, 0x9B407C00) // smulh Rd,Rn,Rm DR_3A 10011011010mmmmm 011111nnnnnddddd 9B40 7C00 INST1(umaddl, "umaddl", 0, IF_DR_4A, 0x9BA00000) // umaddl Rd,Rn,Rm,Ra DR_4A 10011011101mmmmm 0aaaaannnnnddddd 9BA0 0000 INST1(umnegl, "umnegl", 0, IF_DR_3A, 0x9BA0FC00) // umnegl Rd,Rn,Rm DR_3A 10011011101mmmmm 111111nnnnnddddd 9BA0 FC00 INST1(umsubl, "umsubl", 0, IF_DR_4A, 0x9BA08000) // umsubl Rd,Rn,Rm,Ra DR_4A 10011011101mmmmm 1aaaaannnnnddddd 9BA0 8000 INST1(umulh, "umulh", 0, IF_DR_3A, 0x9BC07C00) // umulh Rd,Rn,Rm DR_3A 10011011110mmmmm 011111nnnnnddddd 9BC0 7C00 INST1(extr, "extr", 0, IF_DR_3E, 0x13800000) // extr Rd,Rn,Rm,imm6 DR_3E X00100111X0mmmmm ssssssnnnnnddddd 1380 0000 imm(0-63) INST1(lslv, "lslv", 0, IF_DR_3A, 0x1AC02000) // lslv Rd,Rn,Rm DR_3A X0011010110mmmmm 001000nnnnnddddd 1AC0 2000 INST1(lsrv, "lsrv", 0, IF_DR_3A, 0x1AC02400) // lsrv Rd,Rn,Rm DR_3A X0011010110mmmmm 001001nnnnnddddd 1AC0 2400 INST1(asrv, "asrv", 0, IF_DR_3A, 0x1AC02800) // asrv Rd,Rn,Rm DR_3A X0011010110mmmmm 001010nnnnnddddd 1AC0 2800 INST1(rorv, "rorv", 0, IF_DR_3A, 0x1AC02C00) // rorv Rd,Rn,Rm DR_3A X0011010110mmmmm 001011nnnnnddddd 1AC0 2C00 INST1(crc32b, "crc32b", 0, IF_DR_3A, 0x1AC04000) // crc32b Rd,Rn,Rm DR_3A 00011010110mmmmm 010000nnnnnddddd 1AC0 4000 INST1(crc32h, "crc32h", 0, IF_DR_3A, 0x1AC04400) // crc32h Rd,Rn,Rm DR_3A 00011010110mmmmm 010001nnnnnddddd 1AC0 4400 INST1(crc32w, "crc32w", 0, IF_DR_3A, 0x1AC04800) // crc32w Rd,Rn,Rm DR_3A 00011010110mmmmm 010010nnnnnddddd 1AC0 4800 INST1(crc32x, "crc32x", 0, IF_DR_3A, 0x9AC04C00) // crc32x Rd,Rn,Xm DR_3A 10011010110mmmmm 010011nnnnnddddd 9AC0 4C00 INST1(crc32cb, "crc32cb", 0, IF_DR_3A, 0x1AC05000) // crc32cb Rd,Rn,Rm DR_3A 00011010110mmmmm 010100nnnnnddddd 1AC0 5000 INST1(crc32ch, "crc32ch", 0, IF_DR_3A, 0x1AC05400) // crc32ch Rd,Rn,Rm DR_3A 00011010110mmmmm 010101nnnnnddddd 1AC0 5400 INST1(crc32cw, "crc32cw", 0, IF_DR_3A, 0x1AC05800) // crc32cw Rd,Rn,Rm DR_3A 00011010110mmmmm 010110nnnnnddddd 1AC0 5800 INST1(crc32cx, "crc32cx", 0, IF_DR_3A, 0x9AC05C00) // crc32cx Rd,Rn,Xm DR_3A 10011010110mmmmm 010111nnnnnddddd 9AC0 5C00 INST1(sha1c, "sha1c", 0, IF_DV_3F, 0x5E000000) // sha1c Qd, Sn Vm.4S DV_3F 01011110000mmmmm 000000nnnnnddddd 5E00 0000 Qd Sn Vm.4S (vector) INST1(sha1m, "sha1m", 0, IF_DV_3F, 0x5E002000) // sha1m Qd, Sn Vm.4S DV_3F 01011110000mmmmm 001000nnnnnddddd 5E00 0000 Qd Sn Vm.4S (vector) INST1(sha1p, "sha1p", 0, IF_DV_3F, 0x5E001000) // sha1m Qd, Sn Vm.4S DV_3F 01011110000mmmmm 000100nnnnnddddd 5E00 0000 Qd Sn Vm.4S (vector) INST1(sha1h, "sha1h", 0, IF_DV_2U, 0x5E280800) // sha1h Sd, Sn DV_2U 0101111000101000 000010nnnnnddddd 5E28 0800 Sn Sn INST1(sha1su0, "sha1su0", 0, IF_DV_3F, 0x5E003000) // sha1su0 Vd.4S,Vn.4S,Vm.4S DV_3F 01011110000mmmmm 001100nnnnnddddd 5E00 3000 Vd.4S Vn.4S Vm.4S (vector) INST1(sha1su1, "sha1su1", 0, IF_DV_2P, 0x5E281800) // sha1su1 Vd.4S, Vn.4S DV_2P 0101111000101000 000110nnnnnddddd 5E28 1800 Vd.4S Vn.4S (vector) INST1(sha256h, "sha256h", 0, IF_DV_3F, 0x5E004000) // sha256h Qd,Qn,Vm.4S DV_3F 01011110000mmmmm 010000nnnnnddddd 5E00 4000 Qd Qn Vm.4S (vector) INST1(sha256h2, "sha256h2", 0, IF_DV_3F, 0x5E005000) // sha256h Qd,Qn,Vm.4S DV_3F 01011110000mmmmm 010100nnnnnddddd 5E00 5000 Qd Qn Vm.4S (vector) INST1(sha256su0, "sha256su0", 0, IF_DV_2P, 0x5E282800) // sha256su0 Vd.4S,Vn.4S DV_2P 0101111000101000 001010nnnnnddddd 5E28 2800 Vd.4S Vn.4S (vector) INST1(sha256su1, "sha256su1", 0, IF_DV_3F, 0x5E006000) // sha256su1 Vd.4S,Vn.4S,Vm.4S DV_3F 01011110000mmmmm 011000nnnnnddddd 5E00 6000 Vd.4S Vn.4S Vm.4S (vector) INST1(ext, "ext", 0, IF_DV_3G, 0x2E000000) // ext Vd,Vn,Vm,index DV_3G 0Q101110000mmmmm 0iiii0nnnnnddddd 2E00 0000 Vd Vn Vm index (vector) INST1(sbfm, "sbfm", 0, IF_DI_2D, 0x13000000) // sbfm Rd,Rn,imr,ims DI_2D X00100110Nrrrrrr ssssssnnnnnddddd 1300 0000 imr, ims INST1(bfm, "bfm", 0, IF_DI_2D, 0x33000000) // bfm Rd,Rn,imr,ims DI_2D X01100110Nrrrrrr ssssssnnnnnddddd 3300 0000 imr, ims INST1(ubfm, "ubfm", 0, IF_DI_2D, 0x53000000) // ubfm Rd,Rn,imr,ims DI_2D X10100110Nrrrrrr ssssssnnnnnddddd 5300 0000 imr, ims INST1(sbfiz, "sbfiz", 0, IF_DI_2D, 0x13000000) // sbfiz Rd,Rn,lsb,width DI_2D X00100110Nrrrrrr ssssssnnnnnddddd 1300 0000 imr, ims INST1(bfi, "bfi", 0, IF_DI_2D, 0x33000000) // bfi Rd,Rn,lsb,width DI_2D X01100110Nrrrrrr ssssssnnnnnddddd 3300 0000 imr, ims INST1(ubfiz, "ubfiz", 0, IF_DI_2D, 0x53000000) // ubfiz Rd,Rn,lsb,width DI_2D X10100110Nrrrrrr ssssssnnnnnddddd 5300 0000 imr, ims INST1(sbfx, "sbfx", 0, IF_DI_2D, 0x13000000) // sbfx Rd,Rn,lsb,width DI_2D X00100110Nrrrrrr ssssssnnnnnddddd 1300 0000 imr, ims INST1(bfxil, "bfxil", 0, IF_DI_2D, 0x33000000) // bfxil Rd,Rn,lsb,width DI_2D X01100110Nrrrrrr ssssssnnnnnddddd 3300 0000 imr, ims INST1(ubfx, "ubfx", 0, IF_DI_2D, 0x53000000) // ubfx Rd,Rn,lsb,width DI_2D X10100110Nrrrrrr ssssssnnnnnddddd 5300 0000 imr, ims INST1(sxtb, "sxtb", 0, IF_DR_2H, 0x13001C00) // sxtb Rd,Rn DR_2H X00100110X000000 000111nnnnnddddd 1300 1C00 INST1(sxth, "sxth", 0, IF_DR_2H, 0x13003C00) // sxth Rd,Rn DR_2H X00100110X000000 001111nnnnnddddd 1300 3C00 INST1(sxtw, "sxtw", 0, IF_DR_2H, 0x13007C00) // sxtw Rd,Rn DR_2H X00100110X000000 011111nnnnnddddd 1300 7C00 INST1(uxtb, "uxtb", 0, IF_DR_2H, 0x53001C00) // uxtb Rd,Rn DR_2H 0101001100000000 000111nnnnnddddd 5300 1C00 INST1(uxth, "uxth", 0, IF_DR_2H, 0x53003C00) // uxth Rd,Rn DR_2H 0101001100000000 001111nnnnnddddd 5300 3C00 INST1(nop, "nop", 0, IF_SN_0A, 0xD503201F) // nop SN_0A 1101010100000011 0010000000011111 D503 201F INST1(yield, "yield", 0, IF_SN_0A, 0xD503203F) // yield SN_0A 1101010100000011 0010000000111111 D503 203F INST1(brk_windows, "brk_windows", 0, IF_SI_0A, 0xD43E0000) // brk (windows) SI_0A 1101010000111110 0000000000000000 D43E 0000 0xF000 INST1(brk_unix, "brk_unix", 0, IF_SI_0A, 0xD4200000) // brk imm16 SI_0A 11010100001iiiii iiiiiiiiiii00000 D420 0000 imm16 INST1(dsb, "dsb", 0, IF_SI_0B, 0xD503309F) // dsb barrierKind SI_0B 1101010100000011 0011bbbb10011111 D503 309F imm4 - barrier kind INST1(dmb, "dmb", 0, IF_SI_0B, 0xD50330BF) // dmb barrierKind SI_0B 1101010100000011 0011bbbb10111111 D503 30BF imm4 - barrier kind INST1(isb, "isb", 0, IF_SI_0B, 0xD50330DF) // isb barrierKind SI_0B 1101010100000011 0011bbbb11011111 D503 30DF imm4 - barrier kind INST1(dczva, "dczva", 0, IF_SR_1A, 0xD50B7420) // dc zva,Rt SR_1A 1101010100001011 01110100001ttttt D50B 7420 Rt INST1(umov, "umov", 0, IF_DV_2B, 0x0E003C00) // umov Rd,Vn[] DV_2B 0Q001110000iiiii 001111nnnnnddddd 0E00 3C00 Rd,Vn[] INST1(smov, "smov", 0, IF_DV_2B, 0x0E002C00) // smov Rd,Vn[] DV_2B 0Q001110000iiiii 001011nnnnnddddd 0E00 3C00 Rd,Vn[] INST1(movi, "movi", 0, IF_DV_1B, 0x0F000400) // movi Vd,imm8 DV_1B 0QX0111100000iii cmod01iiiiiddddd 0F00 0400 Vd imm8 (immediate vector) INST1(mvni, "mvni", 0, IF_DV_1B, 0x2F000400) // mvni Vd,imm8 DV_1B 0Q10111100000iii cmod01iiiiiddddd 2F00 0400 Vd imm8 (immediate vector) INST1(urecpe, "urecpe", 0, IF_DV_2A, 0x0EA1C800) // urecpe Vd,Vn DV_2A 0Q0011101X100001 110010nnnnnddddd 0EA1 C800 Vd,Vn (vector) INST1(ursqrte, "ursqrte", 0, IF_DV_2A, 0x2EA1C800) // ursqrte Vd,Vn DV_2A 0Q1011101X100001 110010nnnnnddddd 2EA1 C800 Vd,Vn (vector) INST1(bsl, "bsl", 0, IF_DV_3C, 0x2E601C00) // bsl Vd,Vn,Vm DV_3C 0Q101110011mmmmm 000111nnnnnddddd 2E60 1C00 Vd,Vn,Vm INST1(bit, "bit", 0, IF_DV_3C, 0x2EA01C00) // bit Vd,Vn,Vm DV_3C 0Q101110101mmmmm 000111nnnnnddddd 2EA0 1C00 Vd,Vn,Vm INST1(bif, "bif", 0, IF_DV_3C, 0x2EE01C00) // bif Vd,Vn,Vm DV_3C 0Q101110111mmmmm 000111nnnnnddddd 2EE0 1C00 Vd,Vn,Vm INST1(addv, "addv", 0, IF_DV_2T, 0x0E31B800) // addv Vd,Vn DV_2T 0Q001110XX110001 101110nnnnnddddd 0E31 B800 Vd,Vn (vector) INST1(cnt, "cnt", 0, IF_DV_2M, 0x0E205800) // cnt Vd,Vn DV_2M 0Q00111000100000 010110nnnnnddddd 0E20 5800 Vd,Vn (vector) INST1(not, "not", 0, IF_DV_2M, 0x2E205800) // not Vd,Vn DV_2M 0Q10111000100000 010110nnnnnddddd 2E20 5800 Vd,Vn (vector) INST1(saddlv, "saddlv", LNG, IF_DV_2T, 0x0E303800) // saddlv Vd,Vn DV_2T 0Q001110XX110000 001110nnnnnddddd 0E30 3800 Vd,Vn (vector) INST1(smaxv, "smaxv", 0, IF_DV_2T, 0x0E30A800) // smaxv Vd,Vn DV_2T 0Q001110XX110000 101010nnnnnddddd 0E30 A800 Vd,Vn (vector) INST1(sminv, "sminv", 0, IF_DV_2T, 0x0E31A800) // sminv Vd,Vn DV_2T 0Q001110XX110001 101010nnnnnddddd 0E31 A800 Vd,Vn (vector) INST1(uaddlv, "uaddlv", 0, IF_DV_2T, 0x2E303800) // uaddlv Vd,Vn DV_2T 0Q101110XX110000 001110nnnnnddddd 2E30 3800 Vd,Vn (vector) INST1(umaxv, "umaxv", 0, IF_DV_2T, 0x2E30A800) // umaxv Vd,Vn DV_2T 0Q101110XX110000 101010nnnnnddddd 2E30 A800 Vd,Vn (vector) INST1(uminv, "uminv", 0, IF_DV_2T, 0x2E31A800) // uminv Vd,Vn DV_2T 0Q101110XX110001 101010nnnnnddddd 2E31 A800 Vd,Vn (vector) INST1(fmaxnmv, "fmaxnmv", 0, IF_DV_2R, 0x2E30C800) // fmaxnmv Vd,Vn DV_2R 0Q1011100X110000 110010nnnnnddddd 2E30 C800 Vd,Vn (vector) INST1(fmaxv, "fmaxv", 0, IF_DV_2R, 0x2E30F800) // fmaxv Vd,Vn DV_2R 0Q1011100X110000 111110nnnnnddddd 2E30 F800 Vd,Vn (vector) INST1(fminnmv, "fminnmv", 0, IF_DV_2R, 0x2EB0C800) // fminnmv Vd,Vn DV_2R 0Q1011101X110000 110010nnnnnddddd 2EB0 C800 Vd,Vn (vector) INST1(fminv, "fminv", 0, IF_DV_2R, 0x2EB0F800) // fminv Vd,Vn DV_2R 0Q1011101X110000 111110nnnnnddddd 2EB0 F800 Vd,Vn (vector) INST1(uzp1, "uzp1", 0, IF_DV_3A, 0x0E001800) // uzp1 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 000110nnnnnddddd 0E00 1800 Vd,Vn,Vm (vector) INST1(uzp2, "uzp2", 0, IF_DV_3A, 0x0E005800) // upz2 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 010110nnnnnddddd 0E00 5800 Vd,Vn,Vm (vector) INST1(zip1, "zip1", 0, IF_DV_3A, 0x0E003800) // zip1 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 011110nnnnnddddd 0E00 3800 Vd,Vn,Vm (vector) INST1(zip2, "zip2", 0, IF_DV_3A, 0x0E007800) // zip2 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 001110nnnnnddddd 0E00 7800 Vd,Vn,Vm (vector) INST1(trn1, "trn1", 0, IF_DV_3A, 0x0E002800) // trn1 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 001010nnnnnddddd 0E00 2800 Vd,Vn,Vm (vector) INST1(trn2, "trn2", 0, IF_DV_3A, 0x0E006800) // trn2 Vd,Vn,Vm DV_3A 0Q001110XX0mmmmm 011010nnnnnddddd 0E00 6800 Vd,Vn,Vm (vector) INST1(sqxtn2, "sqxtn2", NRW, IF_DV_2M, 0x0E214800) // sqxtn2 Vd,Vn DV_2M 0Q001110XX100001 010010nnnnnddddd 0E21 4800 Vd,Vn (vector) INST1(sqxtun2, "sqxtun2", NRW, IF_DV_2M, 0x2E212800) // sqxtnu2 Vd,Vn DV_2M 0Q101110XX100001 001010nnnnnddddd 2E21 2800 Vd,Vn (vector) INST1(uqxtn2, "uqxtn2", NRW, IF_DV_2M, 0x2E214800) // uqxtn2 Vd,Vn DV_2M 0Q101110XX100001 010010nnnnnddddd 2E21 4800 Vd,Vn (vector) INST1(xtn, "xtn", NRW, IF_DV_2M, 0x0E212800) // xtn Vd,Vn DV_2M 00101110XX110000 001110nnnnnddddd 0E21 2800 Vd,Vn (vector) INST1(xtn2, "xtn2", NRW, IF_DV_2M, 0x4E212800) // xtn2 Vd,Vn DV_2M 01101110XX110000 001110nnnnnddddd 4E21 2800 Vd,Vn (vector) INST1(fnmul, "fnmul", 0, IF_DV_3D, 0x1E208800) // fnmul Vd,Vn,Vm DV_3D 000111100X1mmmmm 100010nnnnnddddd 1E20 8800 Vd,Vn,Vm (scalar) INST1(fmadd, "fmadd", 0, IF_DV_4A, 0x1F000000) // fmadd Vd,Va,Vn,Vm DV_4A 000111110X0mmmmm 0aaaaannnnnddddd 1F00 0000 Vd Vn Vm Va (scalar) INST1(fmsub, "fmsub", 0, IF_DV_4A, 0x1F008000) // fmsub Vd,Va,Vn,Vm DV_4A 000111110X0mmmmm 1aaaaannnnnddddd 1F00 8000 Vd Vn Vm Va (scalar) INST1(fnmadd, "fnmadd", 0, IF_DV_4A, 0x1F200000) // fnmadd Vd,Va,Vn,Vm DV_4A 000111110X1mmmmm 0aaaaannnnnddddd 1F20 0000 Vd Vn Vm Va (scalar) INST1(fnmsub, "fnmsub", 0, IF_DV_4A, 0x1F208000) // fnmsub Vd,Va,Vn,Vm DV_4A 000111110X1mmmmm 1aaaaannnnnddddd 1F20 8000 Vd Vn Vm Va (scalar) INST1(fcvt, "fcvt", 0, IF_DV_2J, 0x1E224000) // fcvt Vd,Vn DV_2J 00011110SS10001D D10000nnnnnddddd 1E22 4000 Vd,Vn INST1(pmul, "pmul", 0, IF_DV_3A, 0x2E209C00) // pmul Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 100111nnnnnddddd 2E20 9C00 Vd,Vn,Vm (vector) INST1(saba, "saba", 0, IF_DV_3A, 0x0E207C00) // saba Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011111nnnnnddddd 0E20 7C00 Vd,Vn,Vm (vector) INST1(sabd, "sabd", 0, IF_DV_3A, 0x0E207400) // sabd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011101nnnnnddddd 0E20 7400 Vd,Vn,Vm (vector) INST1(smax, "smax", 0, IF_DV_3A, 0x0E206400) // smax Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011001nnnnnddddd 0E20 6400 Vd,Vn,Vm (vector) INST1(smaxp, "smaxp", 0, IF_DV_3A, 0x0E20A400) // smaxp Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101001nnnnnddddd 0E20 A400 Vd,Vn,Vm (vector) INST1(smin, "smin", 0, IF_DV_3A, 0x0E206C00) // smax Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 011011nnnnnddddd 0E20 6C00 Vd,Vn,Vm (vector) INST1(sminp, "sminp", 0, IF_DV_3A, 0x0E20AC00) // smax Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 101011nnnnnddddd 0E20 AC00 Vd,Vn,Vm (vector) INST1(uaba, "uaba", 0, IF_DV_3A, 0x2E207C00) // uaba Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011111nnnnnddddd 2E20 7C00 Vd,Vn,Vm (vector) INST1(uabd, "uabd", 0, IF_DV_3A, 0x2E207400) // uabd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011101nnnnnddddd 2E20 7400 Vd,Vn,Vm (vector) INST1(umax, "umax", 0, IF_DV_3A, 0x2E206400) // umax Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011001nnnnnddddd 2E20 6400 Vd,Vn,Vm (vector) INST1(umaxp, "umaxp", 0, IF_DV_3A, 0x2E20A400) // umaxp Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 101001nnnnnddddd 2E20 A400 Vd,Vn,Vm (vector) INST1(umin, "umin", 0, IF_DV_3A, 0x2E206C00) // umin Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 011011nnnnnddddd 2E20 6C00 Vd,Vn,Vm (vector) INST1(uminp, "uminp", 0, IF_DV_3A, 0x2E20AC00) // umin Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 101011nnnnnddddd 2E20 AC00 Vd,Vn,Vm (vector) INST1(fcvtl, "fcvtl", LNG, IF_DV_2A, 0x0E217800) // fcvtl Vd,Vn DV_2A 000011100X100001 011110nnnnnddddd 0E21 7800 Vd,Vn (vector) INST1(fcvtl2, "fcvtl2", LNG, IF_DV_2A, 0x4E217800) // fcvtl2 Vd,Vn DV_2A 040011100X100001 011110nnnnnddddd 4E21 7800 Vd,Vn (vector) INST1(fcvtn, "fcvtn", NRW, IF_DV_2A, 0x0E216800) // fcvtn Vd,Vn DV_2A 000011100X100001 011010nnnnnddddd 0E21 6800 Vd,Vn (vector) INST1(fcvtn2, "fcvtn2", NRW, IF_DV_2A, 0x4E216800) // fcvtn2 Vd,Vn DV_2A 040011100X100001 011010nnnnnddddd 4E21 6800 Vd,Vn (vector) INST1(fcvtxn2, "fcvtxn2", NRW, IF_DV_2A, 0x6E616800) // fcvtxn2 Vd,Vn DV_2A 0110111001100001 011010nnnnnddddd 6E61 6800 Vd,Vn (vector) INST1(frecpx, "frecpx", 0, IF_DV_2G, 0x5EA1F800) // frecpx Vd,Vn DV_2G 010111101X100001 111110nnnnnddddd 5EA1 F800 Vd,Vn (scalar) INST1(addhn, "addhn", NRW, IF_DV_3A, 0x0E204000) // addhn Vd,Vn,Vm DV_3A 00001110XX1mmmmm 010000nnnnnddddd 0E20 4000 Vd,Vn,Vm (vector) INST1(addhn2, "addhn2", NRW, IF_DV_3A, 0x4E204000) // addhn2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 010000nnnnnddddd 4E20 4000 Vd,Vn,Vm (vector) INST1(pmull, "pmull", LNG, IF_DV_3A, 0x0E20E000) // pmull Vd,Vn,Vm DV_3A 00001110XX1mmmmm 111000nnnnnddddd 0E20 E000 Vd,Vn,Vm (vector) INST1(pmull2, "pmull2", LNG, IF_DV_3A, 0x4E20E000) // pmull2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 111000nnnnnddddd 4E20 E000 Vd,Vn,Vm (vector) INST1(raddhn, "raddhn", NRW, IF_DV_3A, 0x2E204000) // raddhn Vd,Vn,Vm DV_3A 00101110XX1mmmmm 010000nnnnnddddd 2E20 4000 Vd,Vn,Vm (vector) INST1(raddhn2, "raddhn2", NRW, IF_DV_3A, 0x6E204000) // raddhn2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 010000nnnnnddddd 6E20 4000 Vd,Vn,Vm (vector) INST1(rsubhn, "rsubhn", NRW, IF_DV_3A, 0x2E206000) // rsubhn Vd,Vn,Vm DV_3A 00101110XX1mmmmm 011000nnnnnddddd 2E20 6000 Vd,Vn,Vm (vector) INST1(rsubhn2, "rsubhn2", NRW, IF_DV_3A, 0x6E206000) // rsubhn2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 011000nnnnnddddd 6E20 6000 Vd,Vn,Vm (vector) INST1(sabal, "sabal", LNG, IF_DV_3A, 0x0E205000) // sabal Vd,Vn,Vm DV_3A 00001110XX1mmmmm 010100nnnnnddddd 0E20 5000 Vd,Vn,Vm (vector) INST1(sabal2, "sabal2", LNG, IF_DV_3A, 0x4E205000) // sabal2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 010100nnnnnddddd 4E20 5000 Vd,Vn,Vm (vector) INST1(sabdl, "sabdl", LNG, IF_DV_3A, 0x0E207000) // sabdl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 011100nnnnnddddd 0E20 7000 Vd,Vn,Vm (vector) INST1(sabdl2, "sabdl2", LNG, IF_DV_3A, 0x4E207000) // sabdl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 011100nnnnnddddd 4E20 7000 Vd,Vn,Vm (vector) INST1(sadalp, "sadalp", LNG, IF_DV_2T, 0x0E206800) // sadalp Vd,Vn DV_2T 0Q001110XX100000 011010nnnnnddddd 0E20 6800 Vd,Vn (vector) INST1(saddl, "saddl", LNG, IF_DV_3A, 0x0E200000) // saddl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 000000nnnnnddddd 0E20 0000 Vd,Vn,Vm (vector) INST1(saddl2, "saddl2", LNG, IF_DV_3A, 0x4E200000) // saddl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 000000nnnnnddddd 4E20 0000 Vd,Vn,Vm (vector) INST1(saddlp, "saddlp", LNG, IF_DV_2T, 0x0E202800) // saddlp Vd,Vn DV_2T 0Q001110XX100000 001010nnnnnddddd 0E20 2800 Vd,Vn (vector) INST1(saddw, "saddw", WID, IF_DV_3A, 0x0E201000) // saddw Vd,Vn,Vm DV_3A 00001110XX1mmmmm 000100nnnnnddddd 0E20 1000 Vd,Vn,Vm (vector) INST1(saddw2, "saddw2", WID, IF_DV_3A, 0x4E201000) // saddw2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 000100nnnnnddddd 4E20 1000 Vd,Vn,Vm (vector) INST1(shadd, "shadd", 0, IF_DV_3A, 0x0E200400) // shadd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 000001nnnnnddddd 0E20 0400 Vd,Vn,Vm (vector) INST1(shsub, "shsub", 0, IF_DV_3A, 0x0E202400) // shsub Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 001001nnnnnddddd 0E20 2400 Vd,Vn,Vm (vector) INST1(srhadd, "srhadd", 0, IF_DV_3A, 0x0E201400) // srhadd Vd,Vn,Vm DV_3A 0Q001110XX1mmmmm 000101nnnnnddddd 0E20 1400 Vd,Vn,Vm (vector) INST1(ssubl, "ssubl", LNG, IF_DV_3A, 0x0E202000) // ssubl Vd,Vn,Vm DV_3A 00001110XX1mmmmm 001000nnnnnddddd 0E20 2000 Vd,Vn,Vm (vector) INST1(ssubl2, "ssubl2", LNG, IF_DV_3A, 0x4E202000) // ssubl2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 001000nnnnnddddd 4E20 2000 Vd,Vn,Vm (vector) INST1(ssubw, "ssubw", WID, IF_DV_3A, 0x0E203000) // ssubw Vd,Vn,Vm DV_3A 00001110XX1mmmmm 001100nnnnnddddd 0E20 3000 Vd,Vn,Vm (vector) INST1(ssubw2, "ssubw2", WID, IF_DV_3A, 0x4E203000) // ssubw2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 001100nnnnnddddd 4E20 3000 Vd,Vn,Vm (vector) INST1(subhn, "subhn", NRW, IF_DV_3A, 0x0E206000) // subhn Vd,Vn,Vm DV_3A 00001110XX1mmmmm 011000nnnnnddddd 0E20 6000 Vd,Vn,Vm (vector) INST1(subhn2, "subhn2", NRW, IF_DV_3A, 0x4E206000) // subhn2 Vd,Vn,Vm DV_3A 01001110XX1mmmmm 011000nnnnnddddd 4E20 6000 Vd,Vn,Vm (vector) INST1(uabal, "uabal", LNG, IF_DV_3A, 0x2E205000) // uabal Vd,Vn,Vm DV_3A 00101110XX1mmmmm 010100nnnnnddddd 2E20 5000 Vd,Vn,Vm (vector) INST1(uabal2, "uabal2", LNG, IF_DV_3A, 0x6E205000) // uabal2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 010100nnnnnddddd 6E20 5000 Vd,Vn,Vm (vector) INST1(uabdl, "uabdl", LNG, IF_DV_3A, 0x2E207000) // uabdl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 011100nnnnnddddd 2E20 7000 Vd,Vn,Vm (vector) INST1(uabdl2, "uabdl2", LNG, IF_DV_3A, 0x6E207000) // uabdl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 011100nnnnnddddd 6E20 7000 Vd,Vn,Vm (vector) INST1(uadalp, "uadalp", LNG, IF_DV_2T, 0x2E206800) // uadalp Vd,Vn DV_2T 0Q101110XX100000 011010nnnnnddddd 2E20 6800 Vd,Vn (vector) INST1(uaddl, "uaddl", LNG, IF_DV_3A, 0x2E200000) // uaddl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 000000nnnnnddddd 2E20 0000 Vd,Vn,Vm (vector) INST1(uaddl2, "uaddl2", LNG, IF_DV_3A, 0x6E200000) // uaddl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 000000nnnnnddddd 6E20 0000 Vd,Vn,Vm (vector) INST1(uaddlp, "uaddlp", LNG, IF_DV_2T, 0x2E202800) // uaddlp Vd,Vn DV_2T 0Q101110XX100000 001010nnnnnddddd 2E20 2800 Vd,Vn (vector) INST1(uaddw, "uaddw", WID, IF_DV_3A, 0x2E201000) // uaddw Vd,Vn,Vm DV_3A 00101110XX1mmmmm 000100nnnnnddddd 2E20 1000 Vd,Vn,Vm (vector) INST1(uaddw2, "uaddw2", WID, IF_DV_3A, 0x6E201000) // uaddw2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 000100nnnnnddddd 6E20 1000 Vd,Vn,Vm (vector) INST1(uhadd, "uhadd", 0, IF_DV_3A, 0x2E200400) // uhadd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 000001nnnnnddddd 2E20 0400 Vd,Vn,Vm (vector) INST1(uhsub, "uhsub", 0, IF_DV_3A, 0x2E202400) // uhsub Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 001001nnnnnddddd 2E20 2400 Vd,Vn,Vm (vector) INST1(urhadd, "urhadd", 0, IF_DV_3A, 0x2E201400) // urhadd Vd,Vn,Vm DV_3A 0Q101110XX1mmmmm 000101nnnnnddddd 2E20 1400 Vd,Vn,Vm (vector) INST1(usubl, "usubl", LNG, IF_DV_3A, 0x2E202000) // usubl Vd,Vn,Vm DV_3A 00101110XX1mmmmm 001000nnnnnddddd 2E20 2000 Vd,Vn,Vm (vector) INST1(usubl2, "usubl2", LNG, IF_DV_3A, 0x6E202000) // usubl2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 001000nnnnnddddd 6E20 2000 Vd,Vn,Vm (vector) INST1(usubw, "usubw", WID, IF_DV_3A, 0x2E203000) // usubw Vd,Vn,Vm DV_3A 00101110XX1mmmmm 001100nnnnnddddd 2E20 3000 Vd,Vn,Vm (vector) INST1(usubw2, "usubw2", WID, IF_DV_3A, 0x6E203000) // usubw2 Vd,Vn,Vm DV_3A 01101110XX1mmmmm 001100nnnnnddddd 6E20 3000 Vd,Vn,Vm (vector) INST1(shll, "shll", LNG, IF_DV_2M, 0x2F00A400) // shll Vd,Vn,imm DV_2M 0Q101110XX100001 001110nnnnnddddd 2E21 3800 Vd,Vn, {8/16/32} INST1(shll2, "shll2", LNG, IF_DV_2M, 0x6F00A400) // shll Vd,Vn,imm DV_2M 0Q101110XX100001 001110nnnnnddddd 2E21 3800 Vd,Vn, {8/16/32} INST1(sshll, "sshll", LNG, IF_DV_2O, 0x0F00A400) // sshll Vd,Vn,imm DV_2O 000011110iiiiiii 101001nnnnnddddd 0F00 A400 Vd,Vn imm (left shift - vector) INST1(sshll2, "sshll2", LNG, IF_DV_2O, 0x4F00A400) // sshll2 Vd,Vn,imm DV_2O 010011110iiiiiii 101001nnnnnddddd 4F00 A400 Vd,Vn imm (left shift - vector) INST1(ushll, "ushll", LNG, IF_DV_2O, 0x2F00A400) // ushll Vd,Vn,imm DV_2O 001011110iiiiiii 101001nnnnnddddd 2F00 A400 Vd,Vn imm (left shift - vector) INST1(ushll2, "ushll2", LNG, IF_DV_2O, 0x6F00A400) // ushll2 Vd,Vn,imm DV_2O 011011110iiiiiii 101001nnnnnddddd 6F00 A400 Vd,Vn imm (left shift - vector) INST1(shrn, "shrn", RSH|NRW,IF_DV_2O, 0x0F008400) // shrn Vd,Vn,imm DV_2O 000011110iiiiiii 100001nnnnnddddd 0F00 8400 Vd,Vn imm (right shift - vector) INST1(shrn2, "shrn2", RSH|NRW,IF_DV_2O, 0x4F008400) // shrn2 Vd,Vn,imm DV_2O 010011110iiiiiii 100001nnnnnddddd 4F00 8400 Vd,Vn imm (right shift - vector) INST1(rshrn, "rshrn", RSH|NRW,IF_DV_2O, 0x0F008C00) // rshrn Vd,Vn,imm DV_2O 000011110iiiiiii 100011nnnnnddddd 0F00 8C00 Vd,Vn imm (right shift - vector) INST1(rshrn2, "rshrn2", RSH|NRW,IF_DV_2O, 0x4F008C00) // rshrn2 Vd,Vn,imm DV_2O 010011110iiiiiii 100011nnnnnddddd 4F00 8C00 Vd,Vn imm (right shift - vector) INST1(sqrshrn2, "sqrshrn2", RSH|NRW,IF_DV_2O, 0x0F009C00) // sqrshrn2 Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100111nnnnnddddd 0F00 9C00 Vd Vn imm (right shift - vector) INST1(sqrshrun2, "sqrshrun2", RSH|NRW,IF_DV_2O, 0x2F008C00) // sqrshrun2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100011nnnnnddddd 2F00 8C00 Vd Vn imm (right shift - vector) INST1(sqshrn2, "sqshrn2", RSH|NRW,IF_DV_2O, 0x0F009400) // sqshrn2 Vd,Vn,imm DV_2O 0Q0011110iiiiiii 100101nnnnnddddd 0F00 9400 Vd Vn imm (right shift - vector) INST1(sqshrun2, "sqshrun2", RSH|NRW,IF_DV_2O, 0x2F008400) // sqshrun2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100001nnnnnddddd 2F00 8400 Vd Vn imm (right shift - vector) INST1(uqrshrn2, "uqrshrn2", RSH|NRW,IF_DV_2O, 0x2F009C00) // uqrshrn2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100111nnnnnddddd 2F00 9C00 Vd Vn imm (right shift - vector) INST1(uqshrn2, "uqshrn2", RSH|NRW,IF_DV_2O, 0x2F009400) // uqshrn2 Vd,Vn,imm DV_2O 0Q1011110iiiiiii 100101nnnnnddddd 2F00 9400 Vd Vn imm (right shift - vector) INST1(sxtl, "sxtl", LNG, IF_DV_2O, 0x0F00A400) // sxtl Vd,Vn DV_2O 000011110iiiiiii 101001nnnnnddddd 0F00 A400 Vd,Vn (left shift - vector) INST1(sxtl2, "sxtl2", LNG, IF_DV_2O, 0x4F00A400) // sxtl2 Vd,Vn DV_2O 010011110iiiiiii 101001nnnnnddddd 4F00 A400 Vd,Vn (left shift - vector) INST1(uxtl, "uxtl", LNG, IF_DV_2O, 0x2F00A400) // uxtl Vd,Vn DV_2O 001011110iiiiiii 101001nnnnnddddd 2F00 A400 Vd,Vn (left shift - vector) INST1(uxtl2, "uxtl2", LNG, IF_DV_2O, 0x6F00A400) // uxtl2 Vd,Vn DV_2O 011011110iiiiiii 101001nnnnnddddd 6F00 A400 Vd,Vn (left shift - vector) INST1(tbl, "tbl", 0, IF_DV_3C, 0x0E000000) // tbl Vd,{Vn},Vm DV_3C 0Q001110000mmmmm 000000nnnnnddddd 0E00 0000 Vd,Vn,Vm (vector) INST1(tbl_2regs, "tbl", 0, IF_DV_3C, 0x0E002000) // tbl Vd,{Vn,Vn+1},Vm DV_3C 0Q001110000mmmmm 001000nnnnnddddd 0E00 2000 Vd,Vn,Vm (vector) INST1(tbl_3regs, "tbl", 0, IF_DV_3C, 0x0E004000) // tbl Vd,{Vn,Vn+1,Vn+2},Vm DV_3C 0Q001110000mmmmm 010000nnnnnddddd 0E00 4000 Vd,Vn,Vm (vector) INST1(tbl_4regs, "tbl", 0, IF_DV_3C, 0x0E006000) // tbl Vd,{Vn,Vn+1,Vn+2,Vn+3},Vm DV_3C 0Q001110000mmmmm 011000nnnnnddddd 0E00 6000 Vd,Vn,Vm (vector) INST1(tbx, "tbx", 0, IF_DV_3C, 0x0E001000) // tbx Vd,{Vn},Vm DV_3C 0Q001110000mmmmm 000100nnnnnddddd 0E00 1000 Vd,Vn,Vm (vector) INST1(tbx_2regs, "tbx", 0, IF_DV_3C, 0x0E003000) // tbx Vd,{Vn,Vn+1},Vm DV_3C 0Q001110000mmmmm 001100nnnnnddddd 0E00 3000 Vd,Vn,Vm (vector) INST1(tbx_3regs, "tbx", 0, IF_DV_3C, 0x0E005000) // tbx Vd,{Vn,Vn+1,Vn+2},Vm DV_3C 0Q001110000mmmmm 010100nnnnnddddd 0E00 5000 Vd,Vn,Vm (vector) INST1(tbx_4regs, "tbx", 0, IF_DV_3C, 0x0E007000) // tbx Vd,{Vn,Vn+1,Vn+2,Vn+3},Vm DV_3C 0Q001110000mmmmm 011100nnnnnddddd 0E00 7000 Vd,Vn,Vm (vector) #if FEATURE_LOOP_ALIGN INST1(align, "align", 0, IF_SN_0A, BAD_CODE) // align SN_0A #endif // clang-format on /*****************************************************************************/ #undef INST1 #undef INST2 #undef INST3 #undef INST4 #undef INST5 #undef INST6 #undef INST9 /*****************************************************************************/
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/HardwareIntrinsics/General/Vector256_1/op_Equality.UInt64.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_EqualityUInt64() { var test = new VectorBooleanBinaryOpTest__op_EqualityUInt64(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBooleanBinaryOpTest__op_EqualityUInt64 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(UInt64[] inArray1, UInt64[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt64>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt64>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt64, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt64, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<UInt64> _fld1; public Vector256<UInt64> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__op_EqualityUInt64 testClass) { var result = _fld1 == _fld2; testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64); private static UInt64[] _data1 = new UInt64[Op1ElementCount]; private static UInt64[] _data2 = new UInt64[Op2ElementCount]; private static Vector256<UInt64> _clsVar1; private static Vector256<UInt64> _clsVar2; private Vector256<UInt64> _fld1; private Vector256<UInt64> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__op_EqualityUInt64() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _clsVar1), ref Unsafe.As<UInt64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _clsVar2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); } public VectorBooleanBinaryOpTest__op_EqualityUInt64() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _fld1), ref Unsafe.As<UInt64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray1Ptr) == Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray2Ptr); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector256<UInt64>).GetMethod("op_Equality", new Type[] { typeof(Vector256<UInt64>), typeof(Vector256<UInt64>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = _clsVar1 == _clsVar2; ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray2Ptr); var result = op1 == op2; ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__op_EqualityUInt64(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = _fld1 == _fld2; ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector256<UInt64> op1, Vector256<UInt64> op2, bool result, [CallerMemberName] string method = "") { UInt64[] inArray1 = new UInt64[Op1ElementCount]; UInt64[] inArray2 = new UInt64[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { UInt64[] inArray1 = new UInt64[Op1ElementCount]; UInt64[] inArray2 = new UInt64[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(UInt64[] left, UInt64[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = true; for (var i = 0; i < Op1ElementCount; i++) { expectedResult &= (left[i] == right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.op_Equality<UInt64>(Vector256<UInt64>, Vector256<UInt64>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({result})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_EqualityUInt64() { var test = new VectorBooleanBinaryOpTest__op_EqualityUInt64(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBooleanBinaryOpTest__op_EqualityUInt64 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(UInt64[] inArray1, UInt64[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt64>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt64>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt64, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt64, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<UInt64> _fld1; public Vector256<UInt64> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__op_EqualityUInt64 testClass) { var result = _fld1 == _fld2; testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector256<UInt64>>() / sizeof(UInt64); private static UInt64[] _data1 = new UInt64[Op1ElementCount]; private static UInt64[] _data2 = new UInt64[Op2ElementCount]; private static Vector256<UInt64> _clsVar1; private static Vector256<UInt64> _clsVar2; private Vector256<UInt64> _fld1; private Vector256<UInt64> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__op_EqualityUInt64() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _clsVar1), ref Unsafe.As<UInt64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _clsVar2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); } public VectorBooleanBinaryOpTest__op_EqualityUInt64() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _fld1), ref Unsafe.As<UInt64, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<UInt64>, byte>(ref _fld2), ref Unsafe.As<UInt64, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt64(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt64(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray1Ptr) == Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray2Ptr); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector256<UInt64>).GetMethod("op_Equality", new Type[] { typeof(Vector256<UInt64>), typeof(Vector256<UInt64>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = _clsVar1 == _clsVar2; ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector256<UInt64>>(_dataTable.inArray2Ptr); var result = op1 == op2; ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__op_EqualityUInt64(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = _fld1 == _fld2; ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector256<UInt64> op1, Vector256<UInt64> op2, bool result, [CallerMemberName] string method = "") { UInt64[] inArray1 = new UInt64[Op1ElementCount]; UInt64[] inArray2 = new UInt64[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { UInt64[] inArray1 = new UInt64[Op1ElementCount]; UInt64[] inArray2 = new UInt64[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt64, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector256<UInt64>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(UInt64[] left, UInt64[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = true; for (var i = 0; i < Op1ElementCount; i++) { expectedResult &= (left[i] == right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector256)}.op_Equality<UInt64>(Vector256<UInt64>, Vector256<UInt64>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({result})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/Common/src/Interop/Windows/Shell32/Interop.SHGetKnownFolderPath.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Shell32 { internal const int COR_E_PLATFORMNOTSUPPORTED = unchecked((int)0x80131539); // https://msdn.microsoft.com/en-us/library/windows/desktop/bb762188.aspx [GeneratedDllImport(Libraries.Shell32, SetLastError = false, StringMarshalling = StringMarshalling.Utf16)] internal static partial int SHGetKnownFolderPath( in Guid rfid, uint dwFlags, IntPtr hToken, out string ppszPath); // https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx internal static class KnownFolders { /// <summary> /// (CSIDL_ADMINTOOLS) Per user Administrative Tools /// "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Administrative Tools" /// </summary> internal const string AdminTools = "{724EF170-A42D-4FEF-9F26-B60E846FBA4F}"; /// <summary> /// (CSIDL_CDBURN_AREA) Temporary Burn folder /// "%LOCALAPPDATA%\Microsoft\Windows\Burn\Burn" /// </summary> internal const string CDBurning = "{9E52AB10-F80D-49DF-ACB8-4330F5687855}"; /// <summary> /// (CSIDL_COMMON_ADMINTOOLS) Common Administrative Tools /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Administrative Tools" /// </summary> internal const string CommonAdminTools = "{D0384E7D-BAC3-4797-8F14-CBA229B392B5}"; /// <summary> /// (CSIDL_COMMON_OEM_LINKS) OEM Links folder /// "%ALLUSERSPROFILE%\OEM Links" /// </summary> internal const string CommonOEMLinks = "{C1BAE2D0-10DF-4334-BEDD-7AA20B227A9D}"; /// <summary> /// (CSIDL_COMMON_PROGRAMS) Common Programs folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs" /// </summary> internal const string CommonPrograms = "{0139D44E-6AFE-49F2-8690-3DAFCAE6FFB8}"; /// <summary> /// (CSIDL_COMMON_STARTMENU) Common Start Menu folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu" /// </summary> internal const string CommonStartMenu = "{A4115719-D62E-491D-AA7C-E74B8BE3B067}"; /// <summary> /// (CSIDL_COMMON_STARTUP, CSIDL_COMMON_ALTSTARTUP) Common Startup folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp" /// </summary> internal const string CommonStartup = "{82A5EA35-D9CD-47C5-9629-E15D2F714E6E}"; /// <summary> /// (CSIDL_COMMON_TEMPLATES) Common Templates folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Templates" /// </summary> internal const string CommonTemplates = "{B94237E7-57AC-4347-9151-B08C6C32D1F7}"; /// <summary> /// (CSIDL_DRIVES) Computer virtual folder /// </summary> internal const string ComputerFolder = "{0AC0837C-BBF8-452A-850D-79D08E667CA7}"; /// <summary> /// (CSIDL_CONNECTIONS) Network Connections virtual folder /// </summary> internal const string ConnectionsFolder = "{6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD}"; /// <summary> /// (CSIDL_CONTROLS) Control Panel virtual folder /// </summary> internal const string ControlPanelFolder = "{82A74AEB-AEB4-465C-A014-D097EE346D63}"; /// <summary> /// (CSIDL_COOKIES) Cookies folder /// "%APPDATA%\Microsoft\Windows\Cookies" /// </summary> internal const string Cookies = "{2B0F765D-C0E9-4171-908E-08A611B84FF6}"; /// <summary> /// (CSIDL_DESKTOP, CSIDL_DESKTOPDIRECTORY) Desktop folder /// "%USERPROFILE%\Desktop" /// </summary> internal const string Desktop = "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"; /// <summary> /// (CSIDL_MYDOCUMENTS, CSIDL_PERSONAL) Documents (My Documents) folder /// "%USERPROFILE%\Documents" /// </summary> internal const string Documents = "{FDD39AD0-238F-46AF-ADB4-6C85480369C7}"; /// <summary> /// (CSIDL_FAVORITES, CSIDL_COMMON_FAVORITES) Favorites folder /// "%USERPROFILE%\Favorites" /// </summary> internal const string Favorites = "{1777F761-68AD-4D8A-87BD-30B759FA33DD}"; /// <summary> /// (CSIDL_FONTS) Fonts folder /// "%windir%\Fonts" /// </summary> internal const string Fonts = "{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}"; /// <summary> /// (CSIDL_HISTORY) History folder /// "%LOCALAPPDATA%\Microsoft\Windows\History" /// </summary> internal const string History = "{D9DC8A3B-B784-432E-A781-5A1130A75963}"; /// <summary> /// (CSIDL_INTERNET_CACHE) Temporary Internet Files folder /// "%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files" /// </summary> internal const string InternetCache = "{352481E8-33BE-4251-BA85-6007CAEDCF9D}"; /// <summary> /// (CSIDL_INTERNET) The Internet virtual folder /// </summary> internal const string InternetFolder = "{4D9F7874-4E0C-4904-967B-40B0D20C3E4B}"; /// <summary> /// (CSIDL_LOCAL_APPDATA) Local folder /// "%LOCALAPPDATA%" ("%USERPROFILE%\AppData\Local") /// </summary> internal const string LocalAppData = "{F1B32785-6FBA-4FCF-9D55-7B8E7F157091}"; /// <summary> /// (CSIDL_RESOURCES_LOCALIZED) Fixed localized resources folder /// "%windir%\resources\0409" (per active codepage) /// </summary> internal const string LocalizedResourcesDir = "{2A00375E-224C-49DE-B8D1-440DF7EF3DDC}"; /// <summary> /// (CSIDL_MYMUSIC) Music folder /// "%USERPROFILE%\Music" /// </summary> internal const string Music = "{4BD8D571-6D19-48D3-BE97-422220080E43}"; /// <summary> /// (CSIDL_NETHOOD) Network shortcuts folder "%APPDATA%\Microsoft\Windows\Network Shortcuts" /// </summary> internal const string NetHood = "{C5ABBF53-E17F-4121-8900-86626FC2C973}"; /// <summary> /// (CSIDL_NETWORK, CSIDL_COMPUTERSNEARME) Network virtual folder /// </summary> internal const string NetworkFolder = "{D20BEEC4-5CA8-4905-AE3B-BF251EA09B53}"; /// <summary> /// (CSIDL_MYPICTURES) Pictures folder "%USERPROFILE%\Pictures" /// </summary> internal const string Pictures = "{33E28130-4E1E-4676-835A-98395C3BC3BB}"; /// <summary> /// (CSIDL_PRINTERS) Printers virtual folder /// </summary> internal const string PrintersFolder = "{76FC4E2D-D6AD-4519-A663-37BD56068185}"; /// <summary> /// (CSIDL_PRINTHOOD) Printer Shortcuts folder /// "%APPDATA%\Microsoft\Windows\Printer Shortcuts" /// </summary> internal const string PrintHood = "{9274BD8D-CFD1-41C3-B35E-B13F55A758F4}"; /// <summary> /// (CSIDL_PROFILE) The root users profile folder "%USERPROFILE%" /// ("%SystemDrive%\Users\%USERNAME%") /// </summary> internal const string Profile = "{5E6C858F-0E22-4760-9AFE-EA3317B67173}"; /// <summary> /// (CSIDL_COMMON_APPDATA) ProgramData folder /// "%ALLUSERSPROFILE%" ("%ProgramData%", "%SystemDrive%\ProgramData") /// </summary> internal const string ProgramData = "{62AB5D82-FDC1-4DC3-A9DD-070D1D495D97}"; /// <summary> /// (CSIDL_PROGRAM_FILES) Program Files folder for the current process architecture /// "%ProgramFiles%" ("%SystemDrive%\Program Files") /// </summary> internal const string ProgramFiles = "{905e63b6-c1bf-494e-b29c-65b732d3d21a}"; /// <summary> /// (CSIDL_PROGRAM_FILESX86) 32 bit Program Files folder (available to both 32/64 bit processes) /// </summary> internal const string ProgramFilesX86 = "{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}"; /// <summary> /// (CSIDL_PROGRAM_FILES_COMMON) Common Program Files folder for the current process architecture /// "%ProgramFiles%\Common Files" /// </summary> internal const string ProgramFilesCommon = "{F7F1ED05-9F6D-47A2-AAAE-29D317C6F066}"; /// <summary> /// (CSIDL_PROGRAM_FILES_COMMONX86) Common 32 bit Program Files folder (available to both 32/64 bit processes) /// </summary> internal const string ProgramFilesCommonX86 = "{DE974D24-D9C6-4D3E-BF91-F4455120B917}"; /// <summary> /// (CSIDL_PROGRAMS) Start menu Programs folder /// "%APPDATA%\Microsoft\Windows\Start Menu\Programs" /// </summary> internal const string Programs = "{A77F5D77-2E2B-44C3-A6A2-ABA601054A51}"; /// <summary> /// (CSIDL_COMMON_DESKTOPDIRECTORY) Public Desktop folder /// "%PUBLIC%\Desktop" /// </summary> internal const string PublicDesktop = "{C4AA340D-F20F-4863-AFEF-F87EF2E6BA25}"; /// <summary> /// (CSIDL_COMMON_DOCUMENTS) Public Documents folder /// "%PUBLIC%\Documents" /// </summary> internal const string PublicDocuments = "{ED4824AF-DCE4-45A8-81E2-FC7965083634}"; /// <summary> /// (CSIDL_COMMON_MUSIC) Public Music folder /// "%PUBLIC%\Music" /// </summary> internal const string PublicMusic = "{3214FAB5-9757-4298-BB61-92A9DEAA44FF}"; /// <summary> /// (CSIDL_COMMON_PICTURES) Public Pictures folder /// "%PUBLIC%\Pictures" /// </summary> internal const string PublicPictures = "{B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5}"; /// <summary> /// (CSIDL_COMMON_VIDEO) Public Videos folder /// "%PUBLIC%\Videos" /// </summary> internal const string PublicVideos = "{2400183A-6185-49FB-A2D8-4A392A602BA3}"; /// <summary> /// (CSIDL_RECENT) Recent Items folder /// "%APPDATA%\Microsoft\Windows\Recent" /// </summary> internal const string Recent = "{AE50C081-EBD2-438A-8655-8A092E34987A}"; /// <summary> /// (CSIDL_BITBUCKET) Recycle Bin virtual folder /// </summary> internal const string RecycleBinFolder = "{B7534046-3ECB-4C18-BE4E-64CD4CB7D6AC}"; /// <summary> /// (CSIDL_RESOURCES) Resources fixed folder /// "%windir%\Resources" /// </summary> internal const string ResourceDir = "{8AD10C31-2ADB-4296-A8F7-E4701232C972}"; /// <summary> /// (CSIDL_APPDATA) Roaming user application data folder /// "%APPDATA%" ("%USERPROFILE%\AppData\Roaming") /// </summary> internal const string RoamingAppData = "{3EB685DB-65F9-4CF6-A03A-E3EF65729F3D}"; /// <summary> /// (CSIDL_SENDTO) SendTo folder /// "%APPDATA%\Microsoft\Windows\SendTo" /// </summary> internal const string SendTo = "{8983036C-27C0-404B-8F08-102D10DCFD74}"; /// <summary> /// (CSIDL_STARTMENU) Start Menu folder /// "%APPDATA%\Microsoft\Windows\Start Menu" /// </summary> internal const string StartMenu = "{625B53C3-AB48-4EC1-BA1F-A1EF4146FC19}"; /// <summary> /// (CSIDL_STARTUP, CSIDL_ALTSTARTUP) Startup folder /// "%APPDATA%\Microsoft\Windows\Start Menu\Programs\StartUp" /// </summary> internal const string Startup = "{B97D20BB-F46A-4C97-BA10-5E3608430854}"; /// <summary> /// (CSIDL_SYSTEM) System32 folder /// "%windir%\system32" /// </summary> internal const string System = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}"; /// <summary> /// (CSIDL_SYSTEMX86) X86 System32 folder /// "%windir%\system32" or "%windir%\syswow64" /// </summary> internal const string SystemX86 = "{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}"; /// <summary> /// (CSIDL_TEMPLATES) Templates folder /// "%APPDATA%\Microsoft\Windows\Templates" /// </summary> internal const string Templates = "{A63293E8-664E-48DB-A079-DF759E0509F7}"; /// <summary> /// (CSIDL_MYVIDEO) Videos folder /// "%USERPROFILE%\Videos" /// </summary> internal const string Videos = "{18989B1D-99B5-455B-841C-AB7C74E4DDFC}"; /// <summary> /// (CSIDL_WINDOWS) Windows folder "%windir%" /// </summary> internal const string Windows = "{F38BF404-1D43-42F2-9305-67DE0B28FC23}"; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Shell32 { internal const int COR_E_PLATFORMNOTSUPPORTED = unchecked((int)0x80131539); // https://msdn.microsoft.com/en-us/library/windows/desktop/bb762188.aspx [GeneratedDllImport(Libraries.Shell32, SetLastError = false, StringMarshalling = StringMarshalling.Utf16)] internal static partial int SHGetKnownFolderPath( in Guid rfid, uint dwFlags, IntPtr hToken, out string ppszPath); // https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx internal static class KnownFolders { /// <summary> /// (CSIDL_ADMINTOOLS) Per user Administrative Tools /// "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Administrative Tools" /// </summary> internal const string AdminTools = "{724EF170-A42D-4FEF-9F26-B60E846FBA4F}"; /// <summary> /// (CSIDL_CDBURN_AREA) Temporary Burn folder /// "%LOCALAPPDATA%\Microsoft\Windows\Burn\Burn" /// </summary> internal const string CDBurning = "{9E52AB10-F80D-49DF-ACB8-4330F5687855}"; /// <summary> /// (CSIDL_COMMON_ADMINTOOLS) Common Administrative Tools /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Administrative Tools" /// </summary> internal const string CommonAdminTools = "{D0384E7D-BAC3-4797-8F14-CBA229B392B5}"; /// <summary> /// (CSIDL_COMMON_OEM_LINKS) OEM Links folder /// "%ALLUSERSPROFILE%\OEM Links" /// </summary> internal const string CommonOEMLinks = "{C1BAE2D0-10DF-4334-BEDD-7AA20B227A9D}"; /// <summary> /// (CSIDL_COMMON_PROGRAMS) Common Programs folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs" /// </summary> internal const string CommonPrograms = "{0139D44E-6AFE-49F2-8690-3DAFCAE6FFB8}"; /// <summary> /// (CSIDL_COMMON_STARTMENU) Common Start Menu folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu" /// </summary> internal const string CommonStartMenu = "{A4115719-D62E-491D-AA7C-E74B8BE3B067}"; /// <summary> /// (CSIDL_COMMON_STARTUP, CSIDL_COMMON_ALTSTARTUP) Common Startup folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp" /// </summary> internal const string CommonStartup = "{82A5EA35-D9CD-47C5-9629-E15D2F714E6E}"; /// <summary> /// (CSIDL_COMMON_TEMPLATES) Common Templates folder /// "%ALLUSERSPROFILE%\Microsoft\Windows\Templates" /// </summary> internal const string CommonTemplates = "{B94237E7-57AC-4347-9151-B08C6C32D1F7}"; /// <summary> /// (CSIDL_DRIVES) Computer virtual folder /// </summary> internal const string ComputerFolder = "{0AC0837C-BBF8-452A-850D-79D08E667CA7}"; /// <summary> /// (CSIDL_CONNECTIONS) Network Connections virtual folder /// </summary> internal const string ConnectionsFolder = "{6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD}"; /// <summary> /// (CSIDL_CONTROLS) Control Panel virtual folder /// </summary> internal const string ControlPanelFolder = "{82A74AEB-AEB4-465C-A014-D097EE346D63}"; /// <summary> /// (CSIDL_COOKIES) Cookies folder /// "%APPDATA%\Microsoft\Windows\Cookies" /// </summary> internal const string Cookies = "{2B0F765D-C0E9-4171-908E-08A611B84FF6}"; /// <summary> /// (CSIDL_DESKTOP, CSIDL_DESKTOPDIRECTORY) Desktop folder /// "%USERPROFILE%\Desktop" /// </summary> internal const string Desktop = "{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"; /// <summary> /// (CSIDL_MYDOCUMENTS, CSIDL_PERSONAL) Documents (My Documents) folder /// "%USERPROFILE%\Documents" /// </summary> internal const string Documents = "{FDD39AD0-238F-46AF-ADB4-6C85480369C7}"; /// <summary> /// (CSIDL_FAVORITES, CSIDL_COMMON_FAVORITES) Favorites folder /// "%USERPROFILE%\Favorites" /// </summary> internal const string Favorites = "{1777F761-68AD-4D8A-87BD-30B759FA33DD}"; /// <summary> /// (CSIDL_FONTS) Fonts folder /// "%windir%\Fonts" /// </summary> internal const string Fonts = "{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}"; /// <summary> /// (CSIDL_HISTORY) History folder /// "%LOCALAPPDATA%\Microsoft\Windows\History" /// </summary> internal const string History = "{D9DC8A3B-B784-432E-A781-5A1130A75963}"; /// <summary> /// (CSIDL_INTERNET_CACHE) Temporary Internet Files folder /// "%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files" /// </summary> internal const string InternetCache = "{352481E8-33BE-4251-BA85-6007CAEDCF9D}"; /// <summary> /// (CSIDL_INTERNET) The Internet virtual folder /// </summary> internal const string InternetFolder = "{4D9F7874-4E0C-4904-967B-40B0D20C3E4B}"; /// <summary> /// (CSIDL_LOCAL_APPDATA) Local folder /// "%LOCALAPPDATA%" ("%USERPROFILE%\AppData\Local") /// </summary> internal const string LocalAppData = "{F1B32785-6FBA-4FCF-9D55-7B8E7F157091}"; /// <summary> /// (CSIDL_RESOURCES_LOCALIZED) Fixed localized resources folder /// "%windir%\resources\0409" (per active codepage) /// </summary> internal const string LocalizedResourcesDir = "{2A00375E-224C-49DE-B8D1-440DF7EF3DDC}"; /// <summary> /// (CSIDL_MYMUSIC) Music folder /// "%USERPROFILE%\Music" /// </summary> internal const string Music = "{4BD8D571-6D19-48D3-BE97-422220080E43}"; /// <summary> /// (CSIDL_NETHOOD) Network shortcuts folder "%APPDATA%\Microsoft\Windows\Network Shortcuts" /// </summary> internal const string NetHood = "{C5ABBF53-E17F-4121-8900-86626FC2C973}"; /// <summary> /// (CSIDL_NETWORK, CSIDL_COMPUTERSNEARME) Network virtual folder /// </summary> internal const string NetworkFolder = "{D20BEEC4-5CA8-4905-AE3B-BF251EA09B53}"; /// <summary> /// (CSIDL_MYPICTURES) Pictures folder "%USERPROFILE%\Pictures" /// </summary> internal const string Pictures = "{33E28130-4E1E-4676-835A-98395C3BC3BB}"; /// <summary> /// (CSIDL_PRINTERS) Printers virtual folder /// </summary> internal const string PrintersFolder = "{76FC4E2D-D6AD-4519-A663-37BD56068185}"; /// <summary> /// (CSIDL_PRINTHOOD) Printer Shortcuts folder /// "%APPDATA%\Microsoft\Windows\Printer Shortcuts" /// </summary> internal const string PrintHood = "{9274BD8D-CFD1-41C3-B35E-B13F55A758F4}"; /// <summary> /// (CSIDL_PROFILE) The root users profile folder "%USERPROFILE%" /// ("%SystemDrive%\Users\%USERNAME%") /// </summary> internal const string Profile = "{5E6C858F-0E22-4760-9AFE-EA3317B67173}"; /// <summary> /// (CSIDL_COMMON_APPDATA) ProgramData folder /// "%ALLUSERSPROFILE%" ("%ProgramData%", "%SystemDrive%\ProgramData") /// </summary> internal const string ProgramData = "{62AB5D82-FDC1-4DC3-A9DD-070D1D495D97}"; /// <summary> /// (CSIDL_PROGRAM_FILES) Program Files folder for the current process architecture /// "%ProgramFiles%" ("%SystemDrive%\Program Files") /// </summary> internal const string ProgramFiles = "{905e63b6-c1bf-494e-b29c-65b732d3d21a}"; /// <summary> /// (CSIDL_PROGRAM_FILESX86) 32 bit Program Files folder (available to both 32/64 bit processes) /// </summary> internal const string ProgramFilesX86 = "{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}"; /// <summary> /// (CSIDL_PROGRAM_FILES_COMMON) Common Program Files folder for the current process architecture /// "%ProgramFiles%\Common Files" /// </summary> internal const string ProgramFilesCommon = "{F7F1ED05-9F6D-47A2-AAAE-29D317C6F066}"; /// <summary> /// (CSIDL_PROGRAM_FILES_COMMONX86) Common 32 bit Program Files folder (available to both 32/64 bit processes) /// </summary> internal const string ProgramFilesCommonX86 = "{DE974D24-D9C6-4D3E-BF91-F4455120B917}"; /// <summary> /// (CSIDL_PROGRAMS) Start menu Programs folder /// "%APPDATA%\Microsoft\Windows\Start Menu\Programs" /// </summary> internal const string Programs = "{A77F5D77-2E2B-44C3-A6A2-ABA601054A51}"; /// <summary> /// (CSIDL_COMMON_DESKTOPDIRECTORY) Public Desktop folder /// "%PUBLIC%\Desktop" /// </summary> internal const string PublicDesktop = "{C4AA340D-F20F-4863-AFEF-F87EF2E6BA25}"; /// <summary> /// (CSIDL_COMMON_DOCUMENTS) Public Documents folder /// "%PUBLIC%\Documents" /// </summary> internal const string PublicDocuments = "{ED4824AF-DCE4-45A8-81E2-FC7965083634}"; /// <summary> /// (CSIDL_COMMON_MUSIC) Public Music folder /// "%PUBLIC%\Music" /// </summary> internal const string PublicMusic = "{3214FAB5-9757-4298-BB61-92A9DEAA44FF}"; /// <summary> /// (CSIDL_COMMON_PICTURES) Public Pictures folder /// "%PUBLIC%\Pictures" /// </summary> internal const string PublicPictures = "{B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5}"; /// <summary> /// (CSIDL_COMMON_VIDEO) Public Videos folder /// "%PUBLIC%\Videos" /// </summary> internal const string PublicVideos = "{2400183A-6185-49FB-A2D8-4A392A602BA3}"; /// <summary> /// (CSIDL_RECENT) Recent Items folder /// "%APPDATA%\Microsoft\Windows\Recent" /// </summary> internal const string Recent = "{AE50C081-EBD2-438A-8655-8A092E34987A}"; /// <summary> /// (CSIDL_BITBUCKET) Recycle Bin virtual folder /// </summary> internal const string RecycleBinFolder = "{B7534046-3ECB-4C18-BE4E-64CD4CB7D6AC}"; /// <summary> /// (CSIDL_RESOURCES) Resources fixed folder /// "%windir%\Resources" /// </summary> internal const string ResourceDir = "{8AD10C31-2ADB-4296-A8F7-E4701232C972}"; /// <summary> /// (CSIDL_APPDATA) Roaming user application data folder /// "%APPDATA%" ("%USERPROFILE%\AppData\Roaming") /// </summary> internal const string RoamingAppData = "{3EB685DB-65F9-4CF6-A03A-E3EF65729F3D}"; /// <summary> /// (CSIDL_SENDTO) SendTo folder /// "%APPDATA%\Microsoft\Windows\SendTo" /// </summary> internal const string SendTo = "{8983036C-27C0-404B-8F08-102D10DCFD74}"; /// <summary> /// (CSIDL_STARTMENU) Start Menu folder /// "%APPDATA%\Microsoft\Windows\Start Menu" /// </summary> internal const string StartMenu = "{625B53C3-AB48-4EC1-BA1F-A1EF4146FC19}"; /// <summary> /// (CSIDL_STARTUP, CSIDL_ALTSTARTUP) Startup folder /// "%APPDATA%\Microsoft\Windows\Start Menu\Programs\StartUp" /// </summary> internal const string Startup = "{B97D20BB-F46A-4C97-BA10-5E3608430854}"; /// <summary> /// (CSIDL_SYSTEM) System32 folder /// "%windir%\system32" /// </summary> internal const string System = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}"; /// <summary> /// (CSIDL_SYSTEMX86) X86 System32 folder /// "%windir%\system32" or "%windir%\syswow64" /// </summary> internal const string SystemX86 = "{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}"; /// <summary> /// (CSIDL_TEMPLATES) Templates folder /// "%APPDATA%\Microsoft\Windows\Templates" /// </summary> internal const string Templates = "{A63293E8-664E-48DB-A079-DF759E0509F7}"; /// <summary> /// (CSIDL_MYVIDEO) Videos folder /// "%USERPROFILE%\Videos" /// </summary> internal const string Videos = "{18989B1D-99B5-455B-841C-AB7C74E4DDFC}"; /// <summary> /// (CSIDL_WINDOWS) Windows folder "%windir%" /// </summary> internal const string Windows = "{F38BF404-1D43-42F2-9305-67DE0B28FC23}"; } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/AdvSimd_Part16_ro.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> <PropertyGroup> <DebugType>Embedded</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="Xor.Vector64.Single.cs" /> <Compile Include="Xor.Vector64.UInt16.cs" /> <Compile Include="Xor.Vector64.UInt32.cs" /> <Compile Include="Xor.Vector64.UInt64.cs" /> <Compile Include="Xor.Vector128.Byte.cs" /> <Compile Include="Xor.Vector128.Double.cs" /> <Compile Include="Xor.Vector128.Int16.cs" /> <Compile Include="Xor.Vector128.Int32.cs" /> <Compile Include="Xor.Vector128.Int64.cs" /> <Compile Include="Xor.Vector128.SByte.cs" /> <Compile Include="Xor.Vector128.Single.cs" /> <Compile Include="Xor.Vector128.UInt16.cs" /> <Compile Include="Xor.Vector128.UInt32.cs" /> <Compile Include="Xor.Vector128.UInt64.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.Byte.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.Int16.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.Int32.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.SByte.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.UInt16.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.UInt32.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.Byte.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.Int16.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.Int32.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.SByte.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.UInt16.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.UInt32.cs" /> <Compile Include="Program.AdvSimd_Part16.cs" /> <Compile Include="..\Shared\Helpers.cs" /> <Compile Include="..\Shared\Program.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> </PropertyGroup> <PropertyGroup> <DebugType>Embedded</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="Xor.Vector64.Single.cs" /> <Compile Include="Xor.Vector64.UInt16.cs" /> <Compile Include="Xor.Vector64.UInt32.cs" /> <Compile Include="Xor.Vector64.UInt64.cs" /> <Compile Include="Xor.Vector128.Byte.cs" /> <Compile Include="Xor.Vector128.Double.cs" /> <Compile Include="Xor.Vector128.Int16.cs" /> <Compile Include="Xor.Vector128.Int32.cs" /> <Compile Include="Xor.Vector128.Int64.cs" /> <Compile Include="Xor.Vector128.SByte.cs" /> <Compile Include="Xor.Vector128.Single.cs" /> <Compile Include="Xor.Vector128.UInt16.cs" /> <Compile Include="Xor.Vector128.UInt32.cs" /> <Compile Include="Xor.Vector128.UInt64.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.Byte.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.Int16.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.Int32.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.SByte.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.UInt16.cs" /> <Compile Include="ZeroExtendWideningLower.Vector64.UInt32.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.Byte.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.Int16.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.Int32.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.SByte.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.UInt16.cs" /> <Compile Include="ZeroExtendWideningUpper.Vector128.UInt32.cs" /> <Compile Include="Program.AdvSimd_Part16.cs" /> <Compile Include="..\Shared\Helpers.cs" /> <Compile Include="..\Shared\Program.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/jit64/gc/misc/test_noalloca.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="test_noalloca.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>Full</DebugType> <Optimize>False</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="test_noalloca.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/Common/src/Interop/Windows/Kernel32/Interop.DuplicateHandle_SafeFileHandle.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Win32.SafeHandles; using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Kernel32 { [GeneratedDllImport(Libraries.Kernel32, SetLastError = true)] internal static partial bool DuplicateHandle( IntPtr hSourceProcessHandle, SafeHandle hSourceHandle, IntPtr hTargetProcess, out SafeFileHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions ); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Win32.SafeHandles; using System; using System.Runtime.InteropServices; internal static partial class Interop { internal static partial class Kernel32 { [GeneratedDllImport(Libraries.Kernel32, SetLastError = true)] internal static partial bool DuplicateHandle( IntPtr hSourceProcessHandle, SafeHandle hSourceHandle, IntPtr hTargetProcess, out SafeFileHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions ); } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/CodeGenBringUpTests/BinaryRMW_ro.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="BinaryRMW.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <CLRTestPriority>1</CLRTestPriority> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="BinaryRMW.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/MultiplyBySelectedScalarWideningLower.Vector64.Int32.Vector128.Int32.3.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3() { var test = new ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int32[] inArray1, Int32[] inArray2, Int64[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int64>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<Int32> _fld1; public Vector128<Int32> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref testStruct._fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref testStruct._fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>()); return testStruct; } public void RunStructFldScenario(ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3 testClass) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower(_fld1, _fld2, 3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3 testClass) { fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), 3 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int64>>() / sizeof(Int64); private static readonly byte Imm = 3; private static Int32[] _data1 = new Int32[Op1ElementCount]; private static Int32[] _data2 = new Int32[Op2ElementCount]; private static Vector64<Int32> _clsVar1; private static Vector128<Int32> _clsVar2; private Vector64<Int32> _fld1; private Vector128<Int32> _fld2; private DataTable _dataTable; static ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _clsVar1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _clsVar2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>()); } public ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } _dataTable = new DataTable(_data1, _data2, new Int64[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyBySelectedScalarWideningLower), new Type[] { typeof(Vector64<Int32>), typeof(Vector128<Int32>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr), (byte)3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyBySelectedScalarWideningLower), new Type[] { typeof(Vector64<Int32>), typeof(Vector128<Int32>), typeof(byte) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), (byte)3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( _clsVar1, _clsVar2, 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<Int32>* pClsVar1 = &_clsVar1) fixed (Vector128<Int32>* pClsVar2 = &_clsVar2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(op1, op2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(op1, op2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3(); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(test._fld1, test._fld2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3(); fixed (Vector64<Int32>* pFld1 = &test._fld1) fixed (Vector128<Int32>* pFld2 = &test._fld2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(_fld1, _fld2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(test._fld1, test._fld2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<Int32> firstOp, Vector128<Int32> secondOp, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), firstOp); Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), secondOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* firstOp, void* secondOp, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector64<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(secondOp), (uint)Unsafe.SizeOf<Vector128<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Int32[] firstOp, Int32[] secondOp, Int64[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.MultiplyWidening(firstOp[i], secondOp[Imm]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyBySelectedScalarWideningLower)}<Int64>(Vector64<Int32>, Vector128<Int32>, 3): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3() { var test = new ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private byte[] outArray; private GCHandle inHandle1; private GCHandle inHandle2; private GCHandle outHandle; private ulong alignment; public DataTable(Int32[] inArray1, Int32[] inArray2, Int64[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Int32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<Int32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Int64>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Int32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<Int32, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<Int32> _fld1; public Vector128<Int32> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref testStruct._fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref testStruct._fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>()); return testStruct; } public void RunStructFldScenario(ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3 testClass) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower(_fld1, _fld2, 3); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3 testClass) { fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), 3 ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, _fld2, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<Int32>>() / sizeof(Int32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<Int32>>() / sizeof(Int32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector128<Int64>>() / sizeof(Int64); private static readonly byte Imm = 3; private static Int32[] _data1 = new Int32[Op1ElementCount]; private static Int32[] _data2 = new Int32[Op2ElementCount]; private static Vector64<Int32> _clsVar1; private static Vector128<Int32> _clsVar2; private Vector64<Int32> _fld1; private Vector128<Int32> _fld2; private DataTable _dataTable; static ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _clsVar1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _clsVar2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>()); } public ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<Int32>, byte>(ref _fld1), ref Unsafe.As<Int32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<Int32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<Int32>, byte>(ref _fld2), ref Unsafe.As<Int32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<Int32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetInt32(); } _dataTable = new DataTable(_data1, _data2, new Int64[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyBySelectedScalarWideningLower), new Type[] { typeof(Vector64<Int32>), typeof(Vector128<Int32>), typeof(byte) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr), (byte)3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.MultiplyBySelectedScalarWideningLower), new Type[] { typeof(Vector64<Int32>), typeof(Vector128<Int32>), typeof(byte) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)), AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)), (byte)3 }); Unsafe.Write(_dataTable.outArrayPtr, (Vector128<Int64>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( _clsVar1, _clsVar2, 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<Int32>* pClsVar1 = &_clsVar1) fixed (Vector128<Int32>* pClsVar2 = &_clsVar2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pClsVar1)), AdvSimd.LoadVector128((Int32*)(pClsVar2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _clsVar2, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<Int32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<Int32>>(_dataTable.inArray2Ptr); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(op1, op2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((Int32*)(_dataTable.inArray1Ptr)); var op2 = AdvSimd.LoadVector128((Int32*)(_dataTable.inArray2Ptr)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(op1, op2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, op2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3(); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(test._fld1, test._fld2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new ImmBinaryOpTest__MultiplyBySelectedScalarWideningLower_Vector64_Int32_Vector128_Int32_3(); fixed (Vector64<Int32>* pFld1 = &test._fld1) fixed (Vector128<Int32>* pFld2 = &test._fld2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(_fld1, _fld2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<Int32>* pFld1 = &_fld1) fixed (Vector128<Int32>* pFld2 = &_fld2) { var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(pFld1)), AdvSimd.LoadVector128((Int32*)(pFld2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _fld2, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.MultiplyBySelectedScalarWideningLower(test._fld1, test._fld2, 3); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.MultiplyBySelectedScalarWideningLower( AdvSimd.LoadVector64((Int32*)(&test._fld1)), AdvSimd.LoadVector128((Int32*)(&test._fld2)), 3 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, test._fld2, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<Int32> firstOp, Vector128<Int32> secondOp, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), firstOp); Unsafe.WriteUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), secondOp); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(void* firstOp, void* secondOp, void* result, [CallerMemberName] string method = "") { Int32[] inArray1 = new Int32[Op1ElementCount]; Int32[] inArray2 = new Int32[Op2ElementCount]; Int64[] outArray = new Int64[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(firstOp), (uint)Unsafe.SizeOf<Vector64<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(secondOp), (uint)Unsafe.SizeOf<Vector128<Int32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Int64, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector128<Int64>>()); ValidateResult(inArray1, inArray2, outArray, method); } private void ValidateResult(Int32[] firstOp, Int32[] secondOp, Int64[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.MultiplyWidening(firstOp[i], secondOp[Imm]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.MultiplyBySelectedScalarWideningLower)}<Int64>(Vector64<Int32>, Vector128<Int32>, 3): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" secondOp: ({string.Join(", ", secondOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Private.Xml.Linq/tests/TreeManipulation/XContainerReplaceNodesOnXElement.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Test.ModuleCore; namespace XLinqTests { public class XContainerReplaceNodesOnXElement : XContainerReplaceNodes { public override void AddChildren() { AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("(BVT)XElement (text content): Replace with multiple nodes") { Params = new object[] { 2, "<A xmlns='ns1' xmlns:p='nsp'>_text_content_</A>", false }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("(BVT)XElement: Replace with multiple nodes") { Params = new object[] { 2, "<A xmlns='ns1' xmlns:p='nsp'><e1/>text1<p:e2>innertext<innerelem/></p:e2>text2<!--comment-->text3<?PI clicl?></A>", true }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement (text content): Replace with single node") { Params = new object[] { 1, "<A xmlns='ns1' xmlns:p='nsp'>_text_content_</A>", false }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement (text content): Replace with multiple nodes") { Params = new object[] { 4, "<A xmlns='ns1' xmlns:p='nsp'>_text_content_</A>", false }, Priority = 1 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement: Replace with single node") { Params = new object[] { 1, "<A xmlns='ns1' xmlns:p='nsp'><e1/>text1<p:e2>innertext<innerelem/></p:e2>text2<!--comment-->text3<?PI clicl?></A>", true }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement: Replace with multiple nodes") { Params = new object[] { 4, "<A xmlns='ns1' xmlns:p='nsp'><e1/>text1<p:e2>innertext<innerelem/></p:e2>text2<!--comment-->text3<?PI clicl?></A>", true }, Priority = 1 } }); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Test.ModuleCore; namespace XLinqTests { public class XContainerReplaceNodesOnXElement : XContainerReplaceNodes { public override void AddChildren() { AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("(BVT)XElement (text content): Replace with multiple nodes") { Params = new object[] { 2, "<A xmlns='ns1' xmlns:p='nsp'>_text_content_</A>", false }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("(BVT)XElement: Replace with multiple nodes") { Params = new object[] { 2, "<A xmlns='ns1' xmlns:p='nsp'><e1/>text1<p:e2>innertext<innerelem/></p:e2>text2<!--comment-->text3<?PI clicl?></A>", true }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement (text content): Replace with single node") { Params = new object[] { 1, "<A xmlns='ns1' xmlns:p='nsp'>_text_content_</A>", false }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement (text content): Replace with multiple nodes") { Params = new object[] { 4, "<A xmlns='ns1' xmlns:p='nsp'>_text_content_</A>", false }, Priority = 1 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement: Replace with single node") { Params = new object[] { 1, "<A xmlns='ns1' xmlns:p='nsp'><e1/>text1<p:e2>innertext<innerelem/></p:e2>text2<!--comment-->text3<?PI clicl?></A>", true }, Priority = 0 } }); AddChild(new TestVariation(OnXElement) { Attribute = new VariationAttribute("XElement: Replace with multiple nodes") { Params = new object[] { 4, "<A xmlns='ns1' xmlns:p='nsp'><e1/>text1<p:e2>innertext<innerelem/></p:e2>text2<!--comment-->text3<?PI clicl?></A>", true }, Priority = 1 } }); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Regression/VS-ia64-JIT/V1.2-M02/b10828/b10828.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="redundant.cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>PdbOnly</DebugType> </PropertyGroup> <ItemGroup> <Compile Include="redundant.cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/mono/mono/metadata/appdomain.c
/** * \file * AppDomain functions * * Authors: * Dietmar Maurer (dietmar@ximian.com) * Patrik Torstensson * Gonzalo Paniagua Javier (gonzalo@ximian.com) * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * Copyright 2012 Xamarin Inc * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include <config.h> #include <glib.h> #include <string.h> #include <errno.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_UTIME_H #include <utime.h> #else #ifdef HAVE_SYS_UTIME_H #include <sys/utime.h> #endif #endif #include <mono/metadata/gc-internals.h> #include <mono/metadata/object.h> #include <mono/metadata/appdomain-icalls.h> #include <mono/metadata/class-init.h> #include <mono/metadata/domain-internals.h> #include "mono/metadata/metadata-internals.h" #include <mono/metadata/assembly-internals.h> #include <mono/metadata/exception.h> #include <mono/metadata/exception-internals.h> #include <mono/metadata/threads.h> #include <mono/metadata/tabledefs.h> #include <mono/metadata/mono-gc.h> #include <mono/metadata/mono-hash-internals.h> #include <mono/metadata/marshal.h> #include <mono/metadata/marshal-internals.h> #include <mono/metadata/monitor.h> #include <mono/metadata/w32file.h> #include <mono/metadata/lock-tracer.h> #include <mono/metadata/threads-types.h> #include <mono/metadata/tokentype.h> #include <mono/metadata/profiler-private.h> #include <mono/metadata/reflection-internals.h> #include <mono/metadata/abi-details.h> #include <mono/utils/mono-uri.h> #include <mono/utils/mono-logger-internals.h> #include <mono/utils/mono-path.h> #include <mono/utils/mono-stdlib.h> #include <mono/utils/mono-error-internals.h> #include <mono/utils/atomic.h> #include <mono/utils/mono-memory-model.h> #include <mono/utils/mono-threads.h> #include <mono/metadata/w32handle.h> #include <mono/metadata/w32error.h> #include <mono/utils/w32api.h> #include <mono/metadata/components.h> #ifdef HOST_WIN32 #include <direct.h> #endif #include "object-internals.h" #include "icall-decl.h" static gboolean no_exec = FALSE; static int n_appctx_props; static char **appctx_keys; static char **appctx_values; static MonovmRuntimeConfigArguments *runtime_config_arg; static MonovmRuntimeConfigArgumentsCleanup runtime_config_cleanup_fn; static gpointer runtime_config_user_data; static const char * mono_check_corlib_version_internal (void); static MonoAssembly * mono_domain_assembly_preload (MonoAssemblyLoadContext *alc, MonoAssemblyName *aname, gchar **assemblies_path, gpointer user_data, MonoError *error); static MonoAssembly * mono_domain_assembly_search (MonoAssemblyLoadContext *alc, MonoAssembly *requesting, MonoAssemblyName *aname, gboolean postload, gpointer user_data, MonoError *error); static void mono_domain_fire_assembly_load (MonoAssemblyLoadContext *alc, MonoAssembly *assembly, gpointer user_data, MonoError *error_out); static const char * runtimeconfig_json_get_buffer (MonovmRuntimeConfigArguments *arg, MonoFileMap **file_map, gpointer *buf_handle); static void runtimeconfig_json_read_props (const char *ptr, const char **endp, int nprops, gunichar2 **dest_keys, gunichar2 **dest_values); static MonoLoadFunc load_function = NULL; /* Lazy class loading functions */ static GENERATE_GET_CLASS_WITH_CACHE (app_context, "System", "AppContext"); MonoClass* mono_class_get_appdomain_class (void) { return mono_defaults.object_class; } void mono_install_runtime_load (MonoLoadFunc func) { load_function = func; } MonoDomain* mono_runtime_load (const char *filename, const char *runtime_version) { g_assert (load_function); return load_function (filename, runtime_version); } /** * mono_runtime_set_no_exec: * * Instructs the runtime to operate in static mode, i.e. avoid/do not * allow managed code execution. This is useful for running the AOT * compiler on platforms which allow full-aot execution only. This * should be called before mono_runtime_init (). */ void mono_runtime_set_no_exec (gboolean val) { no_exec = val; } /** * mono_runtime_get_no_exec: * * If true, then the runtime will not allow managed code execution. */ gboolean mono_runtime_get_no_exec (void) { return no_exec; } static void create_domain_objects (MonoDomain *domain) { HANDLE_FUNCTION_ENTER (); ERROR_DECL (error); MonoStringHandle arg; MonoVTable *string_vt; MonoClassField *string_empty_fld; /* * Initialize String.Empty. This enables the removal of * the static cctor of the String class. */ string_vt = mono_class_vtable_checked (mono_defaults.string_class, error); mono_error_assert_ok (error); string_empty_fld = mono_class_get_field_from_name_full (mono_defaults.string_class, "Empty", NULL); g_assert (string_empty_fld); MonoStringHandle empty_str = mono_string_new_handle ("", error); mono_error_assert_ok (error); empty_str = mono_string_intern_checked (empty_str, error); mono_error_assert_ok (error); mono_field_static_set_value_internal (string_vt, string_empty_fld, MONO_HANDLE_RAW (empty_str)); domain->empty_string = MONO_HANDLE_RAW (empty_str); /* * Create an instance early since we can't do it when there is no memory. */ arg = mono_string_new_handle ("Out of memory", error); mono_error_assert_ok (error); domain->out_of_memory_ex = MONO_HANDLE_RAW (mono_exception_from_name_two_strings_checked (mono_defaults.corlib, "System", "OutOfMemoryException", arg, NULL_HANDLE_STRING, error)); mono_error_assert_ok (error); /* * These two are needed because the signal handlers might be executing on * an alternate stack, and Boehm GC can't handle that. */ arg = mono_string_new_handle ("A null value was found where an object instance was required", error); mono_error_assert_ok (error); domain->null_reference_ex = MONO_HANDLE_RAW (mono_exception_from_name_two_strings_checked (mono_defaults.corlib, "System", "NullReferenceException", arg, NULL_HANDLE_STRING, error)); mono_error_assert_ok (error); arg = mono_string_new_handle ("The requested operation caused a stack overflow.", error); mono_error_assert_ok (error); domain->stack_overflow_ex = MONO_HANDLE_RAW (mono_exception_from_name_two_strings_checked (mono_defaults.corlib, "System", "StackOverflowException", arg, NULL_HANDLE_STRING, error)); mono_error_assert_ok (error); /* The ephemeron tombstone */ domain->ephemeron_tombstone = MONO_HANDLE_RAW (mono_object_new_handle (mono_defaults.object_class, error)); mono_error_assert_ok (error); /* * This class is used during exception handling, so initialize it here, to prevent * stack overflows while handling stack overflows. */ mono_class_init_internal (mono_class_create_array (mono_defaults.int_class, 1)); HANDLE_FUNCTION_RETURN (); } /** * mono_runtime_init: * \param domain domain returned by \c mono_init * * Initialize the core AppDomain: this function will run also some * IL initialization code, so it needs the execution engine to be fully * operational. * * \c AppDomain.SetupInformation is set up in \c mono_runtime_exec_main, where * we know the \c entry_assembly. * */ void mono_runtime_init (MonoDomain *domain, MonoThreadStartCB start_cb, MonoThreadAttachCB attach_cb) { ERROR_DECL (error); mono_runtime_init_checked (domain, start_cb, attach_cb, error); mono_error_cleanup (error); } void mono_runtime_init_checked (MonoDomain *domain, MonoThreadStartCB start_cb, MonoThreadAttachCB attach_cb, MonoError *error) { HANDLE_FUNCTION_ENTER (); MonoAppDomainHandle ad; error_init (error); mono_gc_base_init (); mono_monitor_init (); mono_marshal_init (); mono_gc_init_icalls (); // We have to append here because otherwise this will run before the netcore hook (which is installed first), see https://github.com/dotnet/runtime/issues/34273 mono_install_assembly_preload_hook_v2 (mono_domain_assembly_preload, GUINT_TO_POINTER (FALSE), TRUE); mono_install_assembly_search_hook_v2 (mono_domain_assembly_search, GUINT_TO_POINTER (FALSE), FALSE, FALSE); mono_install_assembly_search_hook_v2 (mono_domain_assembly_postload_search, GUINT_TO_POINTER (FALSE), TRUE, FALSE); mono_install_assembly_load_hook_v2 (mono_domain_fire_assembly_load, NULL, FALSE); mono_thread_init (start_cb, attach_cb); if (!mono_runtime_get_no_exec ()) { MonoClass *klass; klass = mono_class_get_appdomain_class (); ad = MONO_HANDLE_CAST (MonoAppDomain, mono_object_new_pinned_handle (klass, error)); goto_if_nok (error, exit); domain->domain = MONO_HANDLE_RAW (ad); } mono_thread_internal_attach (domain); mono_component_diagnostics_server ()->init (); mono_component_event_pipe ()->add_rundown_execution_checkpoint ("RuntimeSuspend"); mono_component_diagnostics_server ()->pause_for_diagnostics_monitor (); mono_component_event_pipe ()->add_rundown_execution_checkpoint ("RuntimeResumed"); mono_component_event_pipe ()->write_event_ee_startup_start (); mono_type_initialization_init (); if (!mono_runtime_get_no_exec ()) create_domain_objects (domain); /* GC init has to happen after thread init */ mono_gc_init (); if (!mono_runtime_get_no_exec ()) mono_runtime_install_appctx_properties (); mono_locks_tracer_init (); /* mscorlib is loaded before we install the load hook */ mono_domain_fire_assembly_load (mono_alc_get_default (), mono_defaults.corlib->assembly, NULL, error); goto_if_nok (error, exit); exit: HANDLE_FUNCTION_RETURN (); } /** * mono_check_corlib_version: * Checks that the corlib that is loaded matches the version of this runtime. * \returns NULL if the runtime will work with the corlib, or a \c g_malloc * allocated string with the error otherwise. */ const char* mono_check_corlib_version (void) { const char* res; MONO_ENTER_GC_UNSAFE; res = mono_check_corlib_version_internal (); MONO_EXIT_GC_UNSAFE; return res; } static const char * mono_check_corlib_version_internal (void) { #if defined(MONO_CROSS_COMPILE) /* Can't read the corlib version because we only have the target class layouts */ return NULL; #else char *result = NULL; /* Check that the managed and unmanaged layout of MonoInternalThread matches */ guint32 native_offset; guint32 managed_offset; native_offset = (guint32) MONO_STRUCT_OFFSET (MonoInternalThread, last); managed_offset = mono_field_get_offset (mono_class_get_field_from_name_full (mono_defaults.internal_thread_class, "last", NULL)); if (native_offset != managed_offset) result = g_strdup_printf ("expected InternalThread.last field offset %u, found %u. See InternalThread.last comment", native_offset, managed_offset); return result; #endif } /** * mono_runtime_cleanup: * \param domain unused. * * Internal routine. * * This must not be called while there are still running threads executing * managed code. */ void mono_runtime_cleanup (MonoDomain *domain) { } static MonoDomainFunc quit_function = NULL; /** * mono_install_runtime_cleanup: */ void mono_install_runtime_cleanup (MonoDomainFunc func) { quit_function = func; } /** * mono_runtime_quit: */ void mono_runtime_quit (void) { MONO_STACKDATA (dummy); (void) mono_threads_enter_gc_unsafe_region_unbalanced_internal (&dummy); // after quit_function (in particular, mini_cleanup) everything is // cleaned up so MONO_EXIT_GC_UNSAFE can't work and doesn't make sense. mono_runtime_quit_internal (); } /** * mono_runtime_quit_internal: */ void mono_runtime_quit_internal (void) { MONO_REQ_GC_UNSAFE_MODE; // but note that when we return, we're not in GC Unsafe mode anymore. // After clean up threads don't _have_ a thread state anymore. if (quit_function != NULL) quit_function (mono_get_root_domain (), NULL); } /** * mono_domain_has_type_resolve: * \param domain application domain being looked up * * \returns TRUE if the \c AppDomain.TypeResolve field has been set. */ gboolean mono_domain_has_type_resolve (MonoDomain *domain) { // Check whether managed code is running, and if the managed AppDomain object doesn't exist neither does the event handler if (!domain->domain) return FALSE; return TRUE; } MonoReflectionAssemblyHandle mono_domain_try_type_resolve_name (MonoAssembly *assembly, MonoStringHandle name, MonoError *error) { MonoObjectHandle ret; MonoReflectionAssemblyHandle assembly_handle; HANDLE_FUNCTION_ENTER (); MONO_STATIC_POINTER_INIT (MonoMethod, method) static gboolean inited; // avoid repeatedly calling mono_class_get_method_from_name_checked if (!inited) { ERROR_DECL (local_error); MonoClass *alc_class = mono_class_get_assembly_load_context_class (); g_assert (alc_class); method = mono_class_get_method_from_name_checked (alc_class, "OnTypeResolve", -1, 0, local_error); mono_error_cleanup (local_error); inited = TRUE; } MONO_STATIC_POINTER_INIT_END (MonoMethod, method) if (!method) goto return_null; g_assert (MONO_HANDLE_BOOL (name)); if (mono_runtime_get_no_exec ()) goto return_null; if (assembly) { assembly_handle = mono_assembly_get_object_handle (assembly, error); goto_if_nok (error, return_null); } gpointer args [2]; args [0] = assembly ? MONO_HANDLE_RAW (assembly_handle) : NULL; args [1] = MONO_HANDLE_RAW (name); ret = mono_runtime_try_invoke_handle (method, NULL_HANDLE, args, error); goto_if_nok (error, return_null); goto exit; return_null: ret = NULL_HANDLE; exit: HANDLE_FUNCTION_RETURN_REF (MonoReflectionAssembly, MONO_HANDLE_CAST (MonoReflectionAssembly, ret)); } MonoAssembly* mono_try_assembly_resolve (MonoAssemblyLoadContext *alc, const char *fname_raw, MonoAssembly *requesting, MonoError *error) { HANDLE_FUNCTION_ENTER (); error_init (error); MonoAssembly *result = NULL; MonoStringHandle fname = mono_string_new_handle (fname_raw, error); goto_if_nok (error, leave); result = mono_try_assembly_resolve_handle (alc, fname, requesting, error); leave: HANDLE_FUNCTION_RETURN_VAL (result); } MonoAssembly* mono_try_assembly_resolve_handle (MonoAssemblyLoadContext *alc, MonoStringHandle fname, MonoAssembly *requesting, MonoError *error) { HANDLE_FUNCTION_ENTER (); MonoAssembly *ret = NULL; char *filename = NULL; if (mono_runtime_get_no_exec ()) goto leave; MONO_STATIC_POINTER_INIT (MonoMethod, method) ERROR_DECL (local_error); static gboolean inited; if (!inited) { MonoClass *alc_class = mono_class_get_assembly_load_context_class (); g_assert (alc_class); method = mono_class_get_method_from_name_checked (alc_class, "OnAssemblyResolve", -1, 0, local_error); inited = TRUE; } mono_error_cleanup (local_error); MONO_STATIC_POINTER_INIT_END (MonoMethod, method) if (!method) { ret = NULL; goto leave; } MonoReflectionAssemblyHandle requesting_handle; if (requesting) { requesting_handle = mono_assembly_get_object_handle (requesting, error); goto_if_nok (error, leave); } gpointer params [2]; params [0] = requesting ? MONO_HANDLE_RAW (requesting_handle) : NULL; params [1] = MONO_HANDLE_RAW (fname); MonoReflectionAssemblyHandle result; result = MONO_HANDLE_CAST (MonoReflectionAssembly, mono_runtime_try_invoke_handle (method, NULL_HANDLE, params, error)); goto_if_nok (error, leave); if (MONO_HANDLE_BOOL (result)) ret = MONO_HANDLE_GETVAL (result, assembly); leave: g_free (filename); HANDLE_FUNCTION_RETURN_VAL (ret); } MonoAssembly * mono_domain_assembly_postload_search (MonoAssemblyLoadContext *alc, MonoAssembly *requesting, MonoAssemblyName *aname, gboolean postload, gpointer user_data, MonoError *error_out) { ERROR_DECL (error); MonoAssembly *assembly; char *aname_str; aname_str = mono_stringify_assembly_name (aname); /* FIXME: We invoke managed code here, so there is a potential for deadlocks */ assembly = mono_try_assembly_resolve (alc, aname_str, requesting, error); g_free (aname_str); mono_error_cleanup (error); return assembly; } static void mono_domain_fire_assembly_load_event (MonoDomain *domain, MonoAssembly *assembly, MonoError *error) { HANDLE_FUNCTION_ENTER (); g_assert (domain); g_assert (assembly); MONO_STATIC_POINTER_INIT (MonoMethod, method) static gboolean inited; if (!inited) { ERROR_DECL (local_error); MonoClass *alc_class = mono_class_get_assembly_load_context_class (); g_assert (alc_class); method = mono_class_get_method_from_name_checked (alc_class, "OnAssemblyLoad", -1, 0, local_error); mono_error_cleanup (local_error); inited = TRUE; } MONO_STATIC_POINTER_INIT_END (MonoMethod, method) if (!method) goto exit; MonoReflectionAssemblyHandle assembly_handle; assembly_handle = mono_assembly_get_object_handle (assembly, error); goto_if_nok (error, exit); gpointer args [1]; args [0] = MONO_HANDLE_RAW (assembly_handle); mono_runtime_try_invoke_handle (method, NULL_HANDLE, args, error); exit: HANDLE_FUNCTION_RETURN (); } static void mono_domain_fire_assembly_load (MonoAssemblyLoadContext *alc, MonoAssembly *assembly, gpointer user_data, MonoError *error_out) { ERROR_DECL (error); MonoDomain *domain = mono_get_root_domain (); g_assert (assembly); g_assert (domain); mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_ASSEMBLY, "Loading assembly %s (%p) into domain %s (%p) and ALC %p", assembly->aname.name, assembly, domain->friendly_name, domain, alc); mono_alc_add_assembly (alc, assembly); if (!MONO_BOOL (domain->domain)) goto leave; // This can happen during startup if (!mono_runtime_get_no_exec () && !assembly->context.no_managed_load_event) mono_domain_fire_assembly_load_event (domain, assembly, error_out); leave: mono_error_cleanup (error); } static gboolean try_load_from (MonoAssembly **assembly, const gchar *path1, const gchar *path2, const gchar *path3, const gchar *path4, const MonoAssemblyOpenRequest *req) { gchar *fullpath; gboolean found = FALSE; *assembly = NULL; fullpath = g_build_filename (path1, path2, path3, path4, (const char*)NULL); found = g_file_test (fullpath, G_FILE_TEST_IS_REGULAR); if (found) { *assembly = mono_assembly_request_open (fullpath, req, NULL); } g_free (fullpath); return (*assembly != NULL); } static MonoAssembly * real_load (gchar **search_path, const gchar *culture, const gchar *name, const MonoAssemblyOpenRequest *req) { MonoAssembly *result = NULL; gchar **path; gchar *filename; const gchar *local_culture; gint len; if (!culture || *culture == '\0') { local_culture = ""; } else { local_culture = culture; } filename = g_strconcat (name, ".dll", (const char*)NULL); len = strlen (filename); for (path = search_path; *path; path++) { if (**path == '\0') { continue; /* Ignore empty ApplicationBase */ } /* See test cases in bug #58992 and bug #57710 */ /* 1st try: [culture]/[name].dll (culture may be empty) */ strcpy (filename + len - 4, ".dll"); if (try_load_from (&result, *path, local_culture, "", filename, req)) break; /* 2nd try: [culture]/[name].exe (culture may be empty) */ strcpy (filename + len - 4, ".exe"); if (try_load_from (&result, *path, local_culture, "", filename, req)) break; /* 3rd try: [culture]/[name]/[name].dll (culture may be empty) */ strcpy (filename + len - 4, ".dll"); if (try_load_from (&result, *path, local_culture, name, filename, req)) break; /* 4th try: [culture]/[name]/[name].exe (culture may be empty) */ strcpy (filename + len - 4, ".exe"); if (try_load_from (&result, *path, local_culture, name, filename, req)) break; } g_free (filename); return result; } static char * get_app_context_base_directory (MonoError *error) { MONO_STATIC_POINTER_INIT (MonoMethod, get_basedir) ERROR_DECL (local_error); MonoClass *app_context = mono_class_get_app_context_class (); g_assert (app_context); get_basedir = mono_class_get_method_from_name_checked (app_context, "get_BaseDirectory", -1, 0, local_error); mono_error_assert_ok (local_error); MONO_STATIC_POINTER_INIT_END (MonoMethod, get_basedir) HANDLE_FUNCTION_ENTER (); MonoStringHandle result = MONO_HANDLE_CAST (MonoString, mono_runtime_try_invoke_handle (get_basedir, NULL_HANDLE, NULL, error)); char *base_dir = mono_string_handle_to_utf8 (result, error); HANDLE_FUNCTION_RETURN_VAL (base_dir); } /* * Try loading the assembly from ApplicationBase and PrivateBinPath * and then from assemblies_path if any. * LOCKING: This is called from the assembly loading code, which means the caller * might hold the loader lock. Thus, this function must not acquire the domain lock. */ static MonoAssembly * mono_domain_assembly_preload (MonoAssemblyLoadContext *alc, MonoAssemblyName *aname, gchar **assemblies_path, gpointer user_data, MonoError *error) { MonoAssembly *result = NULL; g_assert (alc); MonoAssemblyCandidatePredicate predicate = NULL; void* predicate_ud = NULL; if (mono_loader_get_strict_assembly_name_check ()) { predicate = &mono_assembly_candidate_predicate_sn_same_name; predicate_ud = aname; } MonoAssemblyOpenRequest req; mono_assembly_request_prepare_open (&req, alc); req.request.predicate = predicate; req.request.predicate_ud = predicate_ud; if (!mono_runtime_get_no_exec ()) { char *search_path [2]; search_path [1] = NULL; char *base_dir = get_app_context_base_directory (error); search_path [0] = base_dir; mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_ASSEMBLY, "ApplicationBase is %s", base_dir); result = real_load (search_path, aname->culture, aname->name, &req); g_free (base_dir); } if (result == NULL && assemblies_path && assemblies_path [0] != NULL) { result = real_load (assemblies_path, aname->culture, aname->name, &req); } return result; } /* * Check whenever a given assembly was already loaded in the current appdomain. */ static MonoAssembly * mono_domain_assembly_search (MonoAssemblyLoadContext *alc, MonoAssembly *requesting, MonoAssemblyName *aname, gboolean postload, gpointer user_data, MonoError *error) { g_assert (aname != NULL); return mono_alc_find_assembly (alc, aname); } MonoReflectionAssemblyHandle ves_icall_System_Reflection_Assembly_InternalLoad (MonoStringHandle name_handle, MonoStackCrawlMark *stack_mark, gpointer load_Context, MonoError *error) { error_init (error); MonoAssembly *ass = NULL; MonoAssemblyName aname; MonoAssemblyByNameRequest req; MonoImageOpenStatus status = MONO_IMAGE_OK; gboolean parsed; char *name; MonoAssembly *requesting_assembly = mono_runtime_get_caller_from_stack_mark (stack_mark); MonoAssemblyLoadContext *alc = (MonoAssemblyLoadContext *)load_Context; #if HOST_WASI // On WASI, mono_assembly_get_alc isn't yet supported. However it should be possible to make it work. if (!alc) alc = mono_alc_get_default (); #endif if (!alc) alc = mono_assembly_get_alc (requesting_assembly); if (!alc) g_assert_not_reached (); g_assert (alc); mono_assembly_request_prepare_byname (&req, alc); req.basedir = NULL; /* Everything currently goes through this function, and the postload hook (aka the AppDomain.AssemblyResolve event) * is triggered under some scenarios. It's not completely obvious to me in what situations (if any) this should be disabled, * other than for corlib satellite assemblies (which I've dealt with further down the call stack). */ //req.no_postload_search = TRUE; req.requesting_assembly = requesting_assembly; name = mono_string_handle_to_utf8 (name_handle, error); goto_if_nok (error, fail); parsed = mono_assembly_name_parse (name, &aname); g_free (name); if (!parsed) goto fail; MonoAssemblyCandidatePredicate predicate; void* predicate_ud; predicate = NULL; predicate_ud = NULL; if (mono_loader_get_strict_assembly_name_check ()) { predicate = &mono_assembly_candidate_predicate_sn_same_name; predicate_ud = &aname; } req.request.predicate = predicate; req.request.predicate_ud = predicate_ud; ass = mono_assembly_request_byname (&aname, &req, &status); if (!ass) goto fail; MonoReflectionAssemblyHandle refass; refass = mono_assembly_get_object_handle (ass, error); goto_if_nok (error, fail); return refass; fail: return MONO_HANDLE_CAST (MonoReflectionAssembly, NULL_HANDLE); } /* Remember properties so they can be be installed in AppContext during runtime init */ void mono_runtime_register_appctx_properties (int nprops, const char **keys, const char **values) { n_appctx_props = nprops; appctx_keys = g_new0 (char *, n_appctx_props); appctx_values = g_new0 (char *, n_appctx_props); for (int i = 0; i < nprops; ++i) { appctx_keys [i] = g_strdup (keys [i]); appctx_values [i] = g_strdup (values [i]); } } void mono_runtime_register_runtimeconfig_json_properties (MonovmRuntimeConfigArguments *arg, MonovmRuntimeConfigArgumentsCleanup cleanup_fn, void *user_data) { runtime_config_arg = arg; runtime_config_cleanup_fn = cleanup_fn; runtime_config_user_data = user_data; } static GENERATE_GET_CLASS_WITH_CACHE (appctx, "System", "AppContext") /* Install properties into AppContext */ void mono_runtime_install_appctx_properties (void) { ERROR_DECL (error); gpointer args [3]; int n_runtimeconfig_json_props = 0; int n_combined_props; gunichar2 **combined_keys; gunichar2 **combined_values; MonoFileMap *runtimeconfig_json_map = NULL; gpointer runtimeconfig_json_map_handle = NULL; const char *buffer_start = runtimeconfig_json_get_buffer (runtime_config_arg, &runtimeconfig_json_map, &runtimeconfig_json_map_handle); const char *buffer = buffer_start; MonoMethod *setup = mono_class_get_method_from_name_checked (mono_class_get_appctx_class (), "Setup", 3, 0, error); g_assert (setup); // FIXME: TRUSTED_PLATFORM_ASSEMBLIES is very large // Combine and convert properties if (buffer) n_runtimeconfig_json_props = mono_metadata_decode_value (buffer, &buffer); n_combined_props = n_appctx_props + n_runtimeconfig_json_props; combined_keys = g_new0 (gunichar2 *, n_combined_props); combined_values = g_new0 (gunichar2 *, n_combined_props); for (int i = 0; i < n_appctx_props; ++i) { combined_keys [i] = g_utf8_to_utf16 (appctx_keys [i], -1, NULL, NULL, NULL); combined_values [i] = g_utf8_to_utf16 (appctx_values [i], -1, NULL, NULL, NULL); } runtimeconfig_json_read_props (buffer, &buffer, n_runtimeconfig_json_props, combined_keys + n_appctx_props, combined_values + n_appctx_props); /* internal static unsafe void Setup(char** pNames, char** pValues, int count) */ args [0] = combined_keys; args [1] = combined_values; args [2] = &n_combined_props; mono_runtime_invoke_checked (setup, NULL, args, error); mono_error_assert_ok (error); if (runtimeconfig_json_map != NULL) { mono_file_unmap ((gpointer)buffer_start, runtimeconfig_json_map_handle); mono_file_map_close (runtimeconfig_json_map); } // Call user defined cleanup function if (runtime_config_cleanup_fn) (*runtime_config_cleanup_fn) (runtime_config_arg, runtime_config_user_data); /* No longer needed */ for (int i = 0; i < n_combined_props; ++i) { g_free (combined_keys [i]); g_free (combined_values [i]); } g_free (combined_keys); g_free (combined_values); for (int i = 0; i < n_appctx_props; ++i) { g_free (appctx_keys [i]); g_free (appctx_values [i]); } g_free (appctx_keys); g_free (appctx_values); appctx_keys = NULL; appctx_values = NULL; if (runtime_config_arg) { runtime_config_arg = NULL; runtime_config_cleanup_fn = NULL; runtime_config_user_data = NULL; } } static const char * runtimeconfig_json_get_buffer (MonovmRuntimeConfigArguments *arg, MonoFileMap **file_map, gpointer *buf_handle) { if (arg != NULL) { switch (arg->kind) { case 0: { char *buffer = NULL; guint64 file_len = 0; *file_map = mono_file_map_open (arg->runtimeconfig.name.path); g_assert (*file_map); file_len = mono_file_map_size (*file_map); g_assert (file_len > 0); buffer = (char *)mono_file_map (file_len, MONO_MMAP_READ|MONO_MMAP_PRIVATE, mono_file_map_fd (*file_map), 0, buf_handle); g_assert (buffer); return buffer; } case 1: { *file_map = NULL; *buf_handle = NULL; return arg->runtimeconfig.data.data; } default: g_assert_not_reached (); } } *file_map = NULL; *buf_handle = NULL; return NULL; } static void runtimeconfig_json_read_props (const char *ptr, const char **endp, int nprops, gunichar2 **dest_keys, gunichar2 **dest_values) { for (int i = 0; i < nprops; ++i) { int str_len; str_len = mono_metadata_decode_value (ptr, &ptr); dest_keys [i] = g_utf8_to_utf16 (ptr, str_len, NULL, NULL, NULL); ptr += str_len; str_len = mono_metadata_decode_value (ptr, &ptr); dest_values [i] = g_utf8_to_utf16 (ptr, str_len, NULL, NULL, NULL); ptr += str_len; } *endp = ptr; } void mono_security_enable_core_clr () { // no-op } void mono_security_set_core_clr_platform_callback (MonoCoreClrPlatformCB callback) { // no-op }
/** * \file * AppDomain functions * * Authors: * Dietmar Maurer (dietmar@ximian.com) * Patrik Torstensson * Gonzalo Paniagua Javier (gonzalo@ximian.com) * * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * Copyright 2012 Xamarin Inc * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include <config.h> #include <glib.h> #include <string.h> #include <errno.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_UTIME_H #include <utime.h> #else #ifdef HAVE_SYS_UTIME_H #include <sys/utime.h> #endif #endif #include <mono/metadata/gc-internals.h> #include <mono/metadata/object.h> #include <mono/metadata/appdomain-icalls.h> #include <mono/metadata/class-init.h> #include <mono/metadata/domain-internals.h> #include "mono/metadata/metadata-internals.h" #include <mono/metadata/assembly-internals.h> #include <mono/metadata/exception.h> #include <mono/metadata/exception-internals.h> #include <mono/metadata/threads.h> #include <mono/metadata/tabledefs.h> #include <mono/metadata/mono-gc.h> #include <mono/metadata/mono-hash-internals.h> #include <mono/metadata/marshal.h> #include <mono/metadata/marshal-internals.h> #include <mono/metadata/monitor.h> #include <mono/metadata/w32file.h> #include <mono/metadata/lock-tracer.h> #include <mono/metadata/threads-types.h> #include <mono/metadata/tokentype.h> #include <mono/metadata/profiler-private.h> #include <mono/metadata/reflection-internals.h> #include <mono/metadata/abi-details.h> #include <mono/utils/mono-uri.h> #include <mono/utils/mono-logger-internals.h> #include <mono/utils/mono-path.h> #include <mono/utils/mono-stdlib.h> #include <mono/utils/mono-error-internals.h> #include <mono/utils/atomic.h> #include <mono/utils/mono-memory-model.h> #include <mono/utils/mono-threads.h> #include <mono/metadata/w32handle.h> #include <mono/metadata/w32error.h> #include <mono/utils/w32api.h> #include <mono/metadata/components.h> #ifdef HOST_WIN32 #include <direct.h> #endif #include "object-internals.h" #include "icall-decl.h" static gboolean no_exec = FALSE; static int n_appctx_props; static char **appctx_keys; static char **appctx_values; static MonovmRuntimeConfigArguments *runtime_config_arg; static MonovmRuntimeConfigArgumentsCleanup runtime_config_cleanup_fn; static gpointer runtime_config_user_data; static const char * mono_check_corlib_version_internal (void); static MonoAssembly * mono_domain_assembly_preload (MonoAssemblyLoadContext *alc, MonoAssemblyName *aname, gchar **assemblies_path, gpointer user_data, MonoError *error); static MonoAssembly * mono_domain_assembly_search (MonoAssemblyLoadContext *alc, MonoAssembly *requesting, MonoAssemblyName *aname, gboolean postload, gpointer user_data, MonoError *error); static void mono_domain_fire_assembly_load (MonoAssemblyLoadContext *alc, MonoAssembly *assembly, gpointer user_data, MonoError *error_out); static const char * runtimeconfig_json_get_buffer (MonovmRuntimeConfigArguments *arg, MonoFileMap **file_map, gpointer *buf_handle); static void runtimeconfig_json_read_props (const char *ptr, const char **endp, int nprops, gunichar2 **dest_keys, gunichar2 **dest_values); static MonoLoadFunc load_function = NULL; /* Lazy class loading functions */ static GENERATE_GET_CLASS_WITH_CACHE (app_context, "System", "AppContext"); MonoClass* mono_class_get_appdomain_class (void) { return mono_defaults.object_class; } void mono_install_runtime_load (MonoLoadFunc func) { load_function = func; } MonoDomain* mono_runtime_load (const char *filename, const char *runtime_version) { g_assert (load_function); return load_function (filename, runtime_version); } /** * mono_runtime_set_no_exec: * * Instructs the runtime to operate in static mode, i.e. avoid/do not * allow managed code execution. This is useful for running the AOT * compiler on platforms which allow full-aot execution only. This * should be called before mono_runtime_init (). */ void mono_runtime_set_no_exec (gboolean val) { no_exec = val; } /** * mono_runtime_get_no_exec: * * If true, then the runtime will not allow managed code execution. */ gboolean mono_runtime_get_no_exec (void) { return no_exec; } static void create_domain_objects (MonoDomain *domain) { HANDLE_FUNCTION_ENTER (); ERROR_DECL (error); MonoStringHandle arg; MonoVTable *string_vt; MonoClassField *string_empty_fld; /* * Initialize String.Empty. This enables the removal of * the static cctor of the String class. */ string_vt = mono_class_vtable_checked (mono_defaults.string_class, error); mono_error_assert_ok (error); string_empty_fld = mono_class_get_field_from_name_full (mono_defaults.string_class, "Empty", NULL); g_assert (string_empty_fld); MonoStringHandle empty_str = mono_string_new_handle ("", error); mono_error_assert_ok (error); empty_str = mono_string_intern_checked (empty_str, error); mono_error_assert_ok (error); mono_field_static_set_value_internal (string_vt, string_empty_fld, MONO_HANDLE_RAW (empty_str)); domain->empty_string = MONO_HANDLE_RAW (empty_str); /* * Create an instance early since we can't do it when there is no memory. */ arg = mono_string_new_handle ("Out of memory", error); mono_error_assert_ok (error); domain->out_of_memory_ex = MONO_HANDLE_RAW (mono_exception_from_name_two_strings_checked (mono_defaults.corlib, "System", "OutOfMemoryException", arg, NULL_HANDLE_STRING, error)); mono_error_assert_ok (error); /* * These two are needed because the signal handlers might be executing on * an alternate stack, and Boehm GC can't handle that. */ arg = mono_string_new_handle ("A null value was found where an object instance was required", error); mono_error_assert_ok (error); domain->null_reference_ex = MONO_HANDLE_RAW (mono_exception_from_name_two_strings_checked (mono_defaults.corlib, "System", "NullReferenceException", arg, NULL_HANDLE_STRING, error)); mono_error_assert_ok (error); arg = mono_string_new_handle ("The requested operation caused a stack overflow.", error); mono_error_assert_ok (error); domain->stack_overflow_ex = MONO_HANDLE_RAW (mono_exception_from_name_two_strings_checked (mono_defaults.corlib, "System", "StackOverflowException", arg, NULL_HANDLE_STRING, error)); mono_error_assert_ok (error); /* The ephemeron tombstone */ domain->ephemeron_tombstone = MONO_HANDLE_RAW (mono_object_new_handle (mono_defaults.object_class, error)); mono_error_assert_ok (error); /* * This class is used during exception handling, so initialize it here, to prevent * stack overflows while handling stack overflows. */ mono_class_init_internal (mono_class_create_array (mono_defaults.int_class, 1)); HANDLE_FUNCTION_RETURN (); } /** * mono_runtime_init: * \param domain domain returned by \c mono_init * * Initialize the core AppDomain: this function will run also some * IL initialization code, so it needs the execution engine to be fully * operational. * * \c AppDomain.SetupInformation is set up in \c mono_runtime_exec_main, where * we know the \c entry_assembly. * */ void mono_runtime_init (MonoDomain *domain, MonoThreadStartCB start_cb, MonoThreadAttachCB attach_cb) { ERROR_DECL (error); mono_runtime_init_checked (domain, start_cb, attach_cb, error); mono_error_cleanup (error); } void mono_runtime_init_checked (MonoDomain *domain, MonoThreadStartCB start_cb, MonoThreadAttachCB attach_cb, MonoError *error) { HANDLE_FUNCTION_ENTER (); MonoAppDomainHandle ad; error_init (error); mono_gc_base_init (); mono_monitor_init (); mono_marshal_init (); mono_gc_init_icalls (); // We have to append here because otherwise this will run before the netcore hook (which is installed first), see https://github.com/dotnet/runtime/issues/34273 mono_install_assembly_preload_hook_v2 (mono_domain_assembly_preload, GUINT_TO_POINTER (FALSE), TRUE); mono_install_assembly_search_hook_v2 (mono_domain_assembly_search, GUINT_TO_POINTER (FALSE), FALSE, FALSE); mono_install_assembly_search_hook_v2 (mono_domain_assembly_postload_search, GUINT_TO_POINTER (FALSE), TRUE, FALSE); mono_install_assembly_load_hook_v2 (mono_domain_fire_assembly_load, NULL, FALSE); mono_thread_init (start_cb, attach_cb); if (!mono_runtime_get_no_exec ()) { MonoClass *klass; klass = mono_class_get_appdomain_class (); ad = MONO_HANDLE_CAST (MonoAppDomain, mono_object_new_pinned_handle (klass, error)); goto_if_nok (error, exit); domain->domain = MONO_HANDLE_RAW (ad); } mono_thread_internal_attach (domain); mono_component_diagnostics_server ()->init (); mono_component_event_pipe ()->add_rundown_execution_checkpoint ("RuntimeSuspend"); mono_component_diagnostics_server ()->pause_for_diagnostics_monitor (); mono_component_event_pipe ()->add_rundown_execution_checkpoint ("RuntimeResumed"); mono_component_event_pipe ()->write_event_ee_startup_start (); mono_type_initialization_init (); if (!mono_runtime_get_no_exec ()) create_domain_objects (domain); /* GC init has to happen after thread init */ mono_gc_init (); if (!mono_runtime_get_no_exec ()) mono_runtime_install_appctx_properties (); mono_locks_tracer_init (); /* mscorlib is loaded before we install the load hook */ mono_domain_fire_assembly_load (mono_alc_get_default (), mono_defaults.corlib->assembly, NULL, error); goto_if_nok (error, exit); exit: HANDLE_FUNCTION_RETURN (); } /** * mono_check_corlib_version: * Checks that the corlib that is loaded matches the version of this runtime. * \returns NULL if the runtime will work with the corlib, or a \c g_malloc * allocated string with the error otherwise. */ const char* mono_check_corlib_version (void) { const char* res; MONO_ENTER_GC_UNSAFE; res = mono_check_corlib_version_internal (); MONO_EXIT_GC_UNSAFE; return res; } static const char * mono_check_corlib_version_internal (void) { #if defined(MONO_CROSS_COMPILE) /* Can't read the corlib version because we only have the target class layouts */ return NULL; #else char *result = NULL; /* Check that the managed and unmanaged layout of MonoInternalThread matches */ guint32 native_offset; guint32 managed_offset; native_offset = (guint32) MONO_STRUCT_OFFSET (MonoInternalThread, last); managed_offset = mono_field_get_offset (mono_class_get_field_from_name_full (mono_defaults.internal_thread_class, "last", NULL)); if (native_offset != managed_offset) result = g_strdup_printf ("expected InternalThread.last field offset %u, found %u. See InternalThread.last comment", native_offset, managed_offset); return result; #endif } /** * mono_runtime_cleanup: * \param domain unused. * * Internal routine. * * This must not be called while there are still running threads executing * managed code. */ void mono_runtime_cleanup (MonoDomain *domain) { } static MonoDomainFunc quit_function = NULL; /** * mono_install_runtime_cleanup: */ void mono_install_runtime_cleanup (MonoDomainFunc func) { quit_function = func; } /** * mono_runtime_quit: */ void mono_runtime_quit (void) { MONO_STACKDATA (dummy); (void) mono_threads_enter_gc_unsafe_region_unbalanced_internal (&dummy); // after quit_function (in particular, mini_cleanup) everything is // cleaned up so MONO_EXIT_GC_UNSAFE can't work and doesn't make sense. mono_runtime_quit_internal (); } /** * mono_runtime_quit_internal: */ void mono_runtime_quit_internal (void) { MONO_REQ_GC_UNSAFE_MODE; // but note that when we return, we're not in GC Unsafe mode anymore. // After clean up threads don't _have_ a thread state anymore. if (quit_function != NULL) quit_function (mono_get_root_domain (), NULL); } /** * mono_domain_has_type_resolve: * \param domain application domain being looked up * * \returns TRUE if the \c AppDomain.TypeResolve field has been set. */ gboolean mono_domain_has_type_resolve (MonoDomain *domain) { // Check whether managed code is running, and if the managed AppDomain object doesn't exist neither does the event handler if (!domain->domain) return FALSE; return TRUE; } MonoReflectionAssemblyHandle mono_domain_try_type_resolve_name (MonoAssembly *assembly, MonoStringHandle name, MonoError *error) { MonoObjectHandle ret; MonoReflectionAssemblyHandle assembly_handle; HANDLE_FUNCTION_ENTER (); MONO_STATIC_POINTER_INIT (MonoMethod, method) static gboolean inited; // avoid repeatedly calling mono_class_get_method_from_name_checked if (!inited) { ERROR_DECL (local_error); MonoClass *alc_class = mono_class_get_assembly_load_context_class (); g_assert (alc_class); method = mono_class_get_method_from_name_checked (alc_class, "OnTypeResolve", -1, 0, local_error); mono_error_cleanup (local_error); inited = TRUE; } MONO_STATIC_POINTER_INIT_END (MonoMethod, method) if (!method) goto return_null; g_assert (MONO_HANDLE_BOOL (name)); if (mono_runtime_get_no_exec ()) goto return_null; if (assembly) { assembly_handle = mono_assembly_get_object_handle (assembly, error); goto_if_nok (error, return_null); } gpointer args [2]; args [0] = assembly ? MONO_HANDLE_RAW (assembly_handle) : NULL; args [1] = MONO_HANDLE_RAW (name); ret = mono_runtime_try_invoke_handle (method, NULL_HANDLE, args, error); goto_if_nok (error, return_null); goto exit; return_null: ret = NULL_HANDLE; exit: HANDLE_FUNCTION_RETURN_REF (MonoReflectionAssembly, MONO_HANDLE_CAST (MonoReflectionAssembly, ret)); } MonoAssembly* mono_try_assembly_resolve (MonoAssemblyLoadContext *alc, const char *fname_raw, MonoAssembly *requesting, MonoError *error) { HANDLE_FUNCTION_ENTER (); error_init (error); MonoAssembly *result = NULL; MonoStringHandle fname = mono_string_new_handle (fname_raw, error); goto_if_nok (error, leave); result = mono_try_assembly_resolve_handle (alc, fname, requesting, error); leave: HANDLE_FUNCTION_RETURN_VAL (result); } MonoAssembly* mono_try_assembly_resolve_handle (MonoAssemblyLoadContext *alc, MonoStringHandle fname, MonoAssembly *requesting, MonoError *error) { HANDLE_FUNCTION_ENTER (); MonoAssembly *ret = NULL; char *filename = NULL; if (mono_runtime_get_no_exec ()) goto leave; MONO_STATIC_POINTER_INIT (MonoMethod, method) ERROR_DECL (local_error); static gboolean inited; if (!inited) { MonoClass *alc_class = mono_class_get_assembly_load_context_class (); g_assert (alc_class); method = mono_class_get_method_from_name_checked (alc_class, "OnAssemblyResolve", -1, 0, local_error); inited = TRUE; } mono_error_cleanup (local_error); MONO_STATIC_POINTER_INIT_END (MonoMethod, method) if (!method) { ret = NULL; goto leave; } MonoReflectionAssemblyHandle requesting_handle; if (requesting) { requesting_handle = mono_assembly_get_object_handle (requesting, error); goto_if_nok (error, leave); } gpointer params [2]; params [0] = requesting ? MONO_HANDLE_RAW (requesting_handle) : NULL; params [1] = MONO_HANDLE_RAW (fname); MonoReflectionAssemblyHandle result; result = MONO_HANDLE_CAST (MonoReflectionAssembly, mono_runtime_try_invoke_handle (method, NULL_HANDLE, params, error)); goto_if_nok (error, leave); if (MONO_HANDLE_BOOL (result)) ret = MONO_HANDLE_GETVAL (result, assembly); leave: g_free (filename); HANDLE_FUNCTION_RETURN_VAL (ret); } MonoAssembly * mono_domain_assembly_postload_search (MonoAssemblyLoadContext *alc, MonoAssembly *requesting, MonoAssemblyName *aname, gboolean postload, gpointer user_data, MonoError *error_out) { ERROR_DECL (error); MonoAssembly *assembly; char *aname_str; aname_str = mono_stringify_assembly_name (aname); /* FIXME: We invoke managed code here, so there is a potential for deadlocks */ assembly = mono_try_assembly_resolve (alc, aname_str, requesting, error); g_free (aname_str); mono_error_cleanup (error); return assembly; } static void mono_domain_fire_assembly_load_event (MonoDomain *domain, MonoAssembly *assembly, MonoError *error) { HANDLE_FUNCTION_ENTER (); g_assert (domain); g_assert (assembly); MONO_STATIC_POINTER_INIT (MonoMethod, method) static gboolean inited; if (!inited) { ERROR_DECL (local_error); MonoClass *alc_class = mono_class_get_assembly_load_context_class (); g_assert (alc_class); method = mono_class_get_method_from_name_checked (alc_class, "OnAssemblyLoad", -1, 0, local_error); mono_error_cleanup (local_error); inited = TRUE; } MONO_STATIC_POINTER_INIT_END (MonoMethod, method) if (!method) goto exit; MonoReflectionAssemblyHandle assembly_handle; assembly_handle = mono_assembly_get_object_handle (assembly, error); goto_if_nok (error, exit); gpointer args [1]; args [0] = MONO_HANDLE_RAW (assembly_handle); mono_runtime_try_invoke_handle (method, NULL_HANDLE, args, error); exit: HANDLE_FUNCTION_RETURN (); } static void mono_domain_fire_assembly_load (MonoAssemblyLoadContext *alc, MonoAssembly *assembly, gpointer user_data, MonoError *error_out) { ERROR_DECL (error); MonoDomain *domain = mono_get_root_domain (); g_assert (assembly); g_assert (domain); mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_ASSEMBLY, "Loading assembly %s (%p) into domain %s (%p) and ALC %p", assembly->aname.name, assembly, domain->friendly_name, domain, alc); mono_alc_add_assembly (alc, assembly); if (!MONO_BOOL (domain->domain)) goto leave; // This can happen during startup if (!mono_runtime_get_no_exec () && !assembly->context.no_managed_load_event) mono_domain_fire_assembly_load_event (domain, assembly, error_out); leave: mono_error_cleanup (error); } static gboolean try_load_from (MonoAssembly **assembly, const gchar *path1, const gchar *path2, const gchar *path3, const gchar *path4, const MonoAssemblyOpenRequest *req) { gchar *fullpath; gboolean found = FALSE; *assembly = NULL; fullpath = g_build_filename (path1, path2, path3, path4, (const char*)NULL); found = g_file_test (fullpath, G_FILE_TEST_IS_REGULAR); if (found) { *assembly = mono_assembly_request_open (fullpath, req, NULL); } g_free (fullpath); return (*assembly != NULL); } static MonoAssembly * real_load (gchar **search_path, const gchar *culture, const gchar *name, const MonoAssemblyOpenRequest *req) { MonoAssembly *result = NULL; gchar **path; gchar *filename; const gchar *local_culture; gint len; if (!culture || *culture == '\0') { local_culture = ""; } else { local_culture = culture; } filename = g_strconcat (name, ".dll", (const char*)NULL); len = strlen (filename); for (path = search_path; *path; path++) { if (**path == '\0') { continue; /* Ignore empty ApplicationBase */ } /* See test cases in bug #58992 and bug #57710 */ /* 1st try: [culture]/[name].dll (culture may be empty) */ strcpy (filename + len - 4, ".dll"); if (try_load_from (&result, *path, local_culture, "", filename, req)) break; /* 2nd try: [culture]/[name].exe (culture may be empty) */ strcpy (filename + len - 4, ".exe"); if (try_load_from (&result, *path, local_culture, "", filename, req)) break; /* 3rd try: [culture]/[name]/[name].dll (culture may be empty) */ strcpy (filename + len - 4, ".dll"); if (try_load_from (&result, *path, local_culture, name, filename, req)) break; /* 4th try: [culture]/[name]/[name].exe (culture may be empty) */ strcpy (filename + len - 4, ".exe"); if (try_load_from (&result, *path, local_culture, name, filename, req)) break; } g_free (filename); return result; } static char * get_app_context_base_directory (MonoError *error) { MONO_STATIC_POINTER_INIT (MonoMethod, get_basedir) ERROR_DECL (local_error); MonoClass *app_context = mono_class_get_app_context_class (); g_assert (app_context); get_basedir = mono_class_get_method_from_name_checked (app_context, "get_BaseDirectory", -1, 0, local_error); mono_error_assert_ok (local_error); MONO_STATIC_POINTER_INIT_END (MonoMethod, get_basedir) HANDLE_FUNCTION_ENTER (); MonoStringHandle result = MONO_HANDLE_CAST (MonoString, mono_runtime_try_invoke_handle (get_basedir, NULL_HANDLE, NULL, error)); char *base_dir = mono_string_handle_to_utf8 (result, error); HANDLE_FUNCTION_RETURN_VAL (base_dir); } /* * Try loading the assembly from ApplicationBase and PrivateBinPath * and then from assemblies_path if any. * LOCKING: This is called from the assembly loading code, which means the caller * might hold the loader lock. Thus, this function must not acquire the domain lock. */ static MonoAssembly * mono_domain_assembly_preload (MonoAssemblyLoadContext *alc, MonoAssemblyName *aname, gchar **assemblies_path, gpointer user_data, MonoError *error) { MonoAssembly *result = NULL; g_assert (alc); MonoAssemblyCandidatePredicate predicate = NULL; void* predicate_ud = NULL; if (mono_loader_get_strict_assembly_name_check ()) { predicate = &mono_assembly_candidate_predicate_sn_same_name; predicate_ud = aname; } MonoAssemblyOpenRequest req; mono_assembly_request_prepare_open (&req, alc); req.request.predicate = predicate; req.request.predicate_ud = predicate_ud; if (!mono_runtime_get_no_exec ()) { char *search_path [2]; search_path [1] = NULL; char *base_dir = get_app_context_base_directory (error); search_path [0] = base_dir; mono_trace (G_LOG_LEVEL_DEBUG, MONO_TRACE_ASSEMBLY, "ApplicationBase is %s", base_dir); result = real_load (search_path, aname->culture, aname->name, &req); g_free (base_dir); } if (result == NULL && assemblies_path && assemblies_path [0] != NULL) { result = real_load (assemblies_path, aname->culture, aname->name, &req); } return result; } /* * Check whenever a given assembly was already loaded in the current appdomain. */ static MonoAssembly * mono_domain_assembly_search (MonoAssemblyLoadContext *alc, MonoAssembly *requesting, MonoAssemblyName *aname, gboolean postload, gpointer user_data, MonoError *error) { g_assert (aname != NULL); return mono_alc_find_assembly (alc, aname); } MonoReflectionAssemblyHandle ves_icall_System_Reflection_Assembly_InternalLoad (MonoStringHandle name_handle, MonoStackCrawlMark *stack_mark, gpointer load_Context, MonoError *error) { error_init (error); MonoAssembly *ass = NULL; MonoAssemblyName aname; MonoAssemblyByNameRequest req; MonoImageOpenStatus status = MONO_IMAGE_OK; gboolean parsed; char *name; MonoAssembly *requesting_assembly = mono_runtime_get_caller_from_stack_mark (stack_mark); MonoAssemblyLoadContext *alc = (MonoAssemblyLoadContext *)load_Context; #if HOST_WASI // On WASI, mono_assembly_get_alc isn't yet supported. However it should be possible to make it work. if (!alc) alc = mono_alc_get_default (); #endif if (!alc) alc = mono_assembly_get_alc (requesting_assembly); if (!alc) g_assert_not_reached (); g_assert (alc); mono_assembly_request_prepare_byname (&req, alc); req.basedir = NULL; /* Everything currently goes through this function, and the postload hook (aka the AppDomain.AssemblyResolve event) * is triggered under some scenarios. It's not completely obvious to me in what situations (if any) this should be disabled, * other than for corlib satellite assemblies (which I've dealt with further down the call stack). */ //req.no_postload_search = TRUE; req.requesting_assembly = requesting_assembly; name = mono_string_handle_to_utf8 (name_handle, error); goto_if_nok (error, fail); parsed = mono_assembly_name_parse (name, &aname); g_free (name); if (!parsed) goto fail; MonoAssemblyCandidatePredicate predicate; void* predicate_ud; predicate = NULL; predicate_ud = NULL; if (mono_loader_get_strict_assembly_name_check ()) { predicate = &mono_assembly_candidate_predicate_sn_same_name; predicate_ud = &aname; } req.request.predicate = predicate; req.request.predicate_ud = predicate_ud; ass = mono_assembly_request_byname (&aname, &req, &status); if (!ass) goto fail; MonoReflectionAssemblyHandle refass; refass = mono_assembly_get_object_handle (ass, error); goto_if_nok (error, fail); return refass; fail: return MONO_HANDLE_CAST (MonoReflectionAssembly, NULL_HANDLE); } /* Remember properties so they can be be installed in AppContext during runtime init */ void mono_runtime_register_appctx_properties (int nprops, const char **keys, const char **values) { n_appctx_props = nprops; appctx_keys = g_new0 (char *, n_appctx_props); appctx_values = g_new0 (char *, n_appctx_props); for (int i = 0; i < nprops; ++i) { appctx_keys [i] = g_strdup (keys [i]); appctx_values [i] = g_strdup (values [i]); } } void mono_runtime_register_runtimeconfig_json_properties (MonovmRuntimeConfigArguments *arg, MonovmRuntimeConfigArgumentsCleanup cleanup_fn, void *user_data) { runtime_config_arg = arg; runtime_config_cleanup_fn = cleanup_fn; runtime_config_user_data = user_data; } static GENERATE_GET_CLASS_WITH_CACHE (appctx, "System", "AppContext") /* Install properties into AppContext */ void mono_runtime_install_appctx_properties (void) { ERROR_DECL (error); gpointer args [3]; int n_runtimeconfig_json_props = 0; int n_combined_props; gunichar2 **combined_keys; gunichar2 **combined_values; MonoFileMap *runtimeconfig_json_map = NULL; gpointer runtimeconfig_json_map_handle = NULL; const char *buffer_start = runtimeconfig_json_get_buffer (runtime_config_arg, &runtimeconfig_json_map, &runtimeconfig_json_map_handle); const char *buffer = buffer_start; MonoMethod *setup = mono_class_get_method_from_name_checked (mono_class_get_appctx_class (), "Setup", 3, 0, error); g_assert (setup); // FIXME: TRUSTED_PLATFORM_ASSEMBLIES is very large // Combine and convert properties if (buffer) n_runtimeconfig_json_props = mono_metadata_decode_value (buffer, &buffer); n_combined_props = n_appctx_props + n_runtimeconfig_json_props; combined_keys = g_new0 (gunichar2 *, n_combined_props); combined_values = g_new0 (gunichar2 *, n_combined_props); for (int i = 0; i < n_appctx_props; ++i) { combined_keys [i] = g_utf8_to_utf16 (appctx_keys [i], -1, NULL, NULL, NULL); combined_values [i] = g_utf8_to_utf16 (appctx_values [i], -1, NULL, NULL, NULL); } runtimeconfig_json_read_props (buffer, &buffer, n_runtimeconfig_json_props, combined_keys + n_appctx_props, combined_values + n_appctx_props); /* internal static unsafe void Setup(char** pNames, char** pValues, int count) */ args [0] = combined_keys; args [1] = combined_values; args [2] = &n_combined_props; mono_runtime_invoke_checked (setup, NULL, args, error); mono_error_assert_ok (error); if (runtimeconfig_json_map != NULL) { mono_file_unmap ((gpointer)buffer_start, runtimeconfig_json_map_handle); mono_file_map_close (runtimeconfig_json_map); } // Call user defined cleanup function if (runtime_config_cleanup_fn) (*runtime_config_cleanup_fn) (runtime_config_arg, runtime_config_user_data); /* No longer needed */ for (int i = 0; i < n_combined_props; ++i) { g_free (combined_keys [i]); g_free (combined_values [i]); } g_free (combined_keys); g_free (combined_values); for (int i = 0; i < n_appctx_props; ++i) { g_free (appctx_keys [i]); g_free (appctx_values [i]); } g_free (appctx_keys); g_free (appctx_values); appctx_keys = NULL; appctx_values = NULL; if (runtime_config_arg) { runtime_config_arg = NULL; runtime_config_cleanup_fn = NULL; runtime_config_user_data = NULL; } } static const char * runtimeconfig_json_get_buffer (MonovmRuntimeConfigArguments *arg, MonoFileMap **file_map, gpointer *buf_handle) { if (arg != NULL) { switch (arg->kind) { case 0: { char *buffer = NULL; guint64 file_len = 0; *file_map = mono_file_map_open (arg->runtimeconfig.name.path); g_assert (*file_map); file_len = mono_file_map_size (*file_map); g_assert (file_len > 0); buffer = (char *)mono_file_map (file_len, MONO_MMAP_READ|MONO_MMAP_PRIVATE, mono_file_map_fd (*file_map), 0, buf_handle); g_assert (buffer); return buffer; } case 1: { *file_map = NULL; *buf_handle = NULL; return arg->runtimeconfig.data.data; } default: g_assert_not_reached (); } } *file_map = NULL; *buf_handle = NULL; return NULL; } static void runtimeconfig_json_read_props (const char *ptr, const char **endp, int nprops, gunichar2 **dest_keys, gunichar2 **dest_values) { for (int i = 0; i < nprops; ++i) { int str_len; str_len = mono_metadata_decode_value (ptr, &ptr); dest_keys [i] = g_utf8_to_utf16 (ptr, str_len, NULL, NULL, NULL); ptr += str_len; str_len = mono_metadata_decode_value (ptr, &ptr); dest_values [i] = g_utf8_to_utf16 (ptr, str_len, NULL, NULL, NULL); ptr += str_len; } *endp = ptr; } void mono_security_enable_core_clr () { // no-op } void mono_security_set_core_clr_platform_callback (MonoCoreClrPlatformCB callback) { // no-op }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/Microsoft.Extensions.FileSystemGlobbing/tests/TestUtility/MockRecursivePathSegment.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Microsoft.Extensions.FileSystemGlobbing.Internal; namespace Microsoft.Extensions.FileSystemGlobbing.Tests.PatternContexts { internal class MockRecursivePathSegment : IPathSegment { public bool CanProduceStem { get { return false; } } public bool Match(string value) { return false; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Microsoft.Extensions.FileSystemGlobbing.Internal; namespace Microsoft.Extensions.FileSystemGlobbing.Tests.PatternContexts { internal class MockRecursivePathSegment : IPathSegment { public bool CanProduceStem { get { return false; } } public bool Match(string value) { return false; } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Speech/src/Internal/SrgsParser/SrgsDocumentParser.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.ObjectModel; using System.Speech.Recognition; using System.Speech.Recognition.SrgsGrammar; namespace System.Speech.Internal.SrgsParser { internal class SrgsDocumentParser : ISrgsParser { #region Constructors internal SrgsDocumentParser(SrgsGrammar grammar) { _grammar = grammar; } #endregion #region Internal Methods // Initializes the object from a stream containing SRGS in XML public void Parse() { try { ProcessGrammarElement(_grammar, _parser.Grammar); } catch { // clear all the rules _parser.RemoveAllRules(); throw; } } #endregion #region Internal Properties public IElementFactory ElementFactory { set { _parser = value; } } #endregion #region Private Methods /// <summary> /// Process the top level grammar element /// </summary> private void ProcessGrammarElement(SrgsGrammar source, IGrammar grammar) { grammar.Culture = source.Culture; grammar.Mode = source.Mode; if (source.Root != null) { grammar.Root = source.Root.Id; } grammar.TagFormat = source.TagFormat; grammar.XmlBase = source.XmlBase; grammar.GlobalTags = source.GlobalTags; grammar.PhoneticAlphabet = source.PhoneticAlphabet; // Process child elements. foreach (SrgsRule srgsRule in source.Rules) { IRule rule = ParseRule(grammar, srgsRule); rule.PostParse(grammar); } grammar.AssemblyReferences = source.AssemblyReferences; grammar.CodeBehind = source.CodeBehind; grammar.Debug = source.Debug; grammar.ImportNamespaces = source.ImportNamespaces; grammar.Language = source.Language == null ? "C#" : source.Language; grammar.Namespace = source.Namespace; // if add the content to the generic _scrip _parser.AddScript(grammar, source.Script, null, -1); // Finish all initialization - should check for the Root and the all // rules are defined grammar.PostParse(null); } /// <summary> /// Parse a rule /// </summary> private IRule ParseRule(IGrammar grammar, SrgsRule srgsRule) { string id = srgsRule.Id; bool hasScript = srgsRule.OnInit != null || srgsRule.OnParse != null || srgsRule.OnError != null || srgsRule.OnRecognition != null; IRule rule = grammar.CreateRule(id, srgsRule.Scope == SrgsRuleScope.Public ? RulePublic.True : RulePublic.False, srgsRule.Dynamic, hasScript); if (srgsRule.OnInit != null) { rule.CreateScript(grammar, id, srgsRule.OnInit, RuleMethodScript.onInit); } if (srgsRule.OnParse != null) { rule.CreateScript(grammar, id, srgsRule.OnParse, RuleMethodScript.onParse); } if (srgsRule.OnError != null) { rule.CreateScript(grammar, id, srgsRule.OnError, RuleMethodScript.onError); } if (srgsRule.OnRecognition != null) { rule.CreateScript(grammar, id, srgsRule.OnRecognition, RuleMethodScript.onRecognition); } // Add the code to the backend if (srgsRule.Script.Length > 0) { _parser.AddScript(grammar, id, srgsRule.Script); } rule.BaseClass = srgsRule.BaseClass; foreach (SrgsElement srgsElement in GetSortedTagElements(srgsRule.Elements)) { ProcessChildNodes(srgsElement, rule, rule); } return rule; } /// <summary> /// Parse a ruleref /// </summary> private IRuleRef ParseRuleRef(SrgsRuleRef srgsRuleRef, IElement parent) { IRuleRef ruleRef = null; bool fSpecialRuleRef = true; if (srgsRuleRef == SrgsRuleRef.Null) { ruleRef = _parser.Null; } else if (srgsRuleRef == SrgsRuleRef.Void) { ruleRef = _parser.Void; } else if (srgsRuleRef == SrgsRuleRef.Garbage) { ruleRef = _parser.Garbage; } else { ruleRef = _parser.CreateRuleRef(parent, srgsRuleRef.Uri, srgsRuleRef.SemanticKey, srgsRuleRef.Params); fSpecialRuleRef = false; } if (fSpecialRuleRef) { _parser.InitSpecialRuleRef(parent, ruleRef); } ruleRef.PostParse(parent); return ruleRef; } /// <summary> /// Parse a One-Of /// </summary> private IOneOf ParseOneOf(SrgsOneOf srgsOneOf, IElement parent, IRule rule) { IOneOf oneOf = _parser.CreateOneOf(parent, rule); // Process child elements. foreach (SrgsItem item in srgsOneOf.Items) { ProcessChildNodes(item, oneOf, rule); } oneOf.PostParse(parent); return oneOf; } /// <summary> /// Parse Item /// </summary> private IItem ParseItem(SrgsItem srgsItem, IElement parent, IRule rule) { IItem item = _parser.CreateItem(parent, rule, srgsItem.MinRepeat, srgsItem.MaxRepeat, srgsItem.RepeatProbability, srgsItem.Weight); // Process child elements. foreach (SrgsElement srgsElement in GetSortedTagElements(srgsItem.Elements)) { ProcessChildNodes(srgsElement, item, rule); } item.PostParse(parent); return item; } /// <summary> /// Parse Token /// </summary> private IToken ParseToken(SrgsToken srgsToken, IElement parent) { return _parser.CreateToken(parent, srgsToken.Text, srgsToken.Pronunciation, srgsToken.Display, -1); } /// <summary> /// Break the string into individual tokens and ParseToken() each individual token. /// /// Token string is a sequence of 0 or more white space delimited tokens. /// Tokens may also be delimited by double quotes. In these cases, the double /// quotes token must be surrounded by white space or string boundary. /// </summary> private void ParseText(IElement parent, string sChars, string pronunciation, string display, float reqConfidence) { System.Diagnostics.Debug.Assert((parent != null) && (!string.IsNullOrEmpty(sChars))); XmlParser.ParseText(parent, sChars, pronunciation, display, reqConfidence, new CreateTokenCallback(_parser.CreateToken)); } /// <summary> /// Parse tag /// </summary> private ISubset ParseSubset(SrgsSubset srgsSubset, IElement parent) { MatchMode matchMode = MatchMode.Subsequence; switch (srgsSubset.MatchingMode) { case SubsetMatchingMode.OrderedSubset: matchMode = MatchMode.OrderedSubset; break; case SubsetMatchingMode.OrderedSubsetContentRequired: matchMode = MatchMode.OrderedSubsetContentRequired; break; case SubsetMatchingMode.Subsequence: matchMode = MatchMode.Subsequence; break; case SubsetMatchingMode.SubsequenceContentRequired: matchMode = MatchMode.SubsequenceContentRequired; break; } return _parser.CreateSubset(parent, srgsSubset.Text, matchMode); } /// <summary> /// Parse tag /// </summary> private ISemanticTag ParseSemanticTag(SrgsSemanticInterpretationTag srgsTag, IElement parent) { ISemanticTag tag = _parser.CreateSemanticTag(parent); tag.Content(parent, srgsTag.Script, 0); tag.PostParse(parent); return tag; } /// <summary> /// ParseNameValueTag tag /// </summary> private IPropertyTag ParseNameValueTag(SrgsNameValueTag srgsTag, IElement parent) { IPropertyTag tag = _parser.CreatePropertyTag(parent); // Initialize the tag tag.NameValue(parent, srgsTag.Name, srgsTag.Value); // Since the tag are always pushed at the end of the element list, they can be committed right away tag.PostParse(parent); return tag; } /// <summary> /// Calls the appropriate Parsing function based on the element type /// </summary> private void ProcessChildNodes(SrgsElement srgsElement, IElement parent, IRule rule) { Type elementType = srgsElement.GetType(); IElement child = null; IRule parentRule = parent as IRule; IItem parentItem = parent as IItem; if (elementType == typeof(SrgsRuleRef)) { child = ParseRuleRef((SrgsRuleRef)srgsElement, parent); } else if (elementType == typeof(SrgsOneOf)) { child = ParseOneOf((SrgsOneOf)srgsElement, parent, rule); } else if (elementType == typeof(SrgsItem)) { child = ParseItem((SrgsItem)srgsElement, parent, rule); } else if (elementType == typeof(SrgsToken)) { child = ParseToken((SrgsToken)srgsElement, parent); } else if (elementType == typeof(SrgsNameValueTag)) { child = ParseNameValueTag((SrgsNameValueTag)srgsElement, parent); } else if (elementType == typeof(SrgsSemanticInterpretationTag)) { child = ParseSemanticTag((SrgsSemanticInterpretationTag)srgsElement, parent); } else if (elementType == typeof(SrgsSubset)) { child = ParseSubset((SrgsSubset)srgsElement, parent); } else if (elementType == typeof(SrgsText)) { SrgsText srgsText = (SrgsText)srgsElement; string content = srgsText.Text; // Create the SrgsElement for the text IElementText textChild = _parser.CreateText(parent, content); // Split it in pieces ParseText(parent, content, null, null, -1f); if (parentRule != null) { _parser.AddElement(parentRule, textChild); } else { if (parentItem != null) { _parser.AddElement(parentItem, textChild); } else { XmlParser.ThrowSrgsException(SRID.InvalidElement); } } } else { System.Diagnostics.Debug.Assert(false, "Unsupported Srgs element"); XmlParser.ThrowSrgsException(SRID.InvalidElement); } // if the parent is a one of, then the children must be an Item IOneOf parentOneOf = parent as IOneOf; if (parentOneOf != null) { IItem childItem = child as IItem; if (childItem != null) { _parser.AddItem(parentOneOf, childItem); } else { XmlParser.ThrowSrgsException(SRID.InvalidElement); } } else { if (parentRule != null) { _parser.AddElement(parentRule, child); } else { if (parentItem != null) { _parser.AddElement(parentItem, child); } else { XmlParser.ThrowSrgsException(SRID.InvalidElement); } } } } private IEnumerable<SrgsElement> GetSortedTagElements(Collection<SrgsElement> elements) { if (_grammar.TagFormat == SrgsTagFormat.KeyValuePairs) { List<SrgsElement> list = new(); foreach (SrgsElement element in elements) { if (!(element is SrgsNameValueTag)) { list.Add(element); } } foreach (SrgsElement element in elements) { if ((element is SrgsNameValueTag)) { list.Add(element); } } return list; } else { // Semantic Interpretation, the order for the tag element does not matter return elements; } } #endregion #region Private Fields private SrgsGrammar _grammar; private IElementFactory _parser; #endregion } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.ObjectModel; using System.Speech.Recognition; using System.Speech.Recognition.SrgsGrammar; namespace System.Speech.Internal.SrgsParser { internal class SrgsDocumentParser : ISrgsParser { #region Constructors internal SrgsDocumentParser(SrgsGrammar grammar) { _grammar = grammar; } #endregion #region Internal Methods // Initializes the object from a stream containing SRGS in XML public void Parse() { try { ProcessGrammarElement(_grammar, _parser.Grammar); } catch { // clear all the rules _parser.RemoveAllRules(); throw; } } #endregion #region Internal Properties public IElementFactory ElementFactory { set { _parser = value; } } #endregion #region Private Methods /// <summary> /// Process the top level grammar element /// </summary> private void ProcessGrammarElement(SrgsGrammar source, IGrammar grammar) { grammar.Culture = source.Culture; grammar.Mode = source.Mode; if (source.Root != null) { grammar.Root = source.Root.Id; } grammar.TagFormat = source.TagFormat; grammar.XmlBase = source.XmlBase; grammar.GlobalTags = source.GlobalTags; grammar.PhoneticAlphabet = source.PhoneticAlphabet; // Process child elements. foreach (SrgsRule srgsRule in source.Rules) { IRule rule = ParseRule(grammar, srgsRule); rule.PostParse(grammar); } grammar.AssemblyReferences = source.AssemblyReferences; grammar.CodeBehind = source.CodeBehind; grammar.Debug = source.Debug; grammar.ImportNamespaces = source.ImportNamespaces; grammar.Language = source.Language == null ? "C#" : source.Language; grammar.Namespace = source.Namespace; // if add the content to the generic _scrip _parser.AddScript(grammar, source.Script, null, -1); // Finish all initialization - should check for the Root and the all // rules are defined grammar.PostParse(null); } /// <summary> /// Parse a rule /// </summary> private IRule ParseRule(IGrammar grammar, SrgsRule srgsRule) { string id = srgsRule.Id; bool hasScript = srgsRule.OnInit != null || srgsRule.OnParse != null || srgsRule.OnError != null || srgsRule.OnRecognition != null; IRule rule = grammar.CreateRule(id, srgsRule.Scope == SrgsRuleScope.Public ? RulePublic.True : RulePublic.False, srgsRule.Dynamic, hasScript); if (srgsRule.OnInit != null) { rule.CreateScript(grammar, id, srgsRule.OnInit, RuleMethodScript.onInit); } if (srgsRule.OnParse != null) { rule.CreateScript(grammar, id, srgsRule.OnParse, RuleMethodScript.onParse); } if (srgsRule.OnError != null) { rule.CreateScript(grammar, id, srgsRule.OnError, RuleMethodScript.onError); } if (srgsRule.OnRecognition != null) { rule.CreateScript(grammar, id, srgsRule.OnRecognition, RuleMethodScript.onRecognition); } // Add the code to the backend if (srgsRule.Script.Length > 0) { _parser.AddScript(grammar, id, srgsRule.Script); } rule.BaseClass = srgsRule.BaseClass; foreach (SrgsElement srgsElement in GetSortedTagElements(srgsRule.Elements)) { ProcessChildNodes(srgsElement, rule, rule); } return rule; } /// <summary> /// Parse a ruleref /// </summary> private IRuleRef ParseRuleRef(SrgsRuleRef srgsRuleRef, IElement parent) { IRuleRef ruleRef = null; bool fSpecialRuleRef = true; if (srgsRuleRef == SrgsRuleRef.Null) { ruleRef = _parser.Null; } else if (srgsRuleRef == SrgsRuleRef.Void) { ruleRef = _parser.Void; } else if (srgsRuleRef == SrgsRuleRef.Garbage) { ruleRef = _parser.Garbage; } else { ruleRef = _parser.CreateRuleRef(parent, srgsRuleRef.Uri, srgsRuleRef.SemanticKey, srgsRuleRef.Params); fSpecialRuleRef = false; } if (fSpecialRuleRef) { _parser.InitSpecialRuleRef(parent, ruleRef); } ruleRef.PostParse(parent); return ruleRef; } /// <summary> /// Parse a One-Of /// </summary> private IOneOf ParseOneOf(SrgsOneOf srgsOneOf, IElement parent, IRule rule) { IOneOf oneOf = _parser.CreateOneOf(parent, rule); // Process child elements. foreach (SrgsItem item in srgsOneOf.Items) { ProcessChildNodes(item, oneOf, rule); } oneOf.PostParse(parent); return oneOf; } /// <summary> /// Parse Item /// </summary> private IItem ParseItem(SrgsItem srgsItem, IElement parent, IRule rule) { IItem item = _parser.CreateItem(parent, rule, srgsItem.MinRepeat, srgsItem.MaxRepeat, srgsItem.RepeatProbability, srgsItem.Weight); // Process child elements. foreach (SrgsElement srgsElement in GetSortedTagElements(srgsItem.Elements)) { ProcessChildNodes(srgsElement, item, rule); } item.PostParse(parent); return item; } /// <summary> /// Parse Token /// </summary> private IToken ParseToken(SrgsToken srgsToken, IElement parent) { return _parser.CreateToken(parent, srgsToken.Text, srgsToken.Pronunciation, srgsToken.Display, -1); } /// <summary> /// Break the string into individual tokens and ParseToken() each individual token. /// /// Token string is a sequence of 0 or more white space delimited tokens. /// Tokens may also be delimited by double quotes. In these cases, the double /// quotes token must be surrounded by white space or string boundary. /// </summary> private void ParseText(IElement parent, string sChars, string pronunciation, string display, float reqConfidence) { System.Diagnostics.Debug.Assert((parent != null) && (!string.IsNullOrEmpty(sChars))); XmlParser.ParseText(parent, sChars, pronunciation, display, reqConfidence, new CreateTokenCallback(_parser.CreateToken)); } /// <summary> /// Parse tag /// </summary> private ISubset ParseSubset(SrgsSubset srgsSubset, IElement parent) { MatchMode matchMode = MatchMode.Subsequence; switch (srgsSubset.MatchingMode) { case SubsetMatchingMode.OrderedSubset: matchMode = MatchMode.OrderedSubset; break; case SubsetMatchingMode.OrderedSubsetContentRequired: matchMode = MatchMode.OrderedSubsetContentRequired; break; case SubsetMatchingMode.Subsequence: matchMode = MatchMode.Subsequence; break; case SubsetMatchingMode.SubsequenceContentRequired: matchMode = MatchMode.SubsequenceContentRequired; break; } return _parser.CreateSubset(parent, srgsSubset.Text, matchMode); } /// <summary> /// Parse tag /// </summary> private ISemanticTag ParseSemanticTag(SrgsSemanticInterpretationTag srgsTag, IElement parent) { ISemanticTag tag = _parser.CreateSemanticTag(parent); tag.Content(parent, srgsTag.Script, 0); tag.PostParse(parent); return tag; } /// <summary> /// ParseNameValueTag tag /// </summary> private IPropertyTag ParseNameValueTag(SrgsNameValueTag srgsTag, IElement parent) { IPropertyTag tag = _parser.CreatePropertyTag(parent); // Initialize the tag tag.NameValue(parent, srgsTag.Name, srgsTag.Value); // Since the tag are always pushed at the end of the element list, they can be committed right away tag.PostParse(parent); return tag; } /// <summary> /// Calls the appropriate Parsing function based on the element type /// </summary> private void ProcessChildNodes(SrgsElement srgsElement, IElement parent, IRule rule) { Type elementType = srgsElement.GetType(); IElement child = null; IRule parentRule = parent as IRule; IItem parentItem = parent as IItem; if (elementType == typeof(SrgsRuleRef)) { child = ParseRuleRef((SrgsRuleRef)srgsElement, parent); } else if (elementType == typeof(SrgsOneOf)) { child = ParseOneOf((SrgsOneOf)srgsElement, parent, rule); } else if (elementType == typeof(SrgsItem)) { child = ParseItem((SrgsItem)srgsElement, parent, rule); } else if (elementType == typeof(SrgsToken)) { child = ParseToken((SrgsToken)srgsElement, parent); } else if (elementType == typeof(SrgsNameValueTag)) { child = ParseNameValueTag((SrgsNameValueTag)srgsElement, parent); } else if (elementType == typeof(SrgsSemanticInterpretationTag)) { child = ParseSemanticTag((SrgsSemanticInterpretationTag)srgsElement, parent); } else if (elementType == typeof(SrgsSubset)) { child = ParseSubset((SrgsSubset)srgsElement, parent); } else if (elementType == typeof(SrgsText)) { SrgsText srgsText = (SrgsText)srgsElement; string content = srgsText.Text; // Create the SrgsElement for the text IElementText textChild = _parser.CreateText(parent, content); // Split it in pieces ParseText(parent, content, null, null, -1f); if (parentRule != null) { _parser.AddElement(parentRule, textChild); } else { if (parentItem != null) { _parser.AddElement(parentItem, textChild); } else { XmlParser.ThrowSrgsException(SRID.InvalidElement); } } } else { System.Diagnostics.Debug.Assert(false, "Unsupported Srgs element"); XmlParser.ThrowSrgsException(SRID.InvalidElement); } // if the parent is a one of, then the children must be an Item IOneOf parentOneOf = parent as IOneOf; if (parentOneOf != null) { IItem childItem = child as IItem; if (childItem != null) { _parser.AddItem(parentOneOf, childItem); } else { XmlParser.ThrowSrgsException(SRID.InvalidElement); } } else { if (parentRule != null) { _parser.AddElement(parentRule, child); } else { if (parentItem != null) { _parser.AddElement(parentItem, child); } else { XmlParser.ThrowSrgsException(SRID.InvalidElement); } } } } private IEnumerable<SrgsElement> GetSortedTagElements(Collection<SrgsElement> elements) { if (_grammar.TagFormat == SrgsTagFormat.KeyValuePairs) { List<SrgsElement> list = new(); foreach (SrgsElement element in elements) { if (!(element is SrgsNameValueTag)) { list.Add(element); } } foreach (SrgsElement element in elements) { if ((element is SrgsNameValueTag)) { list.Add(element); } } return list; } else { // Semantic Interpretation, the order for the tag element does not matter return elements; } } #endregion #region Private Fields private SrgsGrammar _grammar; private IElementFactory _parser; #endregion } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/HardwareIntrinsics/Arm/AdvSimd/ReverseElement8.Vector64.UInt32.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void ReverseElement8_Vector64_UInt32() { var test = new SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(UInt32[] inArray1, UInt32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt32>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<UInt32> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32 testClass) { var result = AdvSimd.ReverseElement8(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32 testClass) { fixed (Vector64<UInt32>* pFld1 = &_fld1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<UInt32>>() / sizeof(UInt32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static Vector64<UInt32> _clsVar1; private Vector64<UInt32> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); } public SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new DataTable(_data1, new UInt32[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.ReverseElement8( Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray1Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ReverseElement8), new Type[] { typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ReverseElement8), new Type[] { typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.ReverseElement8( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<UInt32>* pClsVar1 = &_clsVar1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pClsVar1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray1Ptr); var result = AdvSimd.ReverseElement8(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)); var result = AdvSimd.ReverseElement8(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32(); var result = AdvSimd.ReverseElement8(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32(); fixed (Vector64<UInt32>* pFld1 = &test._fld1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.ReverseElement8(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<UInt32>* pFld1 = &_fld1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.ReverseElement8(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(&test._fld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<UInt32> op1, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(UInt32[] firstOp, UInt32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.ReverseElement8(firstOp[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.ReverseElement8)}<UInt32>(Vector64<UInt32>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics.Arm\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.Arm; namespace JIT.HardwareIntrinsics.Arm { public static partial class Program { private static void ReverseElement8_Vector64_UInt32() { var test = new SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); } // Validates passing a static member works test.RunClsVarScenario(); if (AdvSimd.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (AdvSimd.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (AdvSimd.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (AdvSimd.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(UInt32[] inArray1, UInt32[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt32>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt32>(); if ((alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<UInt32> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32 testClass) { var result = AdvSimd.ReverseElement8(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32 testClass) { fixed (Vector64<UInt32>* pFld1 = &_fld1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<UInt32>>() / sizeof(UInt32); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static Vector64<UInt32> _clsVar1; private Vector64<UInt32> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); } public SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new DataTable(_data1, new UInt32[RetElementCount], LargestVectorSize); } public bool IsSupported => AdvSimd.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = AdvSimd.ReverseElement8( Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray1Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ReverseElement8), new Type[] { typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(AdvSimd).GetMethod(nameof(AdvSimd.ReverseElement8), new Type[] { typeof(Vector64<UInt32>) }) .Invoke(null, new object[] { AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt32>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = AdvSimd.ReverseElement8( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector64<UInt32>* pClsVar1 = &_clsVar1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pClsVar1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<UInt32>>(_dataTable.inArray1Ptr); var result = AdvSimd.ReverseElement8(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = AdvSimd.LoadVector64((UInt32*)(_dataTable.inArray1Ptr)); var result = AdvSimd.ReverseElement8(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32(); var result = AdvSimd.ReverseElement8(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleUnaryOpTest__ReverseElement8_Vector64_UInt32(); fixed (Vector64<UInt32>* pFld1 = &test._fld1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = AdvSimd.ReverseElement8(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector64<UInt32>* pFld1 = &_fld1) { var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = AdvSimd.ReverseElement8(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = AdvSimd.ReverseElement8( AdvSimd.LoadVector64((UInt32*)(&test._fld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector64<UInt32> op1, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] outArray = new UInt32[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt32>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(UInt32[] firstOp, UInt32[] result, [CallerMemberName] string method = "") { bool succeeded = true; for (var i = 0; i < RetElementCount; i++) { if (Helpers.ReverseElement8(firstOp[i]) != result[i]) { succeeded = false; break; } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(AdvSimd)}.{nameof(AdvSimd.ReverseElement8)}<UInt32>(Vector64<UInt32>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/nativeaot/System.Private.Interop/src/Internal/Runtime/CompilerHelpers/LibraryInitializer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Internal.Runtime.Augments; namespace Internal.Runtime.CompilerHelpers { /// <summary> /// Container class to run specific class constructors in a defined order. Since we can't /// directly invoke class constructors in C#, they're renamed Initialize. /// </summary> public static class LibraryInitializer { public static void InitializeLibrary() { RuntimeAugments.InitializeInteropLookups(new RuntimeInteropData()); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Internal.Runtime.Augments; namespace Internal.Runtime.CompilerHelpers { /// <summary> /// Container class to run specific class constructors in a defined order. Since we can't /// directly invoke class constructors in C#, they're renamed Initialize. /// </summary> public static class LibraryInitializer { public static void InitializeLibrary() { RuntimeAugments.InitializeInteropLookups(new RuntimeInteropData()); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/pal/src/libunwind/src/ia64/Gregs.c
/* libunwind - a platform-independent unwind library Copyright (C) 2001-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "offsets.h" #include "regs.h" #include "unwind_i.h" static inline ia64_loc_t linux_scratch_loc (struct cursor *c, unw_regnum_t reg, uint8_t *nat_bitnr) { #if !defined(UNW_LOCAL_ONLY) || defined(__linux__) unw_word_t addr = c->sigcontext_addr, flags, tmp_addr; int i; if (ia64_get_abi_marker (c) == ABI_MARKER_LINUX_SIGTRAMP || ia64_get_abi_marker (c) == ABI_MARKER_OLD_LINUX_SIGTRAMP) { switch (reg) { case UNW_IA64_NAT + 2 ... UNW_IA64_NAT + 3: case UNW_IA64_NAT + 8 ... UNW_IA64_NAT + 31: /* Linux sigcontext contains the NaT bit of scratch register N in bit position N of the sc_nat member. */ *nat_bitnr = (reg - UNW_IA64_NAT); addr += LINUX_SC_NAT_OFF; break; case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3: case UNW_IA64_GR + 8 ... UNW_IA64_GR + 31: addr += LINUX_SC_GR_OFF + 8 * (reg - UNW_IA64_GR); break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 15: addr += LINUX_SC_FR_OFF + 16 * (reg - UNW_IA64_FR); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); case UNW_IA64_FR + 32 ... UNW_IA64_FR + 127: if (ia64_get (c, IA64_LOC_ADDR (addr + LINUX_SC_FLAGS_OFF, 0), &flags) < 0) return IA64_NULL_LOC; if (!(flags & IA64_SC_FLAG_FPH_VALID)) { /* initialize fph partition: */ tmp_addr = addr + LINUX_SC_FR_OFF + 32*16; for (i = 32; i < 128; ++i, tmp_addr += 16) if (ia64_putfp (c, IA64_LOC_ADDR (tmp_addr, 0), unw.read_only.f0) < 0) return IA64_NULL_LOC; /* mark fph partition as valid: */ if (ia64_put (c, IA64_LOC_ADDR (addr + LINUX_SC_FLAGS_OFF, 0), flags | IA64_SC_FLAG_FPH_VALID) < 0) return IA64_NULL_LOC; } addr += LINUX_SC_FR_OFF + 16 * (reg - UNW_IA64_FR); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); case UNW_IA64_BR + 0: addr += LINUX_SC_BR_OFF + 0; break; case UNW_IA64_BR + 6: addr += LINUX_SC_BR_OFF + 6*8; break; case UNW_IA64_BR + 7: addr += LINUX_SC_BR_OFF + 7*8; break; case UNW_IA64_AR_RSC: addr += LINUX_SC_AR_RSC_OFF; break; case UNW_IA64_AR_CSD: addr += LINUX_SC_AR_CSD_OFF; break; case UNW_IA64_AR_SSD: addr += LINUX_SC_AR_SSD_OFF; break; case UNW_IA64_AR_CCV: addr += LINUX_SC_AR_CCV; break; default: if (unw_is_fpreg (reg)) return IA64_FPREG_LOC (c, reg); else return IA64_REG_LOC (c, reg); } return IA64_LOC_ADDR (addr, 0); } else { int is_nat = 0; if ((unsigned) (reg - UNW_IA64_NAT) < 128) { is_nat = 1; reg -= (UNW_IA64_NAT - UNW_IA64_GR); } if (ia64_get_abi_marker (c) == ABI_MARKER_LINUX_INTERRUPT) { switch (reg) { case UNW_IA64_BR + 6 ... UNW_IA64_BR + 7: addr += LINUX_PT_B6_OFF + 8 * (reg - (UNW_IA64_BR + 6)); break; case UNW_IA64_AR_CSD: addr += LINUX_PT_CSD_OFF; break; case UNW_IA64_AR_SSD: addr += LINUX_PT_SSD_OFF; break; case UNW_IA64_GR + 8 ... UNW_IA64_GR + 11: addr += LINUX_PT_R8_OFF + 8 * (reg - (UNW_IA64_GR + 8)); break; case UNW_IA64_IP: addr += LINUX_PT_IIP_OFF; break; case UNW_IA64_CFM: addr += LINUX_PT_IFS_OFF; break; case UNW_IA64_AR_UNAT: addr += LINUX_PT_UNAT_OFF; break; case UNW_IA64_AR_PFS: addr += LINUX_PT_PFS_OFF; break; case UNW_IA64_AR_RSC: addr += LINUX_PT_RSC_OFF; break; case UNW_IA64_AR_RNAT: addr += LINUX_PT_RNAT_OFF; break; case UNW_IA64_AR_BSPSTORE: addr += LINUX_PT_BSPSTORE_OFF; break; case UNW_IA64_PR: addr += LINUX_PT_PR_OFF; break; case UNW_IA64_BR + 0: addr += LINUX_PT_B0_OFF; break; case UNW_IA64_GR + 1: /* The saved r1 value is valid only in the frame in which it was saved; for everything else we need to look up the appropriate gp value. */ if (c->sigcontext_addr != c->sp + 0x10) return IA64_NULL_LOC; addr += LINUX_PT_R1_OFF; break; case UNW_IA64_GR + 12: addr += LINUX_PT_R12_OFF; break; case UNW_IA64_GR + 13: addr += LINUX_PT_R13_OFF; break; case UNW_IA64_AR_FPSR: addr += LINUX_PT_FPSR_OFF; break; case UNW_IA64_GR + 15: addr += LINUX_PT_R15_OFF; break; case UNW_IA64_GR + 14: addr += LINUX_PT_R14_OFF; break; case UNW_IA64_GR + 2: addr += LINUX_PT_R2_OFF; break; case UNW_IA64_GR + 3: addr += LINUX_PT_R3_OFF; break; case UNW_IA64_GR + 16 ... UNW_IA64_GR + 31: addr += LINUX_PT_R16_OFF + 8 * (reg - (UNW_IA64_GR + 16)); break; case UNW_IA64_AR_CCV: addr += LINUX_PT_CCV_OFF; break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 11: addr += LINUX_PT_F6_OFF + 16 * (reg - (UNW_IA64_FR + 6)); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); default: if (unw_is_fpreg (reg)) return IA64_FPREG_LOC (c, reg); else return IA64_REG_LOC (c, reg); } } else if (ia64_get_abi_marker (c) == ABI_MARKER_OLD_LINUX_INTERRUPT) { switch (reg) { case UNW_IA64_GR + 1: /* The saved r1 value is valid only in the frame in which it was saved; for everything else we need to look up the appropriate gp value. */ if (c->sigcontext_addr != c->sp + 0x10) return IA64_NULL_LOC; addr += LINUX_OLD_PT_R1_OFF; break; case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3: addr += LINUX_OLD_PT_R2_OFF + 8 * (reg - (UNW_IA64_GR + 2)); break; case UNW_IA64_GR + 8 ... UNW_IA64_GR + 11: addr += LINUX_OLD_PT_R8_OFF + 8 * (reg - (UNW_IA64_GR + 8)); break; case UNW_IA64_GR + 16 ... UNW_IA64_GR + 31: addr += LINUX_OLD_PT_R16_OFF + 8 * (reg - (UNW_IA64_GR + 16)); break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 9: addr += LINUX_OLD_PT_F6_OFF + 16 * (reg - (UNW_IA64_FR + 6)); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); case UNW_IA64_BR + 0: addr += LINUX_OLD_PT_B0_OFF; break; case UNW_IA64_BR + 6: addr += LINUX_OLD_PT_B6_OFF; break; case UNW_IA64_BR + 7: addr += LINUX_OLD_PT_B7_OFF; break; case UNW_IA64_AR_RSC: addr += LINUX_OLD_PT_RSC_OFF; break; case UNW_IA64_AR_CCV: addr += LINUX_OLD_PT_CCV_OFF; break; default: if (unw_is_fpreg (reg)) return IA64_FPREG_LOC (c, reg); else return IA64_REG_LOC (c, reg); } } if (is_nat) { /* For Linux pt-regs structure, bit number is determined by the UNaT slot number (as determined by st8.spill) and the bits are saved wherever the (primary) UNaT was saved. */ *nat_bitnr = ia64_unat_slot_num (addr); return c->loc[IA64_REG_PRI_UNAT_MEM]; } return IA64_LOC_ADDR (addr, 0); } #endif return IA64_NULL_LOC; } static inline ia64_loc_t hpux_scratch_loc (struct cursor *c, unw_regnum_t reg, uint8_t *nat_bitnr) { #if !defined(UNW_LOCAL_ONLY) || defined(__hpux) return IA64_LOC_UC_REG (reg, c->sigcontext_addr); #else return IA64_NULL_LOC; #endif } HIDDEN ia64_loc_t ia64_scratch_loc (struct cursor *c, unw_regnum_t reg, uint8_t *nat_bitnr) { if (c->sigcontext_addr) { if (ia64_get_abi (c) == ABI_LINUX) return linux_scratch_loc (c, reg, nat_bitnr); else if (ia64_get_abi (c) == ABI_HPUX) return hpux_scratch_loc (c, reg, nat_bitnr); else return IA64_NULL_LOC; } else return IA64_REG_LOC (c, reg); } static inline int update_nat (struct cursor *c, ia64_loc_t nat_loc, unw_word_t mask, unw_word_t *valp, int write) { unw_word_t nat_word; int ret; ret = ia64_get (c, nat_loc, &nat_word); if (ret < 0) return ret; if (write) { if (*valp) nat_word |= mask; else nat_word &= ~mask; ret = ia64_put (c, nat_loc, nat_word); } else *valp = (nat_word & mask) != 0; return ret; } static int access_nat (struct cursor *c, ia64_loc_t nat_loc, ia64_loc_t reg_loc, uint8_t nat_bitnr, unw_word_t *valp, int write) { unw_word_t mask = 0; unw_fpreg_t tmp; int ret; if (IA64_IS_FP_LOC (reg_loc)) { /* NaT bit is saved as a NaTVal. This happens when a general register is saved to a floating-point register. */ if (write) { if (*valp) { if (ia64_is_big_endian (c)) ret = ia64_putfp (c, reg_loc, unw.nat_val_be); else ret = ia64_putfp (c, reg_loc, unw.nat_val_le); } else { unw_word_t *src, *dst; unw_fpreg_t tmp; ret = ia64_getfp (c, reg_loc, &tmp); if (ret < 0) return ret; /* Reset the exponent to 0x1003e so that the significand will be interpreted as an integer value. */ src = (unw_word_t *) &unw.int_val_be; dst = (unw_word_t *) &tmp; if (!ia64_is_big_endian (c)) ++src, ++dst; *dst = *src; ret = ia64_putfp (c, reg_loc, tmp); } } else { ret = ia64_getfp (c, reg_loc, &tmp); if (ret < 0) return ret; if (ia64_is_big_endian (c)) *valp = (memcmp (&tmp, &unw.nat_val_be, sizeof (tmp)) == 0); else *valp = (memcmp (&tmp, &unw.nat_val_le, sizeof (tmp)) == 0); } return ret; } if ((IA64_IS_REG_LOC (nat_loc) && (unsigned) (IA64_GET_REG (nat_loc) - UNW_IA64_NAT) < 128) || IA64_IS_UC_LOC (reg_loc)) { if (write) return ia64_put (c, nat_loc, *valp); else return ia64_get (c, nat_loc, valp); } if (IA64_IS_NULL_LOC (nat_loc)) { /* NaT bit is not saved. This happens if a general register is saved to a branch register. Since the NaT bit gets lost, we need to drop it here, too. Note that if the NaT bit had been set when the save occurred, it would have caused a NaT consumption fault. */ if (write) { if (*valp) return -UNW_EBADREG; /* can't set NaT bit */ } else *valp = 0; return 0; } mask = (unw_word_t) 1 << nat_bitnr; return update_nat (c, nat_loc, mask, valp, write); } HIDDEN int tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write) { ia64_loc_t loc, reg_loc, nat_loc; unw_word_t mask, val; uint8_t nat_bitnr; int ret; switch (reg) { /* frame registers: */ case UNW_IA64_BSP: if (write) c->bsp = *valp; else *valp = c->bsp; return 0; case UNW_REG_SP: if (write) c->sp = *valp; else *valp = c->sp; return 0; case UNW_REG_IP: if (write) { c->ip = *valp; /* also update the IP cache */ if (c->pi_valid && (*valp < c->pi.start_ip || *valp >= c->pi.end_ip)) c->pi_valid = 0; /* new IP outside of current proc */ } loc = c->loc[IA64_REG_IP]; break; /* preserved registers: */ case UNW_IA64_GR + 4 ... UNW_IA64_GR + 7: loc = c->loc[IA64_REG_R4 + (reg - (UNW_IA64_GR + 4))]; break; case UNW_IA64_NAT + 4 ... UNW_IA64_NAT + 7: loc = c->loc[IA64_REG_NAT4 + (reg - (UNW_IA64_NAT + 4))]; reg_loc = c->loc[IA64_REG_R4 + (reg - (UNW_IA64_NAT + 4))]; nat_bitnr = c->nat_bitnr[reg - (UNW_IA64_NAT + 4)]; return access_nat (c, loc, reg_loc, nat_bitnr, valp, write); case UNW_IA64_AR_BSP: loc = c->loc[IA64_REG_BSP]; break; case UNW_IA64_AR_BSPSTORE: loc = c->loc[IA64_REG_BSPSTORE]; break; case UNW_IA64_AR_PFS: loc = c->loc[IA64_REG_PFS]; break; case UNW_IA64_AR_RNAT: loc = c->loc[IA64_REG_RNAT]; break; case UNW_IA64_AR_UNAT: loc = c->loc[IA64_REG_UNAT]; break; case UNW_IA64_AR_LC: loc = c->loc[IA64_REG_LC]; break; case UNW_IA64_AR_FPSR: loc = c->loc[IA64_REG_FPSR]; break; case UNW_IA64_BR + 1: loc = c->loc[IA64_REG_B1]; break; case UNW_IA64_BR + 2: loc = c->loc[IA64_REG_B2]; break; case UNW_IA64_BR + 3: loc = c->loc[IA64_REG_B3]; break; case UNW_IA64_BR + 4: loc = c->loc[IA64_REG_B4]; break; case UNW_IA64_BR + 5: loc = c->loc[IA64_REG_B5]; break; case UNW_IA64_CFM: if (write) c->cfm = *valp; /* also update the CFM cache */ loc = c->cfm_loc; break; case UNW_IA64_PR: /* * Note: broad-side access to the predicates is NOT rotated * (i.e., it is done as if CFM.rrb.pr == 0. */ if (write) { c->pr = *valp; /* update the predicate cache */ return ia64_put (c, c->loc[IA64_REG_PR], *valp); } else return ia64_get (c, c->loc[IA64_REG_PR], valp); case UNW_IA64_GR + 32 ... UNW_IA64_GR + 127: /* stacked reg */ reg = rotate_gr (c, reg - UNW_IA64_GR); if (reg < 0) return -UNW_EBADREG; ret = ia64_get_stacked (c, reg, &loc, NULL); if (ret < 0) return ret; break; case UNW_IA64_NAT + 32 ... UNW_IA64_NAT + 127: /* stacked reg */ reg = rotate_gr (c, reg - UNW_IA64_NAT); if (reg < 0) return -UNW_EBADREG; ret = ia64_get_stacked (c, reg, &loc, &nat_loc); if (ret < 0) return ret; assert (!IA64_IS_REG_LOC (loc)); mask = (unw_word_t) 1 << rse_slot_num (IA64_GET_ADDR (loc)); return update_nat (c, nat_loc, mask, valp, write); case UNW_IA64_AR_EC: if ((ret = ia64_get (c, c->ec_loc, &val)) < 0) return ret; if (write) { val = ((val & ~((unw_word_t) 0x3f << 52)) | ((*valp & 0x3f) << 52)); return ia64_put (c, c->ec_loc, val); } else { *valp = (val >> 52) & 0x3f; return 0; } /* scratch & special registers: */ case UNW_IA64_GR + 0: if (write) return -UNW_EREADONLYREG; *valp = 0; return 0; case UNW_IA64_NAT + 0: if (write) return -UNW_EREADONLYREG; *valp = 0; return 0; case UNW_IA64_NAT + 1: case UNW_IA64_NAT + 2 ... UNW_IA64_NAT + 3: case UNW_IA64_NAT + 8 ... UNW_IA64_NAT + 31: loc = ia64_scratch_loc (c, reg, &nat_bitnr); if (IA64_IS_NULL_LOC (loc) && reg == UNW_IA64_NAT + 1) { /* access to GP */ if (write) return -UNW_EREADONLYREG; *valp = 0; return 0; } if (!(IA64_IS_REG_LOC (loc) || IA64_IS_UC_LOC (loc) || IA64_IS_FP_LOC (loc))) /* We're dealing with a NaT bit stored in memory. */ return update_nat(c, loc, (unw_word_t) 1 << nat_bitnr, valp, write); break; case UNW_IA64_GR + 15 ... UNW_IA64_GR + 18: mask = 1 << (reg - (UNW_IA64_GR + 15)); if (write) { c->eh_args[reg - (UNW_IA64_GR + 15)] = *valp; c->eh_valid_mask |= mask; return 0; } else if ((c->eh_valid_mask & mask) != 0) { *valp = c->eh_args[reg - (UNW_IA64_GR + 15)]; return 0; } else loc = ia64_scratch_loc (c, reg, NULL); break; case UNW_IA64_GR + 1: /* global pointer */ case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3: case UNW_IA64_GR + 8 ... UNW_IA64_GR + 14: case UNW_IA64_GR + 19 ... UNW_IA64_GR + 31: case UNW_IA64_BR + 0: case UNW_IA64_BR + 6: case UNW_IA64_BR + 7: case UNW_IA64_AR_RSC: case UNW_IA64_AR_CSD: case UNW_IA64_AR_SSD: case UNW_IA64_AR_CCV: loc = ia64_scratch_loc (c, reg, NULL); if (IA64_IS_NULL_LOC (loc) && reg == UNW_IA64_GR + 1) { /* access to GP */ if (write) return -UNW_EREADONLYREG; /* ensure c->pi is up-to-date: */ if ((ret = ia64_make_proc_info (c)) < 0) return ret; *valp = c->pi.gp; return 0; } break; default: Debug (1, "bad register number %d\n", reg); return -UNW_EBADREG; } if (write) return ia64_put (c, loc, *valp); else return ia64_get (c, loc, valp); } HIDDEN int tdep_access_fpreg (struct cursor *c, int reg, unw_fpreg_t *valp, int write) { ia64_loc_t loc; switch (reg) { case UNW_IA64_FR + 0: if (write) return -UNW_EREADONLYREG; *valp = unw.read_only.f0; return 0; case UNW_IA64_FR + 1: if (write) return -UNW_EREADONLYREG; if (ia64_is_big_endian (c)) *valp = unw.read_only.f1_be; else *valp = unw.read_only.f1_le; return 0; case UNW_IA64_FR + 2: loc = c->loc[IA64_REG_F2]; break; case UNW_IA64_FR + 3: loc = c->loc[IA64_REG_F3]; break; case UNW_IA64_FR + 4: loc = c->loc[IA64_REG_F4]; break; case UNW_IA64_FR + 5: loc = c->loc[IA64_REG_F5]; break; case UNW_IA64_FR + 16 ... UNW_IA64_FR + 31: loc = c->loc[IA64_REG_F16 + (reg - (UNW_IA64_FR + 16))]; break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 15: loc = ia64_scratch_loc (c, reg, NULL); break; case UNW_IA64_FR + 32 ... UNW_IA64_FR + 127: reg = rotate_fr (c, reg - UNW_IA64_FR) + UNW_IA64_FR; loc = ia64_scratch_loc (c, reg, NULL); break; default: Debug (1, "bad register number %d\n", reg); return -UNW_EBADREG; } if (write) return ia64_putfp (c, loc, *valp); else return ia64_getfp (c, loc, valp); }
/* libunwind - a platform-independent unwind library Copyright (C) 2001-2005 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "offsets.h" #include "regs.h" #include "unwind_i.h" static inline ia64_loc_t linux_scratch_loc (struct cursor *c, unw_regnum_t reg, uint8_t *nat_bitnr) { #if !defined(UNW_LOCAL_ONLY) || defined(__linux__) unw_word_t addr = c->sigcontext_addr, flags, tmp_addr; int i; if (ia64_get_abi_marker (c) == ABI_MARKER_LINUX_SIGTRAMP || ia64_get_abi_marker (c) == ABI_MARKER_OLD_LINUX_SIGTRAMP) { switch (reg) { case UNW_IA64_NAT + 2 ... UNW_IA64_NAT + 3: case UNW_IA64_NAT + 8 ... UNW_IA64_NAT + 31: /* Linux sigcontext contains the NaT bit of scratch register N in bit position N of the sc_nat member. */ *nat_bitnr = (reg - UNW_IA64_NAT); addr += LINUX_SC_NAT_OFF; break; case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3: case UNW_IA64_GR + 8 ... UNW_IA64_GR + 31: addr += LINUX_SC_GR_OFF + 8 * (reg - UNW_IA64_GR); break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 15: addr += LINUX_SC_FR_OFF + 16 * (reg - UNW_IA64_FR); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); case UNW_IA64_FR + 32 ... UNW_IA64_FR + 127: if (ia64_get (c, IA64_LOC_ADDR (addr + LINUX_SC_FLAGS_OFF, 0), &flags) < 0) return IA64_NULL_LOC; if (!(flags & IA64_SC_FLAG_FPH_VALID)) { /* initialize fph partition: */ tmp_addr = addr + LINUX_SC_FR_OFF + 32*16; for (i = 32; i < 128; ++i, tmp_addr += 16) if (ia64_putfp (c, IA64_LOC_ADDR (tmp_addr, 0), unw.read_only.f0) < 0) return IA64_NULL_LOC; /* mark fph partition as valid: */ if (ia64_put (c, IA64_LOC_ADDR (addr + LINUX_SC_FLAGS_OFF, 0), flags | IA64_SC_FLAG_FPH_VALID) < 0) return IA64_NULL_LOC; } addr += LINUX_SC_FR_OFF + 16 * (reg - UNW_IA64_FR); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); case UNW_IA64_BR + 0: addr += LINUX_SC_BR_OFF + 0; break; case UNW_IA64_BR + 6: addr += LINUX_SC_BR_OFF + 6*8; break; case UNW_IA64_BR + 7: addr += LINUX_SC_BR_OFF + 7*8; break; case UNW_IA64_AR_RSC: addr += LINUX_SC_AR_RSC_OFF; break; case UNW_IA64_AR_CSD: addr += LINUX_SC_AR_CSD_OFF; break; case UNW_IA64_AR_SSD: addr += LINUX_SC_AR_SSD_OFF; break; case UNW_IA64_AR_CCV: addr += LINUX_SC_AR_CCV; break; default: if (unw_is_fpreg (reg)) return IA64_FPREG_LOC (c, reg); else return IA64_REG_LOC (c, reg); } return IA64_LOC_ADDR (addr, 0); } else { int is_nat = 0; if ((unsigned) (reg - UNW_IA64_NAT) < 128) { is_nat = 1; reg -= (UNW_IA64_NAT - UNW_IA64_GR); } if (ia64_get_abi_marker (c) == ABI_MARKER_LINUX_INTERRUPT) { switch (reg) { case UNW_IA64_BR + 6 ... UNW_IA64_BR + 7: addr += LINUX_PT_B6_OFF + 8 * (reg - (UNW_IA64_BR + 6)); break; case UNW_IA64_AR_CSD: addr += LINUX_PT_CSD_OFF; break; case UNW_IA64_AR_SSD: addr += LINUX_PT_SSD_OFF; break; case UNW_IA64_GR + 8 ... UNW_IA64_GR + 11: addr += LINUX_PT_R8_OFF + 8 * (reg - (UNW_IA64_GR + 8)); break; case UNW_IA64_IP: addr += LINUX_PT_IIP_OFF; break; case UNW_IA64_CFM: addr += LINUX_PT_IFS_OFF; break; case UNW_IA64_AR_UNAT: addr += LINUX_PT_UNAT_OFF; break; case UNW_IA64_AR_PFS: addr += LINUX_PT_PFS_OFF; break; case UNW_IA64_AR_RSC: addr += LINUX_PT_RSC_OFF; break; case UNW_IA64_AR_RNAT: addr += LINUX_PT_RNAT_OFF; break; case UNW_IA64_AR_BSPSTORE: addr += LINUX_PT_BSPSTORE_OFF; break; case UNW_IA64_PR: addr += LINUX_PT_PR_OFF; break; case UNW_IA64_BR + 0: addr += LINUX_PT_B0_OFF; break; case UNW_IA64_GR + 1: /* The saved r1 value is valid only in the frame in which it was saved; for everything else we need to look up the appropriate gp value. */ if (c->sigcontext_addr != c->sp + 0x10) return IA64_NULL_LOC; addr += LINUX_PT_R1_OFF; break; case UNW_IA64_GR + 12: addr += LINUX_PT_R12_OFF; break; case UNW_IA64_GR + 13: addr += LINUX_PT_R13_OFF; break; case UNW_IA64_AR_FPSR: addr += LINUX_PT_FPSR_OFF; break; case UNW_IA64_GR + 15: addr += LINUX_PT_R15_OFF; break; case UNW_IA64_GR + 14: addr += LINUX_PT_R14_OFF; break; case UNW_IA64_GR + 2: addr += LINUX_PT_R2_OFF; break; case UNW_IA64_GR + 3: addr += LINUX_PT_R3_OFF; break; case UNW_IA64_GR + 16 ... UNW_IA64_GR + 31: addr += LINUX_PT_R16_OFF + 8 * (reg - (UNW_IA64_GR + 16)); break; case UNW_IA64_AR_CCV: addr += LINUX_PT_CCV_OFF; break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 11: addr += LINUX_PT_F6_OFF + 16 * (reg - (UNW_IA64_FR + 6)); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); default: if (unw_is_fpreg (reg)) return IA64_FPREG_LOC (c, reg); else return IA64_REG_LOC (c, reg); } } else if (ia64_get_abi_marker (c) == ABI_MARKER_OLD_LINUX_INTERRUPT) { switch (reg) { case UNW_IA64_GR + 1: /* The saved r1 value is valid only in the frame in which it was saved; for everything else we need to look up the appropriate gp value. */ if (c->sigcontext_addr != c->sp + 0x10) return IA64_NULL_LOC; addr += LINUX_OLD_PT_R1_OFF; break; case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3: addr += LINUX_OLD_PT_R2_OFF + 8 * (reg - (UNW_IA64_GR + 2)); break; case UNW_IA64_GR + 8 ... UNW_IA64_GR + 11: addr += LINUX_OLD_PT_R8_OFF + 8 * (reg - (UNW_IA64_GR + 8)); break; case UNW_IA64_GR + 16 ... UNW_IA64_GR + 31: addr += LINUX_OLD_PT_R16_OFF + 8 * (reg - (UNW_IA64_GR + 16)); break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 9: addr += LINUX_OLD_PT_F6_OFF + 16 * (reg - (UNW_IA64_FR + 6)); return IA64_LOC_ADDR (addr, IA64_LOC_TYPE_FP); case UNW_IA64_BR + 0: addr += LINUX_OLD_PT_B0_OFF; break; case UNW_IA64_BR + 6: addr += LINUX_OLD_PT_B6_OFF; break; case UNW_IA64_BR + 7: addr += LINUX_OLD_PT_B7_OFF; break; case UNW_IA64_AR_RSC: addr += LINUX_OLD_PT_RSC_OFF; break; case UNW_IA64_AR_CCV: addr += LINUX_OLD_PT_CCV_OFF; break; default: if (unw_is_fpreg (reg)) return IA64_FPREG_LOC (c, reg); else return IA64_REG_LOC (c, reg); } } if (is_nat) { /* For Linux pt-regs structure, bit number is determined by the UNaT slot number (as determined by st8.spill) and the bits are saved wherever the (primary) UNaT was saved. */ *nat_bitnr = ia64_unat_slot_num (addr); return c->loc[IA64_REG_PRI_UNAT_MEM]; } return IA64_LOC_ADDR (addr, 0); } #endif return IA64_NULL_LOC; } static inline ia64_loc_t hpux_scratch_loc (struct cursor *c, unw_regnum_t reg, uint8_t *nat_bitnr) { #if !defined(UNW_LOCAL_ONLY) || defined(__hpux) return IA64_LOC_UC_REG (reg, c->sigcontext_addr); #else return IA64_NULL_LOC; #endif } HIDDEN ia64_loc_t ia64_scratch_loc (struct cursor *c, unw_regnum_t reg, uint8_t *nat_bitnr) { if (c->sigcontext_addr) { if (ia64_get_abi (c) == ABI_LINUX) return linux_scratch_loc (c, reg, nat_bitnr); else if (ia64_get_abi (c) == ABI_HPUX) return hpux_scratch_loc (c, reg, nat_bitnr); else return IA64_NULL_LOC; } else return IA64_REG_LOC (c, reg); } static inline int update_nat (struct cursor *c, ia64_loc_t nat_loc, unw_word_t mask, unw_word_t *valp, int write) { unw_word_t nat_word; int ret; ret = ia64_get (c, nat_loc, &nat_word); if (ret < 0) return ret; if (write) { if (*valp) nat_word |= mask; else nat_word &= ~mask; ret = ia64_put (c, nat_loc, nat_word); } else *valp = (nat_word & mask) != 0; return ret; } static int access_nat (struct cursor *c, ia64_loc_t nat_loc, ia64_loc_t reg_loc, uint8_t nat_bitnr, unw_word_t *valp, int write) { unw_word_t mask = 0; unw_fpreg_t tmp; int ret; if (IA64_IS_FP_LOC (reg_loc)) { /* NaT bit is saved as a NaTVal. This happens when a general register is saved to a floating-point register. */ if (write) { if (*valp) { if (ia64_is_big_endian (c)) ret = ia64_putfp (c, reg_loc, unw.nat_val_be); else ret = ia64_putfp (c, reg_loc, unw.nat_val_le); } else { unw_word_t *src, *dst; unw_fpreg_t tmp; ret = ia64_getfp (c, reg_loc, &tmp); if (ret < 0) return ret; /* Reset the exponent to 0x1003e so that the significand will be interpreted as an integer value. */ src = (unw_word_t *) &unw.int_val_be; dst = (unw_word_t *) &tmp; if (!ia64_is_big_endian (c)) ++src, ++dst; *dst = *src; ret = ia64_putfp (c, reg_loc, tmp); } } else { ret = ia64_getfp (c, reg_loc, &tmp); if (ret < 0) return ret; if (ia64_is_big_endian (c)) *valp = (memcmp (&tmp, &unw.nat_val_be, sizeof (tmp)) == 0); else *valp = (memcmp (&tmp, &unw.nat_val_le, sizeof (tmp)) == 0); } return ret; } if ((IA64_IS_REG_LOC (nat_loc) && (unsigned) (IA64_GET_REG (nat_loc) - UNW_IA64_NAT) < 128) || IA64_IS_UC_LOC (reg_loc)) { if (write) return ia64_put (c, nat_loc, *valp); else return ia64_get (c, nat_loc, valp); } if (IA64_IS_NULL_LOC (nat_loc)) { /* NaT bit is not saved. This happens if a general register is saved to a branch register. Since the NaT bit gets lost, we need to drop it here, too. Note that if the NaT bit had been set when the save occurred, it would have caused a NaT consumption fault. */ if (write) { if (*valp) return -UNW_EBADREG; /* can't set NaT bit */ } else *valp = 0; return 0; } mask = (unw_word_t) 1 << nat_bitnr; return update_nat (c, nat_loc, mask, valp, write); } HIDDEN int tdep_access_reg (struct cursor *c, unw_regnum_t reg, unw_word_t *valp, int write) { ia64_loc_t loc, reg_loc, nat_loc; unw_word_t mask, val; uint8_t nat_bitnr; int ret; switch (reg) { /* frame registers: */ case UNW_IA64_BSP: if (write) c->bsp = *valp; else *valp = c->bsp; return 0; case UNW_REG_SP: if (write) c->sp = *valp; else *valp = c->sp; return 0; case UNW_REG_IP: if (write) { c->ip = *valp; /* also update the IP cache */ if (c->pi_valid && (*valp < c->pi.start_ip || *valp >= c->pi.end_ip)) c->pi_valid = 0; /* new IP outside of current proc */ } loc = c->loc[IA64_REG_IP]; break; /* preserved registers: */ case UNW_IA64_GR + 4 ... UNW_IA64_GR + 7: loc = c->loc[IA64_REG_R4 + (reg - (UNW_IA64_GR + 4))]; break; case UNW_IA64_NAT + 4 ... UNW_IA64_NAT + 7: loc = c->loc[IA64_REG_NAT4 + (reg - (UNW_IA64_NAT + 4))]; reg_loc = c->loc[IA64_REG_R4 + (reg - (UNW_IA64_NAT + 4))]; nat_bitnr = c->nat_bitnr[reg - (UNW_IA64_NAT + 4)]; return access_nat (c, loc, reg_loc, nat_bitnr, valp, write); case UNW_IA64_AR_BSP: loc = c->loc[IA64_REG_BSP]; break; case UNW_IA64_AR_BSPSTORE: loc = c->loc[IA64_REG_BSPSTORE]; break; case UNW_IA64_AR_PFS: loc = c->loc[IA64_REG_PFS]; break; case UNW_IA64_AR_RNAT: loc = c->loc[IA64_REG_RNAT]; break; case UNW_IA64_AR_UNAT: loc = c->loc[IA64_REG_UNAT]; break; case UNW_IA64_AR_LC: loc = c->loc[IA64_REG_LC]; break; case UNW_IA64_AR_FPSR: loc = c->loc[IA64_REG_FPSR]; break; case UNW_IA64_BR + 1: loc = c->loc[IA64_REG_B1]; break; case UNW_IA64_BR + 2: loc = c->loc[IA64_REG_B2]; break; case UNW_IA64_BR + 3: loc = c->loc[IA64_REG_B3]; break; case UNW_IA64_BR + 4: loc = c->loc[IA64_REG_B4]; break; case UNW_IA64_BR + 5: loc = c->loc[IA64_REG_B5]; break; case UNW_IA64_CFM: if (write) c->cfm = *valp; /* also update the CFM cache */ loc = c->cfm_loc; break; case UNW_IA64_PR: /* * Note: broad-side access to the predicates is NOT rotated * (i.e., it is done as if CFM.rrb.pr == 0. */ if (write) { c->pr = *valp; /* update the predicate cache */ return ia64_put (c, c->loc[IA64_REG_PR], *valp); } else return ia64_get (c, c->loc[IA64_REG_PR], valp); case UNW_IA64_GR + 32 ... UNW_IA64_GR + 127: /* stacked reg */ reg = rotate_gr (c, reg - UNW_IA64_GR); if (reg < 0) return -UNW_EBADREG; ret = ia64_get_stacked (c, reg, &loc, NULL); if (ret < 0) return ret; break; case UNW_IA64_NAT + 32 ... UNW_IA64_NAT + 127: /* stacked reg */ reg = rotate_gr (c, reg - UNW_IA64_NAT); if (reg < 0) return -UNW_EBADREG; ret = ia64_get_stacked (c, reg, &loc, &nat_loc); if (ret < 0) return ret; assert (!IA64_IS_REG_LOC (loc)); mask = (unw_word_t) 1 << rse_slot_num (IA64_GET_ADDR (loc)); return update_nat (c, nat_loc, mask, valp, write); case UNW_IA64_AR_EC: if ((ret = ia64_get (c, c->ec_loc, &val)) < 0) return ret; if (write) { val = ((val & ~((unw_word_t) 0x3f << 52)) | ((*valp & 0x3f) << 52)); return ia64_put (c, c->ec_loc, val); } else { *valp = (val >> 52) & 0x3f; return 0; } /* scratch & special registers: */ case UNW_IA64_GR + 0: if (write) return -UNW_EREADONLYREG; *valp = 0; return 0; case UNW_IA64_NAT + 0: if (write) return -UNW_EREADONLYREG; *valp = 0; return 0; case UNW_IA64_NAT + 1: case UNW_IA64_NAT + 2 ... UNW_IA64_NAT + 3: case UNW_IA64_NAT + 8 ... UNW_IA64_NAT + 31: loc = ia64_scratch_loc (c, reg, &nat_bitnr); if (IA64_IS_NULL_LOC (loc) && reg == UNW_IA64_NAT + 1) { /* access to GP */ if (write) return -UNW_EREADONLYREG; *valp = 0; return 0; } if (!(IA64_IS_REG_LOC (loc) || IA64_IS_UC_LOC (loc) || IA64_IS_FP_LOC (loc))) /* We're dealing with a NaT bit stored in memory. */ return update_nat(c, loc, (unw_word_t) 1 << nat_bitnr, valp, write); break; case UNW_IA64_GR + 15 ... UNW_IA64_GR + 18: mask = 1 << (reg - (UNW_IA64_GR + 15)); if (write) { c->eh_args[reg - (UNW_IA64_GR + 15)] = *valp; c->eh_valid_mask |= mask; return 0; } else if ((c->eh_valid_mask & mask) != 0) { *valp = c->eh_args[reg - (UNW_IA64_GR + 15)]; return 0; } else loc = ia64_scratch_loc (c, reg, NULL); break; case UNW_IA64_GR + 1: /* global pointer */ case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3: case UNW_IA64_GR + 8 ... UNW_IA64_GR + 14: case UNW_IA64_GR + 19 ... UNW_IA64_GR + 31: case UNW_IA64_BR + 0: case UNW_IA64_BR + 6: case UNW_IA64_BR + 7: case UNW_IA64_AR_RSC: case UNW_IA64_AR_CSD: case UNW_IA64_AR_SSD: case UNW_IA64_AR_CCV: loc = ia64_scratch_loc (c, reg, NULL); if (IA64_IS_NULL_LOC (loc) && reg == UNW_IA64_GR + 1) { /* access to GP */ if (write) return -UNW_EREADONLYREG; /* ensure c->pi is up-to-date: */ if ((ret = ia64_make_proc_info (c)) < 0) return ret; *valp = c->pi.gp; return 0; } break; default: Debug (1, "bad register number %d\n", reg); return -UNW_EBADREG; } if (write) return ia64_put (c, loc, *valp); else return ia64_get (c, loc, valp); } HIDDEN int tdep_access_fpreg (struct cursor *c, int reg, unw_fpreg_t *valp, int write) { ia64_loc_t loc; switch (reg) { case UNW_IA64_FR + 0: if (write) return -UNW_EREADONLYREG; *valp = unw.read_only.f0; return 0; case UNW_IA64_FR + 1: if (write) return -UNW_EREADONLYREG; if (ia64_is_big_endian (c)) *valp = unw.read_only.f1_be; else *valp = unw.read_only.f1_le; return 0; case UNW_IA64_FR + 2: loc = c->loc[IA64_REG_F2]; break; case UNW_IA64_FR + 3: loc = c->loc[IA64_REG_F3]; break; case UNW_IA64_FR + 4: loc = c->loc[IA64_REG_F4]; break; case UNW_IA64_FR + 5: loc = c->loc[IA64_REG_F5]; break; case UNW_IA64_FR + 16 ... UNW_IA64_FR + 31: loc = c->loc[IA64_REG_F16 + (reg - (UNW_IA64_FR + 16))]; break; case UNW_IA64_FR + 6 ... UNW_IA64_FR + 15: loc = ia64_scratch_loc (c, reg, NULL); break; case UNW_IA64_FR + 32 ... UNW_IA64_FR + 127: reg = rotate_fr (c, reg - UNW_IA64_FR) + UNW_IA64_FR; loc = ia64_scratch_loc (c, reg, NULL); break; default: Debug (1, "bad register number %d\n", reg); return -UNW_EBADREG; } if (write) return ia64_putfp (c, loc, *valp); else return ia64_getfp (c, loc, valp); }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/mono/mono/tests/bug-gh-9706.il
.assembly extern mscorlib { } .assembly test { .hash algorithm 0x00008004 .ver 0:0:0:0 } .class private auto ansi beforefieldinit test.Test extends [mscorlib]System.Object { .field private static int32 modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile) non_constant .method private hidebysig specialname rtspecialname static void '.cctor' () cil managed { .maxstack 8 ldc.i4.0 volatile. stsfld int32 modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile) test.Test::non_constant ret } .method public specialname rtspecialname instance default void '.ctor' () cil managed { .maxstack 8 ldarg.0 call instance void object::'.ctor'() ret } // If this test succeeds, it should run to completion. // If it fails, mono will hang in an infinite loop while doing DCE. .method public static hidebysig default void Main () cil managed { .maxstack 8 .entrypoint volatile. ldsfld int32 modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile) test.Test::non_constant ldc.i4.0 cgt brfalse.s end break // Should not be executed; merely needs to be present in the instruction stream. end: ret } }
.assembly extern mscorlib { } .assembly test { .hash algorithm 0x00008004 .ver 0:0:0:0 } .class private auto ansi beforefieldinit test.Test extends [mscorlib]System.Object { .field private static int32 modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile) non_constant .method private hidebysig specialname rtspecialname static void '.cctor' () cil managed { .maxstack 8 ldc.i4.0 volatile. stsfld int32 modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile) test.Test::non_constant ret } .method public specialname rtspecialname instance default void '.ctor' () cil managed { .maxstack 8 ldarg.0 call instance void object::'.ctor'() ret } // If this test succeeds, it should run to completion. // If it fails, mono will hang in an infinite loop while doing DCE. .method public static hidebysig default void Main () cil managed { .maxstack 8 .entrypoint volatile. ldsfld int32 modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile) test.Test::non_constant ldc.i4.0 cgt brfalse.s end break // Should not be executed; merely needs to be present in the instruction stream. end: ret } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Reflection.Metadata/tests/Resources/NetModule/ModuleVB01.mod
MZ@ !L!This program cannot be run in DOS mode. $PEL[KL  ) @@ `@\)O@  H.text  `.reloc @ @B)H8!$( *0 rp +**0 +*0 jo *0 +*>  s *b{( t}*b{( t}**0#q% s ( +*BSJB v4.0.30319l#~#Strings #US#GUID$#BlobW %3y y'Wyyyyy)yy) 4@% O `) j Sh~VVVVP X Kp Pt V [ /h az s ! !  F7FgF8CTq !y cc C<pMu  <Module>mscorlibMicrosoft.VisualBasicModVBClassModVBStructModVBInnerEnumModVBInnerStructModVBDeleModVBInnerIFooSystemObject.ctorConstStringget_ModVBDefaultPropindexset_ModVBDefaultPropvalueModuleCS00.modNS.ModuleModStructget_ModVBPropModEnumModClassBCSub01emclsActionModDeleBCFunc02delModVBDefaultPropModVBPropValueType.cctorArrayFieldadd_AnEventobjAnEventEventremove_AnEventEventArgsEventHandler1oeBSFunc01pAnEventEnumvalue__NoneRedYellowBlueMulticastDelegateTargetObjectTargetMethodIAsyncResultAsyncCallbackBeginInvokeDelegateCallbackDelegateAsyncStateEndInvokeDelegateAsyncResultInvokeModIBaseModIDeriveCMSystem.ReflectionDefaultMemberAttributeDelegateCombineRemoveModuleVB01.modAAAħxPGxz\V4?_ : 0VB Constant String Field       ((    !   -!1 -   9 5 ModVBDefaultProp AAA)) )_CorExeMainmscoree.dll% @ 9
MZ@ !L!This program cannot be run in DOS mode. $PEL[KL  ) @@ `@\)O@  H.text  `.reloc @ @B)H8!$( *0 rp +**0 +*0 jo *0 +*>  s *b{( t}*b{( t}**0#q% s ( +*BSJB v4.0.30319l#~#Strings #US#GUID$#BlobW %3y y'Wyyyyy)yy) 4@% O `) j Sh~VVVVP X Kp Pt V [ /h az s ! !  F7FgF8CTq !y cc C<pMu  <Module>mscorlibMicrosoft.VisualBasicModVBClassModVBStructModVBInnerEnumModVBInnerStructModVBDeleModVBInnerIFooSystemObject.ctorConstStringget_ModVBDefaultPropindexset_ModVBDefaultPropvalueModuleCS00.modNS.ModuleModStructget_ModVBPropModEnumModClassBCSub01emclsActionModDeleBCFunc02delModVBDefaultPropModVBPropValueType.cctorArrayFieldadd_AnEventobjAnEventEventremove_AnEventEventArgsEventHandler1oeBSFunc01pAnEventEnumvalue__NoneRedYellowBlueMulticastDelegateTargetObjectTargetMethodIAsyncResultAsyncCallbackBeginInvokeDelegateCallbackDelegateAsyncStateEndInvokeDelegateAsyncResultInvokeModIBaseModIDeriveCMSystem.ReflectionDefaultMemberAttributeDelegateCombineRemoveModuleVB01.modAAAħxPGxz\V4?_ : 0VB Constant String Field       ((    !   -!1 -   9 5 ModVBDefaultProp AAA)) )_CorExeMainmscoree.dll% @ 9
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Reflection.Metadata/tests/PortableExecutable/PEReaderTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Immutable; using System.IO; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.Metadata.Tests; using System.Runtime.CompilerServices; using Xunit; namespace System.Reflection.PortableExecutable.Tests { public class PEReaderTests { [Fact] public void Ctor() { Assert.Throws<ArgumentNullException>(() => new PEReader(null, PEStreamOptions.Default)); var invalid = new MemoryStream(new byte[] { 1, 2, 3, 4 }); // the stream should not be disposed if the arguments are bad Assert.Throws<ArgumentOutOfRangeException>(() => new PEReader(invalid, (PEStreamOptions)int.MaxValue)); Assert.True(invalid.CanRead); // no BadImageFormatException if we're prefetching the entire image: var peReader0 = new PEReader(invalid, PEStreamOptions.PrefetchEntireImage | PEStreamOptions.LeaveOpen); Assert.True(invalid.CanRead); Assert.Throws<BadImageFormatException>(() => peReader0.PEHeaders); invalid.Position = 0; // BadImageFormatException if we're prefetching the entire image and metadata: Assert.Throws<BadImageFormatException>(() => new PEReader(invalid, PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata | PEStreamOptions.LeaveOpen)); Assert.True(invalid.CanRead); invalid.Position = 0; // the stream should be disposed if the content is bad: Assert.Throws<BadImageFormatException>(() => new PEReader(invalid, PEStreamOptions.PrefetchMetadata)); Assert.False(invalid.CanRead); // the stream should not be disposed if we specified LeaveOpen flag: invalid = new MemoryStream(new byte[] { 1, 2, 3, 4 }); Assert.Throws<BadImageFormatException>(() => new PEReader(invalid, PEStreamOptions.PrefetchMetadata | PEStreamOptions.LeaveOpen)); Assert.True(invalid.CanRead); // valid metadata: var valid = new MemoryStream(Misc.Members); var peReader = new PEReader(valid, PEStreamOptions.Default); Assert.True(valid.CanRead); peReader.Dispose(); Assert.False(valid.CanRead); } [Fact] public void Ctor_Streams() { AssertExtensions.Throws<ArgumentException>("peStream", () => new PEReader(new CustomAccessMemoryStream(canRead: false, canSeek: false, canWrite: false))); AssertExtensions.Throws<ArgumentException>("peStream", () => new PEReader(new CustomAccessMemoryStream(canRead: true, canSeek: false, canWrite: false))); var s = new CustomAccessMemoryStream(canRead: true, canSeek: true, canWrite: false); new PEReader(s); new PEReader(s, PEStreamOptions.Default, 0); Assert.Throws<ArgumentOutOfRangeException>(() => new PEReader(s, PEStreamOptions.Default, -1)); Assert.Throws<ArgumentOutOfRangeException>(() => new PEReader(s, PEStreamOptions.Default, 1)); } [Fact] public unsafe void Ctor_Loaded() { byte b = 1; Assert.True(new PEReader(&b, 1, isLoadedImage: true).IsLoadedImage); Assert.False(new PEReader(&b, 1, isLoadedImage: false).IsLoadedImage); Assert.True(new PEReader(new MemoryStream(), PEStreamOptions.IsLoadedImage).IsLoadedImage); Assert.False(new PEReader(new MemoryStream()).IsLoadedImage); } [Fact] public void FromEmptyStream() { Assert.Throws<BadImageFormatException>(() => new PEReader(new MemoryStream(), PEStreamOptions.PrefetchMetadata)); Assert.Throws<BadImageFormatException>(() => new PEReader(new MemoryStream(), PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)); } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/17088")] public void SubStream() { var stream = new MemoryStream(); stream.WriteByte(0xff); stream.Write(Misc.Members, 0, Misc.Members.Length); stream.WriteByte(0xff); stream.WriteByte(0xff); stream.Position = 1; var peReader1 = new PEReader(stream, PEStreamOptions.LeaveOpen, Misc.Members.Length); Assert.Equal(Misc.Members.Length, peReader1.GetEntireImage().Length); peReader1.GetMetadataReader(); stream.Position = 1; var peReader2 = new PEReader(stream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata, Misc.Members.Length); Assert.Equal(Misc.Members.Length, peReader2.GetEntireImage().Length); peReader2.GetMetadataReader(); stream.Position = 1; var peReader3 = new PEReader(stream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchEntireImage, Misc.Members.Length); Assert.Equal(Misc.Members.Length, peReader3.GetEntireImage().Length); peReader3.GetMetadataReader(); } // TODO: Switch to small checked in native image. /* [Fact] public void OpenNativeImage() { using (var reader = new PEReader(File.OpenRead(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "kernel32.dll")))) { Assert.False(reader.HasMetadata); Assert.True(reader.PEHeaders.IsDll); Assert.False(reader.PEHeaders.IsExe); Assert.Throws<InvalidOperationException>(() => reader.GetMetadataReader()); } } */ [Fact] public void IL_LazyLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { var md = reader.GetMetadataReader(); var il = reader.GetMethodBody(md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)).RelativeVirtualAddress); Assert.Equal(new byte[] { 0, 42 }, il.GetILBytes()); Assert.Equal(8, il.MaxStack); } } [Fact] public void IL_EagerLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)) { var md = reader.GetMetadataReader(); var il = reader.GetMethodBody(md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)).RelativeVirtualAddress); Assert.Equal(new byte[] { 0, 42 }, il.GetILBytes()); Assert.Equal(8, il.MaxStack); } } [Fact] public void Metadata_LazyLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { var md = reader.GetMetadataReader(); var method = md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)); Assert.Equal("MC1", md.GetString(method.Name)); } } [Fact] public void Metadata_EagerLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata)) { var md = reader.GetMetadataReader(); var method = md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)); Assert.Equal("MC1", md.GetString(method.Name)); Assert.Throws<InvalidOperationException>(() => reader.GetEntireImage()); Assert.Throws<InvalidOperationException>(() => reader.GetMethodBody(method.RelativeVirtualAddress)); } } [Fact] public void EntireImage_LazyLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { Assert.Equal(4608, reader.GetEntireImage().Length); } } [Fact] public void EntireImage_EagerLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)) { Assert.Equal(4608, reader.GetEntireImage().Length); } } [Fact] [PlatformSpecific(TestPlatforms.Windows)] // Uses P/Invokes to get module handles public void GetMethodBody_Loaded() { LoaderUtilities.LoadPEAndValidate(Misc.Members, reader => { var md = reader.GetMetadataReader(); var il = reader.GetMethodBody(md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)).RelativeVirtualAddress); Assert.Equal(new byte[] { 0, 42 }, il.GetILBytes()); Assert.Equal(8, il.MaxStack); }); } [Fact] public void GetSectionData() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream)) { ValidateSectionData(reader); } } [Fact] [PlatformSpecific(TestPlatforms.Windows)] // Uses P/Invokes to get module handles public void GetSectionData_Loaded() { LoaderUtilities.LoadPEAndValidate(Misc.Members, ValidateSectionData); } private unsafe void ValidateSectionData(PEReader reader) { var relocBlob1 = reader.GetSectionData(".reloc").GetContent(); var relocBlob2 = reader.GetSectionData(0x6000).GetContent(); AssertEx.Equal(new byte[] { 0x00, 0x20, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0xD0, 0x38, 0x00, 0x00 }, relocBlob1); AssertEx.Equal(relocBlob1, relocBlob2); var data = reader.GetSectionData(0x5fff); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(0x600B); Assert.True(data.Pointer != null); Assert.Equal(1, data.Length); AssertEx.Equal(new byte[] { 0x00 }, data.GetContent()); data = reader.GetSectionData(0x600C); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(0x600D); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(int.MaxValue); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(".nonexisting"); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(""); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); } [Fact] public void GetSectionData_Errors() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream)) { Assert.Throws<ArgumentNullException>(() => reader.GetSectionData(null)); Assert.Throws<ArgumentOutOfRangeException>(() => reader.GetSectionData(-1)); Assert.Throws<ArgumentOutOfRangeException>(() => reader.GetSectionData(int.MinValue)); } } [Fact] [SkipOnTargetFramework(~TargetFrameworkMonikers.NetFramework)] public void TryOpenAssociatedPortablePdb_Args() { var peStream = new MemoryStream(PortablePdbs.DocumentsDll); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(@"b.dll", _ => null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(@"b.dll", null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(null, _ => null, out pdbProvider, out pdbPath)); AssertExtensions.Throws<ArgumentException>("peImagePath", () => reader.TryOpenAssociatedPortablePdb("C:\\a\\\0\\b", _ => null, out pdbProvider, out pdbPath)); } } [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] public void TryOpenAssociatedPortablePdb_Args_Core() { var peStream = new MemoryStream(PortablePdbs.DocumentsDll); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(@"b.dll", _ => null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(@"b.dll", null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(null, _ => null, out pdbProvider, out pdbPath)); Assert.False(reader.TryOpenAssociatedPortablePdb("C:\\a\\\0\\b", _ => null, out pdbProvider, out pdbPath)); } } [Fact] public void TryOpenAssociatedPortablePdb_CollocatedFile() { var peStream = new MemoryStream(PortablePdbs.DocumentsDll); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return new MemoryStream(PortablePdbs.DocumentsPdb); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "Documents.pdb"), pathQueried); Assert.Equal(Path.Combine("pedir", "Documents.pdb"), pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_Embedded() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "Documents.Embedded.pdb"), pathQueried); Assert.Null(pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_EmbeddedOnly() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(@"x", _ => null, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } [Fact] public unsafe void TryOpenAssociatedPortablePdb_EmbeddedUnused() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); using (var reader = new PEReader(peStream)) { using (MetadataReaderProvider embeddedProvider = reader.ReadEmbeddedPortablePdbDebugDirectoryData(reader.ReadDebugDirectory()[2])) { var embeddedReader = embeddedProvider.GetMetadataReader(); var embeddedBytes = new BlobReader(embeddedReader.MetadataPointer, embeddedReader.MetadataLength).ReadBytes(embeddedReader.MetadataLength); string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return new MemoryStream(embeddedBytes); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "Documents.Embedded.pdb"), pathQueried); Assert.Equal(Path.Combine("pedir", "Documents.Embedded.pdb"), pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } } [Fact] public void TryOpenAssociatedPortablePdb_UnixStylePath() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/abc/def.xyz", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "def.xyz"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_WindowsSpecificPath() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"C:def.xyz", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "def.xyz"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_WindowsInvalidCharacters() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/*/c*.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "c*.pdb"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_DuplicateEntries_CodeView() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0); ddBuilder.AddReproducibleEntry(); ddBuilder.AddCodeViewEntry(@"/a/b/c.pdb", id, portablePdbVersion: 0x0100, age: 0x1234); ddBuilder.AddCodeViewEntry(@"/a/b/d.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "c.pdb"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_DuplicateEntries_Embedded() { var pdbBuilder1 = new BlobBuilder(); pdbBuilder1.WriteBytes(PortablePdbs.DocumentsPdb); var pdbBuilder2 = new BlobBuilder(); pdbBuilder2.WriteByte(1); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddReproducibleEntry(); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder1, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder2, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "a.pdb"), pathQueried); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_CodeViewVsEmbedded_NonMatchingPdbId() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; // Doesn't match the id return new MemoryStream(PortablePdbs.DocumentsPdb); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "a.pdb"), pathQueried); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_BadPdbFile_FallbackToEmbedded() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; // Bad PDB return new MemoryStream(new byte[] { 0x01 }); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "a.pdb"), pathQueried); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_ExpectedExceptionFromStreamProvider_FallbackOnEmbedded_Valid() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new IOException(); }, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new BadImageFormatException(); }, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new FileNotFoundException(); }, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_ExpectedExceptionFromStreamProvider_FallbackOnEmbedded_Invalid() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(new byte[] { 0x01 }); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; // reports the first error: Assert.Throws<IOException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new IOException(); }, out pdbProvider, out pdbPath)); // reports the first error: AssertEx.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new BadImageFormatException("Bang!"); }, out pdbProvider, out pdbPath), e => Assert.Equal("Bang!", e.Message)); // file doesn't exist, fall back to embedded without reporting FileNotFoundExeception Assert.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new FileNotFoundException(); }, out pdbProvider, out pdbPath)); Assert.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => null, out pdbProvider, out pdbPath)); } } [Fact] public void TryOpenAssociatedPortablePdb_ExpectedExceptionFromStreamProvider_NoFallback() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.Throws<IOException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new IOException(); }, out pdbProvider, out pdbPath)); AssertEx.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new BadImageFormatException("Bang!"); }, out pdbProvider, out pdbPath), e => Assert.Equal("Bang!", e.Message)); // file doesn't exist and no embedded => return false Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new FileNotFoundException(); }, out pdbProvider, out pdbPath)); } } [Fact] public void TryOpenAssociatedPortablePdb_BadStreamProvider() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; // pass-thru: AssertExtensions.Throws<ArgumentException>(null, () => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new ArgumentException(); }, out pdbProvider, out pdbPath)); Assert.Throws<InvalidOperationException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { return new TestStream(canRead: false, canWrite: true, canSeek: true); }, out pdbProvider, out pdbPath)); Assert.Throws<InvalidOperationException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { return new TestStream(canRead: true, canWrite: true, canSeek: false); }, out pdbProvider, out pdbPath)); } } [Fact] public void Dispose() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); var reader = new PEReader(peStream); MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(@"x", _ => null, out pdbProvider, out pdbPath)); Assert.NotNull(pdbProvider); Assert.Null(pdbPath); var ddEntries = reader.ReadDebugDirectory(); var ddCodeView = ddEntries[0]; var ddEmbedded = ddEntries[2]; var embeddedPdbProvider = reader.ReadEmbeddedPortablePdbDebugDirectoryData(ddEmbedded); // dispose the PEReader: reader.Dispose(); Assert.False(reader.IsEntireImageAvailable); Assert.Throws<ObjectDisposedException>(() => reader.PEHeaders); Assert.Throws<ObjectDisposedException>(() => reader.HasMetadata); Assert.Throws<ObjectDisposedException>(() => reader.GetMetadata()); Assert.Throws<ObjectDisposedException>(() => reader.GetSectionData(1000)); Assert.Throws<ObjectDisposedException>(() => reader.GetMetadataReader()); Assert.Throws<ObjectDisposedException>(() => reader.GetMethodBody(0)); Assert.Throws<ObjectDisposedException>(() => reader.GetEntireImage()); Assert.Throws<ObjectDisposedException>(() => reader.ReadDebugDirectory()); Assert.Throws<ObjectDisposedException>(() => reader.ReadCodeViewDebugDirectoryData(ddCodeView)); Assert.Throws<ObjectDisposedException>(() => reader.ReadEmbeddedPortablePdbDebugDirectoryData(ddEmbedded)); MetadataReaderProvider __; string ___; Assert.Throws<ObjectDisposedException>(() => reader.TryOpenAssociatedPortablePdb(@"x", _ => null, out __, out ___)); // ok to use providers after PEReader disposed: var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); pdbReader = embeddedPdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); embeddedPdbProvider.Dispose(); } [MethodImpl(MethodImplOptions.NoInlining)] private static MetadataReader GetMetadataReaderFromPEReader() => new PEReader(Misc.Debug.ToImmutableArray()).GetMetadataReader(); [Fact, MethodImpl(MethodImplOptions.NoOptimization)] public void KeepMetadataAlive() { var reader = GetMetadataReaderFromPEReader(); GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true, compacting: true); GC.WaitForPendingFinalizers(); Assert.Equal(@"Debug", reader.GetString(reader.GetAssemblyDefinition().Name)); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Immutable; using System.IO; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.Metadata.Tests; using System.Runtime.CompilerServices; using Xunit; namespace System.Reflection.PortableExecutable.Tests { public class PEReaderTests { [Fact] public void Ctor() { Assert.Throws<ArgumentNullException>(() => new PEReader(null, PEStreamOptions.Default)); var invalid = new MemoryStream(new byte[] { 1, 2, 3, 4 }); // the stream should not be disposed if the arguments are bad Assert.Throws<ArgumentOutOfRangeException>(() => new PEReader(invalid, (PEStreamOptions)int.MaxValue)); Assert.True(invalid.CanRead); // no BadImageFormatException if we're prefetching the entire image: var peReader0 = new PEReader(invalid, PEStreamOptions.PrefetchEntireImage | PEStreamOptions.LeaveOpen); Assert.True(invalid.CanRead); Assert.Throws<BadImageFormatException>(() => peReader0.PEHeaders); invalid.Position = 0; // BadImageFormatException if we're prefetching the entire image and metadata: Assert.Throws<BadImageFormatException>(() => new PEReader(invalid, PEStreamOptions.PrefetchEntireImage | PEStreamOptions.PrefetchMetadata | PEStreamOptions.LeaveOpen)); Assert.True(invalid.CanRead); invalid.Position = 0; // the stream should be disposed if the content is bad: Assert.Throws<BadImageFormatException>(() => new PEReader(invalid, PEStreamOptions.PrefetchMetadata)); Assert.False(invalid.CanRead); // the stream should not be disposed if we specified LeaveOpen flag: invalid = new MemoryStream(new byte[] { 1, 2, 3, 4 }); Assert.Throws<BadImageFormatException>(() => new PEReader(invalid, PEStreamOptions.PrefetchMetadata | PEStreamOptions.LeaveOpen)); Assert.True(invalid.CanRead); // valid metadata: var valid = new MemoryStream(Misc.Members); var peReader = new PEReader(valid, PEStreamOptions.Default); Assert.True(valid.CanRead); peReader.Dispose(); Assert.False(valid.CanRead); } [Fact] public void Ctor_Streams() { AssertExtensions.Throws<ArgumentException>("peStream", () => new PEReader(new CustomAccessMemoryStream(canRead: false, canSeek: false, canWrite: false))); AssertExtensions.Throws<ArgumentException>("peStream", () => new PEReader(new CustomAccessMemoryStream(canRead: true, canSeek: false, canWrite: false))); var s = new CustomAccessMemoryStream(canRead: true, canSeek: true, canWrite: false); new PEReader(s); new PEReader(s, PEStreamOptions.Default, 0); Assert.Throws<ArgumentOutOfRangeException>(() => new PEReader(s, PEStreamOptions.Default, -1)); Assert.Throws<ArgumentOutOfRangeException>(() => new PEReader(s, PEStreamOptions.Default, 1)); } [Fact] public unsafe void Ctor_Loaded() { byte b = 1; Assert.True(new PEReader(&b, 1, isLoadedImage: true).IsLoadedImage); Assert.False(new PEReader(&b, 1, isLoadedImage: false).IsLoadedImage); Assert.True(new PEReader(new MemoryStream(), PEStreamOptions.IsLoadedImage).IsLoadedImage); Assert.False(new PEReader(new MemoryStream()).IsLoadedImage); } [Fact] public void FromEmptyStream() { Assert.Throws<BadImageFormatException>(() => new PEReader(new MemoryStream(), PEStreamOptions.PrefetchMetadata)); Assert.Throws<BadImageFormatException>(() => new PEReader(new MemoryStream(), PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)); } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/17088")] public void SubStream() { var stream = new MemoryStream(); stream.WriteByte(0xff); stream.Write(Misc.Members, 0, Misc.Members.Length); stream.WriteByte(0xff); stream.WriteByte(0xff); stream.Position = 1; var peReader1 = new PEReader(stream, PEStreamOptions.LeaveOpen, Misc.Members.Length); Assert.Equal(Misc.Members.Length, peReader1.GetEntireImage().Length); peReader1.GetMetadataReader(); stream.Position = 1; var peReader2 = new PEReader(stream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata, Misc.Members.Length); Assert.Equal(Misc.Members.Length, peReader2.GetEntireImage().Length); peReader2.GetMetadataReader(); stream.Position = 1; var peReader3 = new PEReader(stream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchEntireImage, Misc.Members.Length); Assert.Equal(Misc.Members.Length, peReader3.GetEntireImage().Length); peReader3.GetMetadataReader(); } // TODO: Switch to small checked in native image. /* [Fact] public void OpenNativeImage() { using (var reader = new PEReader(File.OpenRead(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "kernel32.dll")))) { Assert.False(reader.HasMetadata); Assert.True(reader.PEHeaders.IsDll); Assert.False(reader.PEHeaders.IsExe); Assert.Throws<InvalidOperationException>(() => reader.GetMetadataReader()); } } */ [Fact] public void IL_LazyLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { var md = reader.GetMetadataReader(); var il = reader.GetMethodBody(md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)).RelativeVirtualAddress); Assert.Equal(new byte[] { 0, 42 }, il.GetILBytes()); Assert.Equal(8, il.MaxStack); } } [Fact] public void IL_EagerLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)) { var md = reader.GetMetadataReader(); var il = reader.GetMethodBody(md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)).RelativeVirtualAddress); Assert.Equal(new byte[] { 0, 42 }, il.GetILBytes()); Assert.Equal(8, il.MaxStack); } } [Fact] public void Metadata_LazyLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { var md = reader.GetMetadataReader(); var method = md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)); Assert.Equal("MC1", md.GetString(method.Name)); } } [Fact] public void Metadata_EagerLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata)) { var md = reader.GetMetadataReader(); var method = md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)); Assert.Equal("MC1", md.GetString(method.Name)); Assert.Throws<InvalidOperationException>(() => reader.GetEntireImage()); Assert.Throws<InvalidOperationException>(() => reader.GetMethodBody(method.RelativeVirtualAddress)); } } [Fact] public void EntireImage_LazyLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen)) { Assert.Equal(4608, reader.GetEntireImage().Length); } } [Fact] public void EntireImage_EagerLoad() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream, PEStreamOptions.LeaveOpen | PEStreamOptions.PrefetchMetadata | PEStreamOptions.PrefetchEntireImage)) { Assert.Equal(4608, reader.GetEntireImage().Length); } } [Fact] [PlatformSpecific(TestPlatforms.Windows)] // Uses P/Invokes to get module handles public void GetMethodBody_Loaded() { LoaderUtilities.LoadPEAndValidate(Misc.Members, reader => { var md = reader.GetMetadataReader(); var il = reader.GetMethodBody(md.GetMethodDefinition(MetadataTokens.MethodDefinitionHandle(1)).RelativeVirtualAddress); Assert.Equal(new byte[] { 0, 42 }, il.GetILBytes()); Assert.Equal(8, il.MaxStack); }); } [Fact] public void GetSectionData() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream)) { ValidateSectionData(reader); } } [Fact] [PlatformSpecific(TestPlatforms.Windows)] // Uses P/Invokes to get module handles public void GetSectionData_Loaded() { LoaderUtilities.LoadPEAndValidate(Misc.Members, ValidateSectionData); } private unsafe void ValidateSectionData(PEReader reader) { var relocBlob1 = reader.GetSectionData(".reloc").GetContent(); var relocBlob2 = reader.GetSectionData(0x6000).GetContent(); AssertEx.Equal(new byte[] { 0x00, 0x20, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0xD0, 0x38, 0x00, 0x00 }, relocBlob1); AssertEx.Equal(relocBlob1, relocBlob2); var data = reader.GetSectionData(0x5fff); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(0x600B); Assert.True(data.Pointer != null); Assert.Equal(1, data.Length); AssertEx.Equal(new byte[] { 0x00 }, data.GetContent()); data = reader.GetSectionData(0x600C); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(0x600D); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(int.MaxValue); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(".nonexisting"); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); data = reader.GetSectionData(""); Assert.True(data.Pointer == null); Assert.Equal(0, data.Length); AssertEx.Equal(new byte[0], data.GetContent()); } [Fact] public void GetSectionData_Errors() { var peStream = new MemoryStream(Misc.Members); using (var reader = new PEReader(peStream)) { Assert.Throws<ArgumentNullException>(() => reader.GetSectionData(null)); Assert.Throws<ArgumentOutOfRangeException>(() => reader.GetSectionData(-1)); Assert.Throws<ArgumentOutOfRangeException>(() => reader.GetSectionData(int.MinValue)); } } [Fact] [SkipOnTargetFramework(~TargetFrameworkMonikers.NetFramework)] public void TryOpenAssociatedPortablePdb_Args() { var peStream = new MemoryStream(PortablePdbs.DocumentsDll); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(@"b.dll", _ => null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(@"b.dll", null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(null, _ => null, out pdbProvider, out pdbPath)); AssertExtensions.Throws<ArgumentException>("peImagePath", () => reader.TryOpenAssociatedPortablePdb("C:\\a\\\0\\b", _ => null, out pdbProvider, out pdbPath)); } } [Fact] [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)] public void TryOpenAssociatedPortablePdb_Args_Core() { var peStream = new MemoryStream(PortablePdbs.DocumentsDll); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(@"b.dll", _ => null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(@"b.dll", null, out pdbProvider, out pdbPath)); Assert.Throws<ArgumentNullException>(() => reader.TryOpenAssociatedPortablePdb(null, _ => null, out pdbProvider, out pdbPath)); Assert.False(reader.TryOpenAssociatedPortablePdb("C:\\a\\\0\\b", _ => null, out pdbProvider, out pdbPath)); } } [Fact] public void TryOpenAssociatedPortablePdb_CollocatedFile() { var peStream = new MemoryStream(PortablePdbs.DocumentsDll); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return new MemoryStream(PortablePdbs.DocumentsPdb); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "Documents.pdb"), pathQueried); Assert.Equal(Path.Combine("pedir", "Documents.pdb"), pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_Embedded() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "Documents.Embedded.pdb"), pathQueried); Assert.Null(pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_EmbeddedOnly() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(@"x", _ => null, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } [Fact] public unsafe void TryOpenAssociatedPortablePdb_EmbeddedUnused() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); using (var reader = new PEReader(peStream)) { using (MetadataReaderProvider embeddedProvider = reader.ReadEmbeddedPortablePdbDebugDirectoryData(reader.ReadDebugDirectory()[2])) { var embeddedReader = embeddedProvider.GetMetadataReader(); var embeddedBytes = new BlobReader(embeddedReader.MetadataPointer, embeddedReader.MetadataLength).ReadBytes(embeddedReader.MetadataLength); string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return new MemoryStream(embeddedBytes); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "Documents.Embedded.pdb"), pathQueried); Assert.Equal(Path.Combine("pedir", "Documents.Embedded.pdb"), pdbPath); var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); } } } [Fact] public void TryOpenAssociatedPortablePdb_UnixStylePath() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/abc/def.xyz", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "def.xyz"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_WindowsSpecificPath() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"C:def.xyz", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(Path.Combine("pedir", "def.xyz"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_WindowsInvalidCharacters() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/*/c*.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "c*.pdb"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_DuplicateEntries_CodeView() { var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0); ddBuilder.AddReproducibleEntry(); ddBuilder.AddCodeViewEntry(@"/a/b/c.pdb", id, portablePdbVersion: 0x0100, age: 0x1234); ddBuilder.AddCodeViewEntry(@"/a/b/d.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "c.pdb"), pathQueried); } } [Fact] public void TryOpenAssociatedPortablePdb_DuplicateEntries_Embedded() { var pdbBuilder1 = new BlobBuilder(); pdbBuilder1.WriteBytes(PortablePdbs.DocumentsPdb); var pdbBuilder2 = new BlobBuilder(); pdbBuilder2.WriteByte(1); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddReproducibleEntry(); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder1, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder2, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; return null; }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "a.pdb"), pathQueried); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_CodeViewVsEmbedded_NonMatchingPdbId() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; // Doesn't match the id return new MemoryStream(PortablePdbs.DocumentsPdb); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "a.pdb"), pathQueried); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_BadPdbFile_FallbackToEmbedded() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { string pathQueried = null; Func<string, Stream> streamProvider = p => { Assert.Null(pathQueried); pathQueried = p; // Bad PDB return new MemoryStream(new byte[] { 0x01 }); }; MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), streamProvider, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(PathUtilities.CombinePathWithRelativePath("pedir", "a.pdb"), pathQueried); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_ExpectedExceptionFromStreamProvider_FallbackOnEmbedded_Valid() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new IOException(); }, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new BadImageFormatException(); }, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); Assert.True(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new FileNotFoundException(); }, out pdbProvider, out pdbPath)); Assert.Null(pdbPath); Assert.Equal(13, pdbProvider.GetMetadataReader().Documents.Count); } } [Fact] public void TryOpenAssociatedPortablePdb_ExpectedExceptionFromStreamProvider_FallbackOnEmbedded_Invalid() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(new byte[] { 0x01 }); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); ddBuilder.AddEmbeddedPortablePdbEntry(pdbBuilder, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; // reports the first error: Assert.Throws<IOException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new IOException(); }, out pdbProvider, out pdbPath)); // reports the first error: AssertEx.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new BadImageFormatException("Bang!"); }, out pdbProvider, out pdbPath), e => Assert.Equal("Bang!", e.Message)); // file doesn't exist, fall back to embedded without reporting FileNotFoundExeception Assert.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new FileNotFoundException(); }, out pdbProvider, out pdbPath)); Assert.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => null, out pdbProvider, out pdbPath)); } } [Fact] public void TryOpenAssociatedPortablePdb_ExpectedExceptionFromStreamProvider_NoFallback() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; Assert.Throws<IOException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new IOException(); }, out pdbProvider, out pdbPath)); AssertEx.Throws<BadImageFormatException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new BadImageFormatException("Bang!"); }, out pdbProvider, out pdbPath), e => Assert.Equal("Bang!", e.Message)); // file doesn't exist and no embedded => return false Assert.False(reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new FileNotFoundException(); }, out pdbProvider, out pdbPath)); } } [Fact] public void TryOpenAssociatedPortablePdb_BadStreamProvider() { var pdbBuilder = new BlobBuilder(); pdbBuilder.WriteBytes(PortablePdbs.DocumentsPdb); var id = new BlobContentId(Guid.Parse("18091B06-32BB-46C2-9C3B-7C9389A2F6C6"), 0x12345678); var ddBuilder = new DebugDirectoryBuilder(); ddBuilder.AddCodeViewEntry(@"/a/b/a.pdb", id, portablePdbVersion: 0x0100); var peStream = new MemoryStream(TestBuilders.BuildPEWithDebugDirectory(ddBuilder)); using (var reader = new PEReader(peStream)) { MetadataReaderProvider pdbProvider; string pdbPath; // pass-thru: AssertExtensions.Throws<ArgumentException>(null, () => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { throw new ArgumentException(); }, out pdbProvider, out pdbPath)); Assert.Throws<InvalidOperationException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { return new TestStream(canRead: false, canWrite: true, canSeek: true); }, out pdbProvider, out pdbPath)); Assert.Throws<InvalidOperationException>(() => reader.TryOpenAssociatedPortablePdb(Path.Combine("pedir", "file.exe"), _ => { return new TestStream(canRead: true, canWrite: true, canSeek: false); }, out pdbProvider, out pdbPath)); } } [Fact] public void Dispose() { var peStream = new MemoryStream(PortablePdbs.DocumentsEmbeddedDll); var reader = new PEReader(peStream); MetadataReaderProvider pdbProvider; string pdbPath; Assert.True(reader.TryOpenAssociatedPortablePdb(@"x", _ => null, out pdbProvider, out pdbPath)); Assert.NotNull(pdbProvider); Assert.Null(pdbPath); var ddEntries = reader.ReadDebugDirectory(); var ddCodeView = ddEntries[0]; var ddEmbedded = ddEntries[2]; var embeddedPdbProvider = reader.ReadEmbeddedPortablePdbDebugDirectoryData(ddEmbedded); // dispose the PEReader: reader.Dispose(); Assert.False(reader.IsEntireImageAvailable); Assert.Throws<ObjectDisposedException>(() => reader.PEHeaders); Assert.Throws<ObjectDisposedException>(() => reader.HasMetadata); Assert.Throws<ObjectDisposedException>(() => reader.GetMetadata()); Assert.Throws<ObjectDisposedException>(() => reader.GetSectionData(1000)); Assert.Throws<ObjectDisposedException>(() => reader.GetMetadataReader()); Assert.Throws<ObjectDisposedException>(() => reader.GetMethodBody(0)); Assert.Throws<ObjectDisposedException>(() => reader.GetEntireImage()); Assert.Throws<ObjectDisposedException>(() => reader.ReadDebugDirectory()); Assert.Throws<ObjectDisposedException>(() => reader.ReadCodeViewDebugDirectoryData(ddCodeView)); Assert.Throws<ObjectDisposedException>(() => reader.ReadEmbeddedPortablePdbDebugDirectoryData(ddEmbedded)); MetadataReaderProvider __; string ___; Assert.Throws<ObjectDisposedException>(() => reader.TryOpenAssociatedPortablePdb(@"x", _ => null, out __, out ___)); // ok to use providers after PEReader disposed: var pdbReader = pdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); pdbReader = embeddedPdbProvider.GetMetadataReader(); Assert.Equal(13, pdbReader.Documents.Count); embeddedPdbProvider.Dispose(); } [MethodImpl(MethodImplOptions.NoInlining)] private static MetadataReader GetMetadataReaderFromPEReader() => new PEReader(Misc.Debug.ToImmutableArray()).GetMetadataReader(); [Fact, MethodImpl(MethodImplOptions.NoOptimization)] public void KeepMetadataAlive() { var reader = GetMetadataReaderFromPEReader(); GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced, blocking: true, compacting: true); GC.WaitForPendingFinalizers(); Assert.Equal(@"Debug", reader.GetString(reader.GetAssemblyDefinition().Name)); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Regression/CLR-x86-JIT/V1-M13-RTM/b99235/b99235.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public struct A { public int m_aval; }; public struct B { public int m_bval; }; public struct AA { public A m_a; public B m_b; public AA(int a, int b) { m_a.m_aval = a; m_b.m_bval = b; } } internal class TestApp { private static unsafe int test_26(uint ub) { return 0; } private static unsafe int Main() { AA loc_x = new AA(0, 100); test_26((uint)&loc_x.m_b); return 100; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public struct A { public int m_aval; }; public struct B { public int m_bval; }; public struct AA { public A m_a; public B m_b; public AA(int a, int b) { m_a.m_aval = a; m_b.m_bval = b; } } internal class TestApp { private static unsafe int test_26(uint ub) { return 0; } private static unsafe int Main() { AA loc_x = new AA(0, 100); test_26((uint)&loc_x.m_b); return 100; } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Private.CoreLib/src/System/Threading/RegisteredWaitHandle.Portable.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Runtime.Versioning; using Microsoft.Win32.SafeHandles; namespace System.Threading { /// <summary> /// An object representing the registration of a <see cref="WaitHandle"/> via <see cref="ThreadPool.RegisterWaitForSingleObject"/>. /// </summary> [UnsupportedOSPlatform("browser")] public sealed partial class RegisteredWaitHandle : MarshalByRefObject { internal RegisteredWaitHandle(WaitHandle waitHandle, _ThreadPoolWaitOrTimerCallback callbackHelper, int millisecondsTimeout, bool repeating) { Handle = waitHandle.SafeWaitHandle; Callback = callbackHelper; TimeoutDurationMs = millisecondsTimeout; Repeating = repeating; if (!IsInfiniteTimeout) { RestartTimeout(); } } private static AutoResetEvent? s_cachedEvent; private static AutoResetEvent RentEvent() => Interlocked.Exchange(ref s_cachedEvent, null) ?? new AutoResetEvent(false); private static void ReturnEvent(AutoResetEvent resetEvent) { if (Interlocked.CompareExchange(ref s_cachedEvent, resetEvent, null) != null) { resetEvent.Dispose(); } } private static readonly LowLevelLock s_callbackLock = new LowLevelLock(); /// <summary> /// The callback to execute when the wait on <see cref="Handle"/> either times out or completes. /// </summary> internal _ThreadPoolWaitOrTimerCallback Callback { get; } /// <summary> /// The <see cref="SafeWaitHandle"/> that was registered. /// </summary> internal SafeWaitHandle Handle { get; } /// <summary> /// The time this handle times out at in ms. /// </summary> internal int TimeoutTimeMs { get; private set; } internal int TimeoutDurationMs { get; } internal bool IsInfiniteTimeout => TimeoutDurationMs == -1; internal void RestartTimeout() { Debug.Assert(!IsInfiniteTimeout); TimeoutTimeMs = Environment.TickCount + TimeoutDurationMs; } /// <summary> /// Whether or not the wait is a repeating wait. /// </summary> internal bool Repeating { get; } /// <summary> /// The <see cref="WaitHandle"/> the user passed in via <see cref="Unregister(WaitHandle)"/>. /// </summary> private SafeWaitHandle? UserUnregisterWaitHandle { get; set; } private IntPtr UserUnregisterWaitHandleValue { get; set; } private static IntPtr InvalidHandleValue => new IntPtr(-1); internal bool IsBlocking => UserUnregisterWaitHandleValue == InvalidHandleValue; /// <summary> /// The number of callbacks that are currently queued on the Thread Pool or executing. /// </summary> private int _numRequestedCallbacks; /// <summary> /// Notes if we need to signal the user's unregister event after all callbacks complete. /// </summary> private bool _signalAfterCallbacksComplete; private bool _unregisterCalled; private bool _unregistered; private AutoResetEvent? _callbacksComplete; private AutoResetEvent? _removed; /// <summary> /// The <see cref="PortableThreadPool.WaitThread"/> this <see cref="RegisteredWaitHandle"/> was registered on. /// </summary> internal PortableThreadPool.WaitThread? WaitThread { get; set; } #if CORECLR private bool UnregisterPortable(WaitHandle waitObject) #else public bool Unregister(WaitHandle waitObject) #endif { // The registered wait handle must have been registered by this time, otherwise the instance is not handed out to // the caller of the public variants of RegisterWaitForSingleObject Debug.Assert(WaitThread != null); s_callbackLock.Acquire(); bool needToRollBackRefCountOnException = false; try { if (_unregisterCalled) { return false; } UserUnregisterWaitHandle = waitObject?.SafeWaitHandle; UserUnregisterWaitHandle?.DangerousAddRef(ref needToRollBackRefCountOnException); UserUnregisterWaitHandleValue = UserUnregisterWaitHandle?.DangerousGetHandle() ?? IntPtr.Zero; if (_unregistered) { SignalUserWaitHandle(); return true; } if (IsBlocking) { _callbacksComplete = RentEvent(); } else { _removed = RentEvent(); } } catch (Exception) // Rollback state on exception { if (_removed != null) { ReturnEvent(_removed); _removed = null; } else if (_callbacksComplete != null) { ReturnEvent(_callbacksComplete); _callbacksComplete = null; } UserUnregisterWaitHandleValue = IntPtr.Zero; if (needToRollBackRefCountOnException) { UserUnregisterWaitHandle?.DangerousRelease(); } UserUnregisterWaitHandle = null; throw; } finally { _unregisterCalled = true; s_callbackLock.Release(); } WaitThread!.UnregisterWait(this); return true; } /// <summary> /// Signal <see cref="UserUnregisterWaitHandle"/> if it has not been signaled yet and is a valid handle. /// </summary> private void SignalUserWaitHandle() { s_callbackLock.VerifyIsLocked(); SafeWaitHandle? handle = UserUnregisterWaitHandle; IntPtr handleValue = UserUnregisterWaitHandleValue; try { if (handleValue != IntPtr.Zero && handleValue != InvalidHandleValue) { Debug.Assert(handleValue == handle!.DangerousGetHandle()); EventWaitHandle.Set(handle); } } finally { handle?.DangerousRelease(); _callbacksComplete?.Set(); _unregistered = true; } } /// <summary> /// Perform the registered callback if the <see cref="UserUnregisterWaitHandle"/> has not been signaled. /// </summary> /// <param name="timedOut">Whether or not the wait timed out.</param> internal void PerformCallback(bool timedOut) { #if DEBUG s_callbackLock.Acquire(); try { Debug.Assert(_numRequestedCallbacks != 0); } finally { s_callbackLock.Release(); } #endif _ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Callback, timedOut); CompleteCallbackRequest(); } /// <summary> /// Tell this handle that there is a callback queued on the thread pool for this handle. /// </summary> internal void RequestCallback() { s_callbackLock.Acquire(); try { _numRequestedCallbacks++; } finally { s_callbackLock.Release(); } } /// <summary> /// Called when the wait thread removes this handle registration. This will signal the user's event if there are no callbacks pending, /// or note that the user's event must be signaled when the callbacks complete. /// </summary> internal void OnRemoveWait() { s_callbackLock.Acquire(); try { _removed?.Set(); if (_numRequestedCallbacks == 0) { SignalUserWaitHandle(); } else { _signalAfterCallbacksComplete = true; } } finally { s_callbackLock.Release(); } } /// <summary> /// Reduces the number of callbacks requested. If there are no more callbacks and the user's handle is queued to be signaled, signal it. /// </summary> private void CompleteCallbackRequest() { s_callbackLock.Acquire(); try { --_numRequestedCallbacks; if (_numRequestedCallbacks == 0 && _signalAfterCallbacksComplete) { SignalUserWaitHandle(); } } finally { s_callbackLock.Release(); } } /// <summary> /// Wait for all queued callbacks and the full unregistration to complete. /// </summary> internal void WaitForCallbacks() { Debug.Assert(IsBlocking); Debug.Assert(_unregisterCalled); // Should only be called when the wait is unregistered by the user. _callbacksComplete!.WaitOne(); ReturnEvent(_callbacksComplete); _callbacksComplete = null; } internal void WaitForRemoval() { Debug.Assert(!IsBlocking); Debug.Assert(_unregisterCalled); // Should only be called when the wait is unregistered by the user. _removed!.WaitOne(); ReturnEvent(_removed); _removed = null; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using System.Runtime.Versioning; using Microsoft.Win32.SafeHandles; namespace System.Threading { /// <summary> /// An object representing the registration of a <see cref="WaitHandle"/> via <see cref="ThreadPool.RegisterWaitForSingleObject"/>. /// </summary> [UnsupportedOSPlatform("browser")] public sealed partial class RegisteredWaitHandle : MarshalByRefObject { internal RegisteredWaitHandle(WaitHandle waitHandle, _ThreadPoolWaitOrTimerCallback callbackHelper, int millisecondsTimeout, bool repeating) { Handle = waitHandle.SafeWaitHandle; Callback = callbackHelper; TimeoutDurationMs = millisecondsTimeout; Repeating = repeating; if (!IsInfiniteTimeout) { RestartTimeout(); } } private static AutoResetEvent? s_cachedEvent; private static AutoResetEvent RentEvent() => Interlocked.Exchange(ref s_cachedEvent, null) ?? new AutoResetEvent(false); private static void ReturnEvent(AutoResetEvent resetEvent) { if (Interlocked.CompareExchange(ref s_cachedEvent, resetEvent, null) != null) { resetEvent.Dispose(); } } private static readonly LowLevelLock s_callbackLock = new LowLevelLock(); /// <summary> /// The callback to execute when the wait on <see cref="Handle"/> either times out or completes. /// </summary> internal _ThreadPoolWaitOrTimerCallback Callback { get; } /// <summary> /// The <see cref="SafeWaitHandle"/> that was registered. /// </summary> internal SafeWaitHandle Handle { get; } /// <summary> /// The time this handle times out at in ms. /// </summary> internal int TimeoutTimeMs { get; private set; } internal int TimeoutDurationMs { get; } internal bool IsInfiniteTimeout => TimeoutDurationMs == -1; internal void RestartTimeout() { Debug.Assert(!IsInfiniteTimeout); TimeoutTimeMs = Environment.TickCount + TimeoutDurationMs; } /// <summary> /// Whether or not the wait is a repeating wait. /// </summary> internal bool Repeating { get; } /// <summary> /// The <see cref="WaitHandle"/> the user passed in via <see cref="Unregister(WaitHandle)"/>. /// </summary> private SafeWaitHandle? UserUnregisterWaitHandle { get; set; } private IntPtr UserUnregisterWaitHandleValue { get; set; } private static IntPtr InvalidHandleValue => new IntPtr(-1); internal bool IsBlocking => UserUnregisterWaitHandleValue == InvalidHandleValue; /// <summary> /// The number of callbacks that are currently queued on the Thread Pool or executing. /// </summary> private int _numRequestedCallbacks; /// <summary> /// Notes if we need to signal the user's unregister event after all callbacks complete. /// </summary> private bool _signalAfterCallbacksComplete; private bool _unregisterCalled; private bool _unregistered; private AutoResetEvent? _callbacksComplete; private AutoResetEvent? _removed; /// <summary> /// The <see cref="PortableThreadPool.WaitThread"/> this <see cref="RegisteredWaitHandle"/> was registered on. /// </summary> internal PortableThreadPool.WaitThread? WaitThread { get; set; } #if CORECLR private bool UnregisterPortable(WaitHandle waitObject) #else public bool Unregister(WaitHandle waitObject) #endif { // The registered wait handle must have been registered by this time, otherwise the instance is not handed out to // the caller of the public variants of RegisterWaitForSingleObject Debug.Assert(WaitThread != null); s_callbackLock.Acquire(); bool needToRollBackRefCountOnException = false; try { if (_unregisterCalled) { return false; } UserUnregisterWaitHandle = waitObject?.SafeWaitHandle; UserUnregisterWaitHandle?.DangerousAddRef(ref needToRollBackRefCountOnException); UserUnregisterWaitHandleValue = UserUnregisterWaitHandle?.DangerousGetHandle() ?? IntPtr.Zero; if (_unregistered) { SignalUserWaitHandle(); return true; } if (IsBlocking) { _callbacksComplete = RentEvent(); } else { _removed = RentEvent(); } } catch (Exception) // Rollback state on exception { if (_removed != null) { ReturnEvent(_removed); _removed = null; } else if (_callbacksComplete != null) { ReturnEvent(_callbacksComplete); _callbacksComplete = null; } UserUnregisterWaitHandleValue = IntPtr.Zero; if (needToRollBackRefCountOnException) { UserUnregisterWaitHandle?.DangerousRelease(); } UserUnregisterWaitHandle = null; throw; } finally { _unregisterCalled = true; s_callbackLock.Release(); } WaitThread!.UnregisterWait(this); return true; } /// <summary> /// Signal <see cref="UserUnregisterWaitHandle"/> if it has not been signaled yet and is a valid handle. /// </summary> private void SignalUserWaitHandle() { s_callbackLock.VerifyIsLocked(); SafeWaitHandle? handle = UserUnregisterWaitHandle; IntPtr handleValue = UserUnregisterWaitHandleValue; try { if (handleValue != IntPtr.Zero && handleValue != InvalidHandleValue) { Debug.Assert(handleValue == handle!.DangerousGetHandle()); EventWaitHandle.Set(handle); } } finally { handle?.DangerousRelease(); _callbacksComplete?.Set(); _unregistered = true; } } /// <summary> /// Perform the registered callback if the <see cref="UserUnregisterWaitHandle"/> has not been signaled. /// </summary> /// <param name="timedOut">Whether or not the wait timed out.</param> internal void PerformCallback(bool timedOut) { #if DEBUG s_callbackLock.Acquire(); try { Debug.Assert(_numRequestedCallbacks != 0); } finally { s_callbackLock.Release(); } #endif _ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Callback, timedOut); CompleteCallbackRequest(); } /// <summary> /// Tell this handle that there is a callback queued on the thread pool for this handle. /// </summary> internal void RequestCallback() { s_callbackLock.Acquire(); try { _numRequestedCallbacks++; } finally { s_callbackLock.Release(); } } /// <summary> /// Called when the wait thread removes this handle registration. This will signal the user's event if there are no callbacks pending, /// or note that the user's event must be signaled when the callbacks complete. /// </summary> internal void OnRemoveWait() { s_callbackLock.Acquire(); try { _removed?.Set(); if (_numRequestedCallbacks == 0) { SignalUserWaitHandle(); } else { _signalAfterCallbacksComplete = true; } } finally { s_callbackLock.Release(); } } /// <summary> /// Reduces the number of callbacks requested. If there are no more callbacks and the user's handle is queued to be signaled, signal it. /// </summary> private void CompleteCallbackRequest() { s_callbackLock.Acquire(); try { --_numRequestedCallbacks; if (_numRequestedCallbacks == 0 && _signalAfterCallbacksComplete) { SignalUserWaitHandle(); } } finally { s_callbackLock.Release(); } } /// <summary> /// Wait for all queued callbacks and the full unregistration to complete. /// </summary> internal void WaitForCallbacks() { Debug.Assert(IsBlocking); Debug.Assert(_unregisterCalled); // Should only be called when the wait is unregistered by the user. _callbacksComplete!.WaitOne(); ReturnEvent(_callbacksComplete); _callbacksComplete = null; } internal void WaitForRemoval() { Debug.Assert(!IsBlocking); Debug.Assert(_unregisterCalled); // Should only be called when the wait is unregistered by the user. _removed!.WaitOne(); ReturnEvent(_removed); _removed = null; } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Linq.Parallel/src/System/Linq/Parallel/QueryOperators/Inlined/NullableIntMinMaxAggregationOperator.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // NullableIntMinMaxAggregationOperator.cs // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Diagnostics; using System.Threading; namespace System.Linq.Parallel { /// <summary> /// An inlined min/max aggregation and its enumerator, for Nullable ints. /// </summary> internal sealed class NullableIntMinMaxAggregationOperator : InlinedAggregationOperator<int?, int?, int?> { private readonly int _sign; // The sign (-1 for min, 1 for max). //--------------------------------------------------------------------------------------- // Constructs a new instance of a min/max associative operator. // internal NullableIntMinMaxAggregationOperator(IEnumerable<int?> child, int sign) : base(child) { Debug.Assert(sign == -1 || sign == 1, "invalid sign"); _sign = sign; } //--------------------------------------------------------------------------------------- // Executes the entire query tree, and aggregates the intermediate results into the // final result based on the binary operators and final reduction. // // Return Value: // The single result of aggregation. // protected override int? InternalAggregate(ref Exception? singularExceptionToThrow) { // Because the final reduction is typically much cheaper than the intermediate // reductions over the individual partitions, and because each parallel partition // will do a lot of work to produce a single output element, we prefer to turn off // pipelining, and process the final reductions serially. using (IEnumerator<int?> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, true)) { // Just return null right away for empty results. if (!enumerator.MoveNext()) { return null; } int? best = enumerator.Current; // Based on the sign, do either a min or max reduction. if (_sign == -1) { while (enumerator.MoveNext()) { int? current = enumerator.Current; if (best == null || current < best) { best = current; } } } else { while (enumerator.MoveNext()) { int? current = enumerator.Current; if (best == null || current > best) { best = current; } } } return best; } } //--------------------------------------------------------------------------------------- // Creates an enumerator that is used internally for the final aggregation step. // protected override QueryOperatorEnumerator<int?, int> CreateEnumerator<TKey>( int index, int count, QueryOperatorEnumerator<int?, TKey> source, object? sharedData, CancellationToken cancellationToken) { return new NullableIntMinMaxAggregationOperatorEnumerator<TKey>(source, index, _sign, cancellationToken); } //--------------------------------------------------------------------------------------- // This enumerator type encapsulates the intermediary aggregation over the underlying // (possibly partitioned) data source. // private sealed class NullableIntMinMaxAggregationOperatorEnumerator<TKey> : InlinedAggregationOperatorEnumerator<int?> { private readonly QueryOperatorEnumerator<int?, TKey> _source; // The source data. private readonly int _sign; // The sign for comparisons (-1 means min, 1 means max). //--------------------------------------------------------------------------------------- // Instantiates a new aggregation operator. // internal NullableIntMinMaxAggregationOperatorEnumerator(QueryOperatorEnumerator<int?, TKey> source, int partitionIndex, int sign, CancellationToken cancellationToken) : base(partitionIndex, cancellationToken) { Debug.Assert(source != null); _source = source; _sign = sign; } //--------------------------------------------------------------------------------------- // Tallies up the min/max of the underlying data source, walking the entire thing the first // time MoveNext is called on this object. // protected override bool MoveNextCore(ref int? currentElement) { // Based on the sign, do either a min or max reduction. QueryOperatorEnumerator<int?, TKey> source = _source; TKey keyUnused = default(TKey)!; if (source.MoveNext(ref currentElement, ref keyUnused)) { int i = 0; // We just scroll through the enumerator and find the min or max. if (_sign == -1) { int? elem = default(int?); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (currentElement == null || elem < currentElement) { currentElement = elem; } } } else { int? elem = default(int?); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (currentElement == null || elem > currentElement) { currentElement = elem; } } } // The sum has been calculated. Now just return. return true; } return false; } //--------------------------------------------------------------------------------------- // Dispose of resources associated with the underlying enumerator. // protected override void Dispose(bool disposing) { Debug.Assert(_source != null); _source.Dispose(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // NullableIntMinMaxAggregationOperator.cs // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Diagnostics; using System.Threading; namespace System.Linq.Parallel { /// <summary> /// An inlined min/max aggregation and its enumerator, for Nullable ints. /// </summary> internal sealed class NullableIntMinMaxAggregationOperator : InlinedAggregationOperator<int?, int?, int?> { private readonly int _sign; // The sign (-1 for min, 1 for max). //--------------------------------------------------------------------------------------- // Constructs a new instance of a min/max associative operator. // internal NullableIntMinMaxAggregationOperator(IEnumerable<int?> child, int sign) : base(child) { Debug.Assert(sign == -1 || sign == 1, "invalid sign"); _sign = sign; } //--------------------------------------------------------------------------------------- // Executes the entire query tree, and aggregates the intermediate results into the // final result based on the binary operators and final reduction. // // Return Value: // The single result of aggregation. // protected override int? InternalAggregate(ref Exception? singularExceptionToThrow) { // Because the final reduction is typically much cheaper than the intermediate // reductions over the individual partitions, and because each parallel partition // will do a lot of work to produce a single output element, we prefer to turn off // pipelining, and process the final reductions serially. using (IEnumerator<int?> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, true)) { // Just return null right away for empty results. if (!enumerator.MoveNext()) { return null; } int? best = enumerator.Current; // Based on the sign, do either a min or max reduction. if (_sign == -1) { while (enumerator.MoveNext()) { int? current = enumerator.Current; if (best == null || current < best) { best = current; } } } else { while (enumerator.MoveNext()) { int? current = enumerator.Current; if (best == null || current > best) { best = current; } } } return best; } } //--------------------------------------------------------------------------------------- // Creates an enumerator that is used internally for the final aggregation step. // protected override QueryOperatorEnumerator<int?, int> CreateEnumerator<TKey>( int index, int count, QueryOperatorEnumerator<int?, TKey> source, object? sharedData, CancellationToken cancellationToken) { return new NullableIntMinMaxAggregationOperatorEnumerator<TKey>(source, index, _sign, cancellationToken); } //--------------------------------------------------------------------------------------- // This enumerator type encapsulates the intermediary aggregation over the underlying // (possibly partitioned) data source. // private sealed class NullableIntMinMaxAggregationOperatorEnumerator<TKey> : InlinedAggregationOperatorEnumerator<int?> { private readonly QueryOperatorEnumerator<int?, TKey> _source; // The source data. private readonly int _sign; // The sign for comparisons (-1 means min, 1 means max). //--------------------------------------------------------------------------------------- // Instantiates a new aggregation operator. // internal NullableIntMinMaxAggregationOperatorEnumerator(QueryOperatorEnumerator<int?, TKey> source, int partitionIndex, int sign, CancellationToken cancellationToken) : base(partitionIndex, cancellationToken) { Debug.Assert(source != null); _source = source; _sign = sign; } //--------------------------------------------------------------------------------------- // Tallies up the min/max of the underlying data source, walking the entire thing the first // time MoveNext is called on this object. // protected override bool MoveNextCore(ref int? currentElement) { // Based on the sign, do either a min or max reduction. QueryOperatorEnumerator<int?, TKey> source = _source; TKey keyUnused = default(TKey)!; if (source.MoveNext(ref currentElement, ref keyUnused)) { int i = 0; // We just scroll through the enumerator and find the min or max. if (_sign == -1) { int? elem = default(int?); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (currentElement == null || elem < currentElement) { currentElement = elem; } } } else { int? elem = default(int?); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (currentElement == null || elem > currentElement) { currentElement = elem; } } } // The sum has been calculated. Now just return. return true; } return false; } //--------------------------------------------------------------------------------------- // Dispose of resources associated with the underlying enumerator. // protected override void Dispose(bool disposing) { Debug.Assert(_source != null); _source.Dispose(); } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/Regression/JitBlue/GitHub_20040/GitHub_20040.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup> <PropertyGroup> <DebugType>None</DebugType> <Optimize>True</Optimize> </PropertyGroup> <ItemGroup> <Compile Include="$(MSBuildProjectName).cs" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ReflectionModel/ReflectionMemberExportDefinitionTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel.Composition.Factories; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition.Primitives; using System.Linq; using System.Reflection; using Microsoft.Internal; using Xunit; namespace System.ComponentModel.Composition.ReflectionModel { public class ReflectionMemberExportDefinitionTests { private static ReflectionMemberExportDefinition CreateReflectionExportDefinition(LazyMemberInfo exportMember, string contractname, IDictionary<string, object> metadata) { return CreateReflectionExportDefinition(exportMember, contractname, metadata, null); } private static ReflectionMemberExportDefinition CreateReflectionExportDefinition(LazyMemberInfo exportMember, string contractname, IDictionary<string, object> metadata, ICompositionElement origin) { return (ReflectionMemberExportDefinition)ReflectionModelServices.CreateExportDefinition( exportMember, contractname, CreateLazyMetadata(metadata), origin); } private static Lazy<IDictionary<string, object>> CreateLazyMetadata(IDictionary<string, object> metadata) { return new Lazy<IDictionary<string, object>>(() => metadata, false); } [Fact] public void Constructor() { MemberInfo expectedMember = this.GetType(); LazyMemberInfo expectedExportingMemberInfo = new LazyMemberInfo(expectedMember); string expectedContractName = "Contract"; IDictionary<string, object> expectedMetadata = new Dictionary<string, object>(); expectedMetadata["Key1"] = 1; expectedMetadata["Key2"] = "Value2"; ReflectionMemberExportDefinition definition = CreateReflectionExportDefinition(expectedExportingMemberInfo, expectedContractName, expectedMetadata); Assert.Equal(expectedExportingMemberInfo, definition.ExportingLazyMember); Assert.Same(expectedMember, definition.ExportingLazyMember.GetAccessors()[0]); Assert.Equal(MemberTypes.TypeInfo, definition.ExportingLazyMember.MemberType); Assert.Same(expectedContractName, definition.ContractName); Assert.NotNull(definition.Metadata); Assert.True(definition.Metadata.Keys.SequenceEqual(expectedMetadata.Keys)); Assert.True(definition.Metadata.Values.SequenceEqual(expectedMetadata.Values)); Assert.Null(((ICompositionElement)definition).Origin); } [Fact] public void Constructor_NullMetadata() { MemberInfo expectedMember = this.GetType(); LazyMemberInfo expectedExportingMemberInfo = new LazyMemberInfo(expectedMember); string expectedContractName = "Contract"; ReflectionMemberExportDefinition definition = CreateReflectionExportDefinition(expectedExportingMemberInfo, expectedContractName, null); Assert.Equal(expectedExportingMemberInfo, definition.ExportingLazyMember); Assert.Same(expectedMember, definition.ExportingLazyMember.GetAccessors()[0]); Assert.Equal(MemberTypes.TypeInfo, definition.ExportingLazyMember.MemberType); Assert.Same(expectedContractName, definition.ContractName); Assert.NotNull(definition.Metadata); Assert.Equal(0, definition.Metadata.Count); Assert.Null(((ICompositionElement)definition).Origin); } [Fact] public void SetDefinition_OriginIsSet() { var expectedPartDefinition = PartDefinitionFactory.CreateAttributed(typeof(object)); var exportDefinition = CreateReflectionExportDefinition(new LazyMemberInfo(this.GetType()), "ContractName", null, expectedPartDefinition); Assert.Same(expectedPartDefinition, ((ICompositionElement)exportDefinition).Origin); } [Fact] public void SetDefinition_PartDefinitionDoesNotContainCreationPolicy_CreationPolicyShouldNotBeInMetadata() { var expectedPartDefinition = PartDefinitionFactory.CreateAttributed(typeof(object)); var exportDefinition = CreateReflectionExportDefinition(new LazyMemberInfo(this.GetType()), "ContractName", null); Assert.False(exportDefinition.Metadata.ContainsKey(CompositionConstants.PartCreationPolicyMetadataName)); } [Fact] public void ICompositionElementDisplayName_ValueAsContractName_ShouldIncludeContractName() { var contractNames = Expectations.GetContractNamesWithEmpty(); foreach (var contractName in contractNames) { if (string.IsNullOrEmpty(contractName)) continue; var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(typeof(string)), contractName, null); var e = CreateDisplayNameExpectation(contractName); Assert.Equal(e, definition.DisplayName); } } [Fact] public void ICompositionElementDisplayName_TypeAsMember_ShouldIncludeMemberDisplayName() { var types = Expectations.GetTypes(); foreach (var type in types) { var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(type), "Contract", null); var e = CreateDisplayNameExpectation(type); Assert.Equal(e, definition.DisplayName); } } [Fact] public void ICompositionElementDisplayName_ValueAsMember_ShouldIncludeMemberDisplayName() { var members = Expectations.GetMembers(); foreach (var member in members) { var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(member), "Contract", null); var e = CreateDisplayNameExpectation(member); Assert.Equal(e, definition.DisplayName); } } [Fact] public void ToString_ShouldReturnDisplayName() { var members = Expectations.GetMembers(); foreach (var member in members) { var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(member), "Contract", null); Assert.Equal(definition.DisplayName, definition.ToString()); } } private static string CreateDisplayNameExpectation(string contractName) { return string.Format("System.String (ContractName=\"{0}\")", contractName); } private static string CreateDisplayNameExpectation(MemberInfo member) { return string.Format("{0} (ContractName=\"Contract\")", member.GetDisplayName()); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.ComponentModel.Composition.Factories; using System.ComponentModel.Composition.Hosting; using System.ComponentModel.Composition.Primitives; using System.Linq; using System.Reflection; using Microsoft.Internal; using Xunit; namespace System.ComponentModel.Composition.ReflectionModel { public class ReflectionMemberExportDefinitionTests { private static ReflectionMemberExportDefinition CreateReflectionExportDefinition(LazyMemberInfo exportMember, string contractname, IDictionary<string, object> metadata) { return CreateReflectionExportDefinition(exportMember, contractname, metadata, null); } private static ReflectionMemberExportDefinition CreateReflectionExportDefinition(LazyMemberInfo exportMember, string contractname, IDictionary<string, object> metadata, ICompositionElement origin) { return (ReflectionMemberExportDefinition)ReflectionModelServices.CreateExportDefinition( exportMember, contractname, CreateLazyMetadata(metadata), origin); } private static Lazy<IDictionary<string, object>> CreateLazyMetadata(IDictionary<string, object> metadata) { return new Lazy<IDictionary<string, object>>(() => metadata, false); } [Fact] public void Constructor() { MemberInfo expectedMember = this.GetType(); LazyMemberInfo expectedExportingMemberInfo = new LazyMemberInfo(expectedMember); string expectedContractName = "Contract"; IDictionary<string, object> expectedMetadata = new Dictionary<string, object>(); expectedMetadata["Key1"] = 1; expectedMetadata["Key2"] = "Value2"; ReflectionMemberExportDefinition definition = CreateReflectionExportDefinition(expectedExportingMemberInfo, expectedContractName, expectedMetadata); Assert.Equal(expectedExportingMemberInfo, definition.ExportingLazyMember); Assert.Same(expectedMember, definition.ExportingLazyMember.GetAccessors()[0]); Assert.Equal(MemberTypes.TypeInfo, definition.ExportingLazyMember.MemberType); Assert.Same(expectedContractName, definition.ContractName); Assert.NotNull(definition.Metadata); Assert.True(definition.Metadata.Keys.SequenceEqual(expectedMetadata.Keys)); Assert.True(definition.Metadata.Values.SequenceEqual(expectedMetadata.Values)); Assert.Null(((ICompositionElement)definition).Origin); } [Fact] public void Constructor_NullMetadata() { MemberInfo expectedMember = this.GetType(); LazyMemberInfo expectedExportingMemberInfo = new LazyMemberInfo(expectedMember); string expectedContractName = "Contract"; ReflectionMemberExportDefinition definition = CreateReflectionExportDefinition(expectedExportingMemberInfo, expectedContractName, null); Assert.Equal(expectedExportingMemberInfo, definition.ExportingLazyMember); Assert.Same(expectedMember, definition.ExportingLazyMember.GetAccessors()[0]); Assert.Equal(MemberTypes.TypeInfo, definition.ExportingLazyMember.MemberType); Assert.Same(expectedContractName, definition.ContractName); Assert.NotNull(definition.Metadata); Assert.Equal(0, definition.Metadata.Count); Assert.Null(((ICompositionElement)definition).Origin); } [Fact] public void SetDefinition_OriginIsSet() { var expectedPartDefinition = PartDefinitionFactory.CreateAttributed(typeof(object)); var exportDefinition = CreateReflectionExportDefinition(new LazyMemberInfo(this.GetType()), "ContractName", null, expectedPartDefinition); Assert.Same(expectedPartDefinition, ((ICompositionElement)exportDefinition).Origin); } [Fact] public void SetDefinition_PartDefinitionDoesNotContainCreationPolicy_CreationPolicyShouldNotBeInMetadata() { var expectedPartDefinition = PartDefinitionFactory.CreateAttributed(typeof(object)); var exportDefinition = CreateReflectionExportDefinition(new LazyMemberInfo(this.GetType()), "ContractName", null); Assert.False(exportDefinition.Metadata.ContainsKey(CompositionConstants.PartCreationPolicyMetadataName)); } [Fact] public void ICompositionElementDisplayName_ValueAsContractName_ShouldIncludeContractName() { var contractNames = Expectations.GetContractNamesWithEmpty(); foreach (var contractName in contractNames) { if (string.IsNullOrEmpty(contractName)) continue; var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(typeof(string)), contractName, null); var e = CreateDisplayNameExpectation(contractName); Assert.Equal(e, definition.DisplayName); } } [Fact] public void ICompositionElementDisplayName_TypeAsMember_ShouldIncludeMemberDisplayName() { var types = Expectations.GetTypes(); foreach (var type in types) { var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(type), "Contract", null); var e = CreateDisplayNameExpectation(type); Assert.Equal(e, definition.DisplayName); } } [Fact] public void ICompositionElementDisplayName_ValueAsMember_ShouldIncludeMemberDisplayName() { var members = Expectations.GetMembers(); foreach (var member in members) { var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(member), "Contract", null); var e = CreateDisplayNameExpectation(member); Assert.Equal(e, definition.DisplayName); } } [Fact] public void ToString_ShouldReturnDisplayName() { var members = Expectations.GetMembers(); foreach (var member in members) { var definition = (ICompositionElement)CreateReflectionExportDefinition(new LazyMemberInfo(member), "Contract", null); Assert.Equal(definition.DisplayName, definition.ToString()); } } private static string CreateDisplayNameExpectation(string contractName) { return string.Format("System.String (ContractName=\"{0}\")", contractName); } private static string CreateDisplayNameExpectation(MemberInfo member) { return string.Format("{0} (ContractName=\"Contract\")", member.GetDisplayName()); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.ComponentModel.TypeConverter/tests/Mocks/MockPropertyDescriptor.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.ComponentModel.Tests { internal class MockPropertyDescriptor : PropertyDescriptor { public MockPropertyDescriptor(string name = null, Attribute[] attributes = null) : base(name ?? nameof(MockPropertyDescriptor), attributes ?? new Attribute[0]) { } public override Type ComponentType { get { throw new NotImplementedException(); } } public override bool IsReadOnly { get { throw new NotImplementedException(); } } public override Type PropertyType { get { throw new NotImplementedException(); } } public override bool CanResetValue(object component) { throw new NotImplementedException(); } public override object GetValue(object component) { throw new NotImplementedException(); } public override void ResetValue(object component) { throw new NotImplementedException(); } public override void SetValue(object component, object value) { throw new NotImplementedException(); } public override bool ShouldSerializeValue(object component) { throw new NotImplementedException(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.ComponentModel.Tests { internal class MockPropertyDescriptor : PropertyDescriptor { public MockPropertyDescriptor(string name = null, Attribute[] attributes = null) : base(name ?? nameof(MockPropertyDescriptor), attributes ?? new Attribute[0]) { } public override Type ComponentType { get { throw new NotImplementedException(); } } public override bool IsReadOnly { get { throw new NotImplementedException(); } } public override Type PropertyType { get { throw new NotImplementedException(); } } public override bool CanResetValue(object component) { throw new NotImplementedException(); } public override object GetValue(object component) { throw new NotImplementedException(); } public override void ResetValue(object component) { throw new NotImplementedException(); } public override void SetValue(object component, object value) { throw new NotImplementedException(); } public override bool ShouldSerializeValue(object component) { throw new NotImplementedException(); } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/SkipLocalsInitAttribute.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { /// <summary> /// Used to indicate to the compiler that the <c>.locals init</c> /// flag should not be set in method headers. /// </summary> /// <remarks> /// This attribute is unsafe because it may reveal uninitialized memory to /// the application in certain instances (e.g., reading from uninitialized /// stackalloc'd memory). If applied to a method directly, the attribute /// applies to that method and all nested functions (lambdas, local /// functions) below it. If applied to a type or module, it applies to all /// methods nested inside. This attribute is intentionally not permitted on /// assemblies. Use at the module level instead to apply to multiple type /// declarations. /// </remarks> [AttributeUsage(AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event, Inherited = false)] public sealed class SkipLocalsInitAttribute : Attribute { public SkipLocalsInitAttribute() { } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.CompilerServices { /// <summary> /// Used to indicate to the compiler that the <c>.locals init</c> /// flag should not be set in method headers. /// </summary> /// <remarks> /// This attribute is unsafe because it may reveal uninitialized memory to /// the application in certain instances (e.g., reading from uninitialized /// stackalloc'd memory). If applied to a method directly, the attribute /// applies to that method and all nested functions (lambdas, local /// functions) below it. If applied to a type or module, it applies to all /// methods nested inside. This attribute is intentionally not permitted on /// assemblies. Use at the module level instead to apply to multiple type /// declarations. /// </remarks> [AttributeUsage(AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event, Inherited = false)] public sealed class SkipLocalsInitAttribute : Attribute { public SkipLocalsInitAttribute() { } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Threading.RateLimiting/tests/System.Threading.RateLimiting.Tests.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks> </PropertyGroup> <ItemGroup> <Compile Include="BaseRateLimiterTests.cs" /> <Compile Include="ConcurrencyLimiterTests.cs" /> <Compile Include="TokenBucketRateLimiterTests.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\src\System.Threading.RateLimiting.csproj" /> </ItemGroup> </Project>
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks> </PropertyGroup> <ItemGroup> <Compile Include="BaseRateLimiterTests.cs" /> <Compile Include="ConcurrencyLimiterTests.cs" /> <Compile Include="TokenBucketRateLimiterTests.cs" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\src\System.Threading.RateLimiting.csproj" /> </ItemGroup> </Project>
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/JIT/HardwareIntrinsics/X86/Avx2/UnpackLow.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics; namespace IntelHardwareIntrinsicTest { class Program { const int Pass = 100; const int Fail = 0; static unsafe int Main(string[] args) { int testResult = Pass; if (Avx2.IsSupported) { using (TestTable<byte, byte, byte> byteTable = new TestTable<byte, byte, byte>(new byte[32] { 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0 }, new byte[32] { 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0 }, new byte[32])) using (TestTable<sbyte, sbyte, sbyte> sbyteTable = new TestTable<sbyte, sbyte, sbyte>(new sbyte[32] { 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0 }, new sbyte[32] { 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0 }, new sbyte[32])) using (TestTable<short, short, short> shortTable = new TestTable<short, short, short>(new short[16] { 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0 }, new short[16] { 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0}, new short[16])) using (TestTable<ushort, ushort, ushort> ushortTable = new TestTable<ushort, ushort, ushort>(new ushort[16] { 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0 }, new ushort[16] { 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0 }, new ushort[16])) using (TestTable<int, int, int> intTable = new TestTable<int, int, int>(new int[8] { 1, 5, 100, 0, 1, 5, 100, 0}, new int[8] { 22, 1, 50, 0, 22, 1, 50, 0 }, new int[8])) using (TestTable<uint, uint, uint> uintTable = new TestTable<uint, uint, uint>(new uint[8] { 1, 5, 100, 0, 1, 5, 100, 0 }, new uint[8] { 22, 1, 50, 0, 22, 1, 50, 0 }, new uint[8])) using (TestTable<long, long, long> longTable = new TestTable<long, long, long>(new long[4] { 1, -5, 100, 0 }, new long[4] { 22, -1, -50, 0}, new long[4])) using (TestTable<ulong, ulong, ulong> ulongTable = new TestTable<ulong, ulong, ulong>(new ulong[4] { 1, 5, 100, 0 }, new ulong[4] { 22, 1, 50, 0 }, new ulong[4])) { var vb1 = Unsafe.Read<Vector256<byte>>(byteTable.inArray1Ptr); var vb2 = Unsafe.Read<Vector256<byte>>(byteTable.inArray2Ptr); var vb3 = Avx2.UnpackLow(vb1, vb2); Unsafe.Write(byteTable.outArrayPtr, vb3); var vsb1 = Unsafe.Read<Vector256<sbyte>>(sbyteTable.inArray1Ptr); var vsb2 = Unsafe.Read<Vector256<sbyte>>(sbyteTable.inArray2Ptr); var vsb3 = Avx2.UnpackLow(vsb1, vsb2); Unsafe.Write(sbyteTable.outArrayPtr, vsb3); var vs1 = Unsafe.Read<Vector256<short>>(shortTable.inArray1Ptr); var vs2 = Unsafe.Read<Vector256<short>>(shortTable.inArray2Ptr); var vs3 = Avx2.UnpackLow(vs1, vs2); Unsafe.Write(shortTable.outArrayPtr, vs3); var vus1 = Unsafe.Read<Vector256<ushort>>(ushortTable.inArray1Ptr); var vus2 = Unsafe.Read<Vector256<ushort>>(ushortTable.inArray2Ptr); var vus3 = Avx2.UnpackLow(vus1, vus2); Unsafe.Write(ushortTable.outArrayPtr, vus3); var vi1 = Unsafe.Read<Vector256<int>>(intTable.inArray1Ptr); var vi2 = Unsafe.Read<Vector256<int>>(intTable.inArray2Ptr); var vi3 = Avx2.UnpackLow(vi1, vi2); Unsafe.Write(intTable.outArrayPtr, vi3); var vui1 = Unsafe.Read<Vector256<uint>>(uintTable.inArray1Ptr); var vui2 = Unsafe.Read<Vector256<uint>>(uintTable.inArray2Ptr); var vui3 = Avx2.UnpackLow(vui1, vui2); Unsafe.Write(uintTable.outArrayPtr, vui3); var vl1 = Unsafe.Read<Vector256<long>>(longTable.inArray1Ptr); var vl2 = Unsafe.Read<Vector256<long>>(longTable.inArray2Ptr); var vl3 = Avx2.UnpackLow(vl1, vl2); Unsafe.Write(longTable.outArrayPtr, vl3); var vul1 = Unsafe.Read<Vector256<ulong>>(ulongTable.inArray1Ptr); var vul2 = Unsafe.Read<Vector256<ulong>>(ulongTable.inArray2Ptr); var vul3 = Avx2.UnpackLow(vul1, vul2); Unsafe.Write(ulongTable.outArrayPtr, vul3); if((byteTable.inArray1[0] != byteTable.outArray[0]) || (byteTable.inArray2[0] != byteTable.outArray[1]) || (byteTable.inArray1[1] != byteTable.outArray[2]) || (byteTable.inArray2[1] != byteTable.outArray[3]) || (byteTable.inArray1[2] != byteTable.outArray[4]) || (byteTable.inArray2[2] != byteTable.outArray[5]) || (byteTable.inArray1[3] != byteTable.outArray[6]) || (byteTable.inArray2[3] != byteTable.outArray[7]) || (byteTable.inArray1[4] != byteTable.outArray[8]) || (byteTable.inArray2[4] != byteTable.outArray[9]) || (byteTable.inArray1[5] != byteTable.outArray[10]) || (byteTable.inArray2[5] != byteTable.outArray[11]) || (byteTable.inArray1[6] != byteTable.outArray[12]) || (byteTable.inArray2[6] != byteTable.outArray[13]) || (byteTable.inArray1[7] != byteTable.outArray[14]) || (byteTable.inArray2[7] != byteTable.outArray[15]) || (byteTable.inArray1[16] != byteTable.outArray[16]) || (byteTable.inArray2[16] != byteTable.outArray[17]) || (byteTable.inArray1[17] != byteTable.outArray[18]) || (byteTable.inArray2[17] != byteTable.outArray[19]) || (byteTable.inArray1[18] != byteTable.outArray[20]) || (byteTable.inArray2[18] != byteTable.outArray[21]) || (byteTable.inArray1[19] != byteTable.outArray[22]) || (byteTable.inArray2[19] != byteTable.outArray[23]) || (byteTable.inArray1[20] != byteTable.outArray[24]) || (byteTable.inArray2[20] != byteTable.outArray[25]) || (byteTable.inArray1[21] != byteTable.outArray[26]) || (byteTable.inArray2[21] != byteTable.outArray[27]) || (byteTable.inArray1[22] != byteTable.outArray[28]) || (byteTable.inArray2[22] != byteTable.outArray[29]) || (byteTable.inArray1[23] != byteTable.outArray[30]) || (byteTable.inArray2[23] != byteTable.outArray[31])) { Console.WriteLine("AVX2 UnpackLow failed on byte:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if((sbyteTable.inArray1[0] != sbyteTable.outArray[0]) || (sbyteTable.inArray2[0] != sbyteTable.outArray[1]) || (sbyteTable.inArray1[1] != sbyteTable.outArray[2]) || (sbyteTable.inArray2[1] != sbyteTable.outArray[3]) || (sbyteTable.inArray1[2] != sbyteTable.outArray[4]) || (sbyteTable.inArray2[2] != sbyteTable.outArray[5]) || (sbyteTable.inArray1[3] != sbyteTable.outArray[6]) || (sbyteTable.inArray2[3] != sbyteTable.outArray[7]) || (sbyteTable.inArray1[4] != sbyteTable.outArray[8]) || (sbyteTable.inArray2[4] != sbyteTable.outArray[9]) || (sbyteTable.inArray1[5] != sbyteTable.outArray[10]) || (sbyteTable.inArray2[5] != sbyteTable.outArray[11]) || (sbyteTable.inArray1[6] != sbyteTable.outArray[12]) || (sbyteTable.inArray2[6] != sbyteTable.outArray[13]) || (sbyteTable.inArray1[7] != sbyteTable.outArray[14]) || (sbyteTable.inArray2[7] != sbyteTable.outArray[15]) || (sbyteTable.inArray1[16] != sbyteTable.outArray[16]) || (sbyteTable.inArray2[16] != sbyteTable.outArray[17]) || (sbyteTable.inArray1[17] != sbyteTable.outArray[18]) || (sbyteTable.inArray2[17] != sbyteTable.outArray[19]) || (sbyteTable.inArray1[18] != sbyteTable.outArray[20]) || (sbyteTable.inArray2[18] != sbyteTable.outArray[21]) || (sbyteTable.inArray1[19] != sbyteTable.outArray[22]) || (sbyteTable.inArray2[19] != sbyteTable.outArray[23]) || (sbyteTable.inArray1[20] != sbyteTable.outArray[24]) || (sbyteTable.inArray2[20] != sbyteTable.outArray[25]) || (sbyteTable.inArray1[21] != sbyteTable.outArray[26]) || (sbyteTable.inArray2[21] != sbyteTable.outArray[27]) || (sbyteTable.inArray1[22] != sbyteTable.outArray[28]) || (sbyteTable.inArray2[22] != sbyteTable.outArray[29]) || (sbyteTable.inArray1[23] != sbyteTable.outArray[30]) || (sbyteTable.inArray2[23] != sbyteTable.outArray[31])) { Console.WriteLine("AVX2 UnpackLow failed on sbyte:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if((shortTable.inArray1[0] != shortTable.outArray[0]) || (shortTable.inArray2[0] != shortTable.outArray[1]) || (shortTable.inArray1[1] != shortTable.outArray[2]) || (shortTable.inArray2[1] != shortTable.outArray[3]) || (shortTable.inArray1[2] != shortTable.outArray[4]) || (shortTable.inArray2[2] != shortTable.outArray[5]) || (shortTable.inArray1[3] != shortTable.outArray[6]) || (shortTable.inArray2[3] != shortTable.outArray[7]) || (shortTable.inArray1[8] != shortTable.outArray[8]) || (shortTable.inArray2[8] != shortTable.outArray[9]) || (shortTable.inArray1[9] != shortTable.outArray[10]) || (shortTable.inArray2[9] != shortTable.outArray[11]) || (shortTable.inArray1[10] != shortTable.outArray[12]) || (shortTable.inArray2[10] != shortTable.outArray[13]) || (shortTable.inArray1[11] != shortTable.outArray[14]) || (shortTable.inArray2[11] != shortTable.outArray[15])) { Console.WriteLine("AVX2 UnpackLow failed on short:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if((ushortTable.inArray1[0] != ushortTable.outArray[0]) || (ushortTable.inArray2[0] != ushortTable.outArray[1]) || (ushortTable.inArray1[1] != ushortTable.outArray[2]) || (ushortTable.inArray2[1] != ushortTable.outArray[3]) || (ushortTable.inArray1[2] != ushortTable.outArray[4]) || (ushortTable.inArray2[2] != ushortTable.outArray[5]) || (ushortTable.inArray1[3] != ushortTable.outArray[6]) || (ushortTable.inArray2[3] != ushortTable.outArray[7]) || (ushortTable.inArray1[8] != ushortTable.outArray[8]) || (ushortTable.inArray2[8] != ushortTable.outArray[9]) || (ushortTable.inArray1[9] != ushortTable.outArray[10]) || (ushortTable.inArray2[9] != ushortTable.outArray[11]) || (ushortTable.inArray1[10] != ushortTable.outArray[12]) || (ushortTable.inArray2[10] != ushortTable.outArray[13]) || (ushortTable.inArray1[11] != ushortTable.outArray[14]) || (ushortTable.inArray2[11] != ushortTable.outArray[15])) { Console.WriteLine("AVX2 UnpackLow failed on ushort:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((intTable.inArray1[0] != intTable.outArray[0]) || (intTable.inArray2[0] != intTable.outArray[1]) || (intTable.inArray1[1] != intTable.outArray[2]) || (intTable.inArray2[1] != intTable.outArray[3]) || (intTable.inArray1[4] != intTable.outArray[4]) || (intTable.inArray2[4] != intTable.outArray[5]) || (intTable.inArray1[5] != intTable.outArray[6]) || (intTable.inArray2[5] != intTable.outArray[7])) { Console.WriteLine("AVX2 UnpackLow failed on int:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((uintTable.inArray1[0] != uintTable.outArray[0]) || (uintTable.inArray2[0] != uintTable.outArray[1]) || (uintTable.inArray1[1] != uintTable.outArray[2]) || (uintTable.inArray2[1] != uintTable.outArray[3]) || (uintTable.inArray1[4] != uintTable.outArray[4]) || (uintTable.inArray2[4] != uintTable.outArray[5]) || (uintTable.inArray1[5] != uintTable.outArray[6]) || (uintTable.inArray2[5] != uintTable.outArray[7])) { Console.WriteLine("AVX2 UnpackLow failed on uint:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((longTable.inArray1[0] != longTable.outArray[0]) || (longTable.inArray2[0] != longTable.outArray[1]) || (longTable.inArray1[2] != longTable.outArray[2]) || (longTable.inArray2[2] != longTable.outArray[3]) ) { Console.WriteLine("AVX2 UnpackLow failed on long:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((ulongTable.inArray1[0] != ulongTable.outArray[0]) || (ulongTable.inArray2[0] != ulongTable.outArray[1]) || (ulongTable.inArray1[2] != ulongTable.outArray[2]) || (ulongTable.inArray2[2] != ulongTable.outArray[3]) ) { Console.WriteLine("AVX2 UnpackLow failed on ulong:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } } } return testResult; } public unsafe struct TestTable<T1, T2, T3> : IDisposable where T1 : struct where T2 : struct where T3 : struct { public T1[] inArray1; public T2[] inArray2; public T3[] outArray; public void* inArray1Ptr => inHandle1.AddrOfPinnedObject().ToPointer(); public void* inArray2Ptr => inHandle2.AddrOfPinnedObject().ToPointer(); public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer(); GCHandle inHandle1; GCHandle inHandle2; GCHandle outHandle; public TestTable(T1[] a, T2[] b, T3[] c) { this.inArray1 = a; this.inArray2 = b; this.outArray = c; inHandle1 = GCHandle.Alloc(inArray1, GCHandleType.Pinned); inHandle2 = GCHandle.Alloc(inArray2, GCHandleType.Pinned); outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned); } public bool CheckResult(Func<T1, T2, T3, bool> check) { for (int i = 0; i < inArray1.Length; i++) { if (!check(inArray1[i], inArray2[i], outArray[i])) { return false; } } return true; } public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics; namespace IntelHardwareIntrinsicTest { class Program { const int Pass = 100; const int Fail = 0; static unsafe int Main(string[] args) { int testResult = Pass; if (Avx2.IsSupported) { using (TestTable<byte, byte, byte> byteTable = new TestTable<byte, byte, byte>(new byte[32] { 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0 }, new byte[32] { 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0 }, new byte[32])) using (TestTable<sbyte, sbyte, sbyte> sbyteTable = new TestTable<sbyte, sbyte, sbyte>(new sbyte[32] { 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0 }, new sbyte[32] { 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0 }, new sbyte[32])) using (TestTable<short, short, short> shortTable = new TestTable<short, short, short>(new short[16] { 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0, 1, -5, 100, 0 }, new short[16] { 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0, 22, -1, -50, 0}, new short[16])) using (TestTable<ushort, ushort, ushort> ushortTable = new TestTable<ushort, ushort, ushort>(new ushort[16] { 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0, 1, 5, 100, 0 }, new ushort[16] { 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0, 22, 1, 50, 0 }, new ushort[16])) using (TestTable<int, int, int> intTable = new TestTable<int, int, int>(new int[8] { 1, 5, 100, 0, 1, 5, 100, 0}, new int[8] { 22, 1, 50, 0, 22, 1, 50, 0 }, new int[8])) using (TestTable<uint, uint, uint> uintTable = new TestTable<uint, uint, uint>(new uint[8] { 1, 5, 100, 0, 1, 5, 100, 0 }, new uint[8] { 22, 1, 50, 0, 22, 1, 50, 0 }, new uint[8])) using (TestTable<long, long, long> longTable = new TestTable<long, long, long>(new long[4] { 1, -5, 100, 0 }, new long[4] { 22, -1, -50, 0}, new long[4])) using (TestTable<ulong, ulong, ulong> ulongTable = new TestTable<ulong, ulong, ulong>(new ulong[4] { 1, 5, 100, 0 }, new ulong[4] { 22, 1, 50, 0 }, new ulong[4])) { var vb1 = Unsafe.Read<Vector256<byte>>(byteTable.inArray1Ptr); var vb2 = Unsafe.Read<Vector256<byte>>(byteTable.inArray2Ptr); var vb3 = Avx2.UnpackLow(vb1, vb2); Unsafe.Write(byteTable.outArrayPtr, vb3); var vsb1 = Unsafe.Read<Vector256<sbyte>>(sbyteTable.inArray1Ptr); var vsb2 = Unsafe.Read<Vector256<sbyte>>(sbyteTable.inArray2Ptr); var vsb3 = Avx2.UnpackLow(vsb1, vsb2); Unsafe.Write(sbyteTable.outArrayPtr, vsb3); var vs1 = Unsafe.Read<Vector256<short>>(shortTable.inArray1Ptr); var vs2 = Unsafe.Read<Vector256<short>>(shortTable.inArray2Ptr); var vs3 = Avx2.UnpackLow(vs1, vs2); Unsafe.Write(shortTable.outArrayPtr, vs3); var vus1 = Unsafe.Read<Vector256<ushort>>(ushortTable.inArray1Ptr); var vus2 = Unsafe.Read<Vector256<ushort>>(ushortTable.inArray2Ptr); var vus3 = Avx2.UnpackLow(vus1, vus2); Unsafe.Write(ushortTable.outArrayPtr, vus3); var vi1 = Unsafe.Read<Vector256<int>>(intTable.inArray1Ptr); var vi2 = Unsafe.Read<Vector256<int>>(intTable.inArray2Ptr); var vi3 = Avx2.UnpackLow(vi1, vi2); Unsafe.Write(intTable.outArrayPtr, vi3); var vui1 = Unsafe.Read<Vector256<uint>>(uintTable.inArray1Ptr); var vui2 = Unsafe.Read<Vector256<uint>>(uintTable.inArray2Ptr); var vui3 = Avx2.UnpackLow(vui1, vui2); Unsafe.Write(uintTable.outArrayPtr, vui3); var vl1 = Unsafe.Read<Vector256<long>>(longTable.inArray1Ptr); var vl2 = Unsafe.Read<Vector256<long>>(longTable.inArray2Ptr); var vl3 = Avx2.UnpackLow(vl1, vl2); Unsafe.Write(longTable.outArrayPtr, vl3); var vul1 = Unsafe.Read<Vector256<ulong>>(ulongTable.inArray1Ptr); var vul2 = Unsafe.Read<Vector256<ulong>>(ulongTable.inArray2Ptr); var vul3 = Avx2.UnpackLow(vul1, vul2); Unsafe.Write(ulongTable.outArrayPtr, vul3); if((byteTable.inArray1[0] != byteTable.outArray[0]) || (byteTable.inArray2[0] != byteTable.outArray[1]) || (byteTable.inArray1[1] != byteTable.outArray[2]) || (byteTable.inArray2[1] != byteTable.outArray[3]) || (byteTable.inArray1[2] != byteTable.outArray[4]) || (byteTable.inArray2[2] != byteTable.outArray[5]) || (byteTable.inArray1[3] != byteTable.outArray[6]) || (byteTable.inArray2[3] != byteTable.outArray[7]) || (byteTable.inArray1[4] != byteTable.outArray[8]) || (byteTable.inArray2[4] != byteTable.outArray[9]) || (byteTable.inArray1[5] != byteTable.outArray[10]) || (byteTable.inArray2[5] != byteTable.outArray[11]) || (byteTable.inArray1[6] != byteTable.outArray[12]) || (byteTable.inArray2[6] != byteTable.outArray[13]) || (byteTable.inArray1[7] != byteTable.outArray[14]) || (byteTable.inArray2[7] != byteTable.outArray[15]) || (byteTable.inArray1[16] != byteTable.outArray[16]) || (byteTable.inArray2[16] != byteTable.outArray[17]) || (byteTable.inArray1[17] != byteTable.outArray[18]) || (byteTable.inArray2[17] != byteTable.outArray[19]) || (byteTable.inArray1[18] != byteTable.outArray[20]) || (byteTable.inArray2[18] != byteTable.outArray[21]) || (byteTable.inArray1[19] != byteTable.outArray[22]) || (byteTable.inArray2[19] != byteTable.outArray[23]) || (byteTable.inArray1[20] != byteTable.outArray[24]) || (byteTable.inArray2[20] != byteTable.outArray[25]) || (byteTable.inArray1[21] != byteTable.outArray[26]) || (byteTable.inArray2[21] != byteTable.outArray[27]) || (byteTable.inArray1[22] != byteTable.outArray[28]) || (byteTable.inArray2[22] != byteTable.outArray[29]) || (byteTable.inArray1[23] != byteTable.outArray[30]) || (byteTable.inArray2[23] != byteTable.outArray[31])) { Console.WriteLine("AVX2 UnpackLow failed on byte:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if((sbyteTable.inArray1[0] != sbyteTable.outArray[0]) || (sbyteTable.inArray2[0] != sbyteTable.outArray[1]) || (sbyteTable.inArray1[1] != sbyteTable.outArray[2]) || (sbyteTable.inArray2[1] != sbyteTable.outArray[3]) || (sbyteTable.inArray1[2] != sbyteTable.outArray[4]) || (sbyteTable.inArray2[2] != sbyteTable.outArray[5]) || (sbyteTable.inArray1[3] != sbyteTable.outArray[6]) || (sbyteTable.inArray2[3] != sbyteTable.outArray[7]) || (sbyteTable.inArray1[4] != sbyteTable.outArray[8]) || (sbyteTable.inArray2[4] != sbyteTable.outArray[9]) || (sbyteTable.inArray1[5] != sbyteTable.outArray[10]) || (sbyteTable.inArray2[5] != sbyteTable.outArray[11]) || (sbyteTable.inArray1[6] != sbyteTable.outArray[12]) || (sbyteTable.inArray2[6] != sbyteTable.outArray[13]) || (sbyteTable.inArray1[7] != sbyteTable.outArray[14]) || (sbyteTable.inArray2[7] != sbyteTable.outArray[15]) || (sbyteTable.inArray1[16] != sbyteTable.outArray[16]) || (sbyteTable.inArray2[16] != sbyteTable.outArray[17]) || (sbyteTable.inArray1[17] != sbyteTable.outArray[18]) || (sbyteTable.inArray2[17] != sbyteTable.outArray[19]) || (sbyteTable.inArray1[18] != sbyteTable.outArray[20]) || (sbyteTable.inArray2[18] != sbyteTable.outArray[21]) || (sbyteTable.inArray1[19] != sbyteTable.outArray[22]) || (sbyteTable.inArray2[19] != sbyteTable.outArray[23]) || (sbyteTable.inArray1[20] != sbyteTable.outArray[24]) || (sbyteTable.inArray2[20] != sbyteTable.outArray[25]) || (sbyteTable.inArray1[21] != sbyteTable.outArray[26]) || (sbyteTable.inArray2[21] != sbyteTable.outArray[27]) || (sbyteTable.inArray1[22] != sbyteTable.outArray[28]) || (sbyteTable.inArray2[22] != sbyteTable.outArray[29]) || (sbyteTable.inArray1[23] != sbyteTable.outArray[30]) || (sbyteTable.inArray2[23] != sbyteTable.outArray[31])) { Console.WriteLine("AVX2 UnpackLow failed on sbyte:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if((shortTable.inArray1[0] != shortTable.outArray[0]) || (shortTable.inArray2[0] != shortTable.outArray[1]) || (shortTable.inArray1[1] != shortTable.outArray[2]) || (shortTable.inArray2[1] != shortTable.outArray[3]) || (shortTable.inArray1[2] != shortTable.outArray[4]) || (shortTable.inArray2[2] != shortTable.outArray[5]) || (shortTable.inArray1[3] != shortTable.outArray[6]) || (shortTable.inArray2[3] != shortTable.outArray[7]) || (shortTable.inArray1[8] != shortTable.outArray[8]) || (shortTable.inArray2[8] != shortTable.outArray[9]) || (shortTable.inArray1[9] != shortTable.outArray[10]) || (shortTable.inArray2[9] != shortTable.outArray[11]) || (shortTable.inArray1[10] != shortTable.outArray[12]) || (shortTable.inArray2[10] != shortTable.outArray[13]) || (shortTable.inArray1[11] != shortTable.outArray[14]) || (shortTable.inArray2[11] != shortTable.outArray[15])) { Console.WriteLine("AVX2 UnpackLow failed on short:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if((ushortTable.inArray1[0] != ushortTable.outArray[0]) || (ushortTable.inArray2[0] != ushortTable.outArray[1]) || (ushortTable.inArray1[1] != ushortTable.outArray[2]) || (ushortTable.inArray2[1] != ushortTable.outArray[3]) || (ushortTable.inArray1[2] != ushortTable.outArray[4]) || (ushortTable.inArray2[2] != ushortTable.outArray[5]) || (ushortTable.inArray1[3] != ushortTable.outArray[6]) || (ushortTable.inArray2[3] != ushortTable.outArray[7]) || (ushortTable.inArray1[8] != ushortTable.outArray[8]) || (ushortTable.inArray2[8] != ushortTable.outArray[9]) || (ushortTable.inArray1[9] != ushortTable.outArray[10]) || (ushortTable.inArray2[9] != ushortTable.outArray[11]) || (ushortTable.inArray1[10] != ushortTable.outArray[12]) || (ushortTable.inArray2[10] != ushortTable.outArray[13]) || (ushortTable.inArray1[11] != ushortTable.outArray[14]) || (ushortTable.inArray2[11] != ushortTable.outArray[15])) { Console.WriteLine("AVX2 UnpackLow failed on ushort:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((intTable.inArray1[0] != intTable.outArray[0]) || (intTable.inArray2[0] != intTable.outArray[1]) || (intTable.inArray1[1] != intTable.outArray[2]) || (intTable.inArray2[1] != intTable.outArray[3]) || (intTable.inArray1[4] != intTable.outArray[4]) || (intTable.inArray2[4] != intTable.outArray[5]) || (intTable.inArray1[5] != intTable.outArray[6]) || (intTable.inArray2[5] != intTable.outArray[7])) { Console.WriteLine("AVX2 UnpackLow failed on int:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((uintTable.inArray1[0] != uintTable.outArray[0]) || (uintTable.inArray2[0] != uintTable.outArray[1]) || (uintTable.inArray1[1] != uintTable.outArray[2]) || (uintTable.inArray2[1] != uintTable.outArray[3]) || (uintTable.inArray1[4] != uintTable.outArray[4]) || (uintTable.inArray2[4] != uintTable.outArray[5]) || (uintTable.inArray1[5] != uintTable.outArray[6]) || (uintTable.inArray2[5] != uintTable.outArray[7])) { Console.WriteLine("AVX2 UnpackLow failed on uint:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((longTable.inArray1[0] != longTable.outArray[0]) || (longTable.inArray2[0] != longTable.outArray[1]) || (longTable.inArray1[2] != longTable.outArray[2]) || (longTable.inArray2[2] != longTable.outArray[3]) ) { Console.WriteLine("AVX2 UnpackLow failed on long:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } if ((ulongTable.inArray1[0] != ulongTable.outArray[0]) || (ulongTable.inArray2[0] != ulongTable.outArray[1]) || (ulongTable.inArray1[2] != ulongTable.outArray[2]) || (ulongTable.inArray2[2] != ulongTable.outArray[3]) ) { Console.WriteLine("AVX2 UnpackLow failed on ulong:"); Console.WriteLine($" left: ({string.Join(", ", byteTable.inArray1)})"); Console.WriteLine($" right: ({string.Join(", ", byteTable.inArray2)})"); Console.WriteLine($" result: ({string.Join(", ", byteTable.outArray)})"); Console.WriteLine(); testResult = Fail; } } } return testResult; } public unsafe struct TestTable<T1, T2, T3> : IDisposable where T1 : struct where T2 : struct where T3 : struct { public T1[] inArray1; public T2[] inArray2; public T3[] outArray; public void* inArray1Ptr => inHandle1.AddrOfPinnedObject().ToPointer(); public void* inArray2Ptr => inHandle2.AddrOfPinnedObject().ToPointer(); public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer(); GCHandle inHandle1; GCHandle inHandle2; GCHandle outHandle; public TestTable(T1[] a, T2[] b, T3[] c) { this.inArray1 = a; this.inArray2 = b; this.outArray = c; inHandle1 = GCHandle.Alloc(inArray1, GCHandleType.Pinned); inHandle2 = GCHandle.Alloc(inArray2, GCHandleType.Pinned); outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned); } public bool CheckResult(Func<T1, T2, T3, bool> check) { for (int i = 0; i < inArray1.Length; i++) { if (!check(inArray1[i], inArray2[i], outArray[i])) { return false; } } return true; } public void Dispose() { inHandle1.Free(); inHandle2.Free(); outHandle.Free(); } } } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest926/Generated926.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated926 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public G3_C1398`1<T0> extends class G2_C427`2<!T0,class BaseClass0> implements class IBase2`2<!T0,class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1398::Method7.15970<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T0,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,class BaseClass0>::Method7<[1]>() ldstr "G3_C1398::Method7.MI.15971<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod4190() cil managed noinlining { ldstr "G3_C1398::ClassMethod4190.15972()" ret } .method public hidebysig newslot virtual instance string ClassMethod4191() cil managed noinlining { ldstr "G3_C1398::ClassMethod4191.15973()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G2_C427`2<!T0,class BaseClass0>::.ctor() ret } } .class public G2_C427`2<T0, T1> extends class G1_C8`2<class BaseClass1,class BaseClass1> implements class IBase2`2<class BaseClass1,!T1>, class IBase1`1<!T1> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C427::Method7.8839<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,!T1>::Method7<[1]>() ldstr "G2_C427::Method7.MI.8840<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G2_C427::Method4.8841()" ret } .method public hidebysig newslot virtual instance string 'IBase1<T1>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<!T1>::Method4() ldstr "G2_C427::Method4.MI.8842()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C427::Method5.8843()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C427::Method6.8844<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<T1>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<!T1>::Method6<[1]>() ldstr "G2_C427::Method6.MI.8845<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod2214() cil managed noinlining { ldstr "G2_C427::ClassMethod2214.8846()" ret } .method public hidebysig newslot virtual instance string ClassMethod2215() cil managed noinlining { ldstr "G2_C427::ClassMethod2215.8847()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass1,class BaseClass1>.ClassMethod1333'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public G1_C8`2<T0, T1> implements class IBase2`2<!T0,!T1>, IBase0 { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C8::Method7.4821<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T0,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,!T1>::Method7<[1]>() ldstr "G1_C8::Method7.MI.4822<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method0() cil managed noinlining { ldstr "G1_C8::Method0.4823()" ret } .method public hidebysig newslot virtual instance string 'IBase0.Method0'() cil managed noinlining { .override method instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ret } .method public hidebysig virtual instance string Method1() cil managed noinlining { ldstr "G1_C8::Method1.4825()" ret } .method public hidebysig newslot virtual instance string Method2<M0>() cil managed noinlining { ldstr "G1_C8::Method2.4826<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase0.Method2'<M0>() cil managed noinlining { .override method instance string IBase0::Method2<[1]>() ldstr "G1_C8::Method2.MI.4827<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method3<M0>() cil managed noinlining { ldstr "G1_C8::Method3.4828<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1332() cil managed noinlining { ldstr "G1_C8::ClassMethod1332.4829()" ret } .method public hidebysig newslot virtual instance string ClassMethod1333() cil managed noinlining { ldstr "G1_C8::ClassMethod1333.4830()" ret } .method public hidebysig newslot virtual instance string ClassMethod1334<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1334.4831<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1335<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1335.4832<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class interface public abstract IBase1`1<+T0> { .method public hidebysig newslot abstract virtual instance string Method4() cil managed { } .method public hidebysig newslot abstract virtual instance string Method5() cil managed { } .method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { } } .class interface public abstract IBase0 { .method public hidebysig newslot abstract virtual instance string Method0() cil managed { } .method public hidebysig newslot abstract virtual instance string Method1() cil managed { } .method public hidebysig newslot abstract virtual instance string Method2<M0>() cil managed { } .method public hidebysig newslot abstract virtual instance string Method3<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated926 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1398.T<T0,(class G3_C1398`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 21 .locals init (string[] actualResults) ldc.i4.s 16 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1398.T<T0,(class G3_C1398`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 16 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod4190() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod4191() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1398.A<(class G3_C1398`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 21 .locals init (string[] actualResults) ldc.i4.s 16 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1398.A<(class G3_C1398`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 16 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4190() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4191() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1398.B<(class G3_C1398`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 21 .locals init (string[] actualResults) ldc.i4.s 16 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1398.B<(class G3_C1398`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 16 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4190() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4191() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.T.T<T0,T1,(class G2_C427`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.T.T<T0,T1,(class G2_C427`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.A.T<T1,(class G2_C427`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.A.T<T1,(class G2_C427`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.A.A<(class G2_C427`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.A.A<(class G2_C427`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.A.B<(class G2_C427`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.A.B<(class G2_C427`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.B.T<T1,(class G2_C427`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.B.T<T1,(class G2_C427`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.B.A<(class G2_C427`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.B.A<(class G2_C427`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.B.B<(class G2_C427`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.B.B<(class G2_C427`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase0<(IBase0)W>(!!W inst, string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase0<(IBase0)W>(!!W inst, string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method3<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1398`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4191() ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4190() ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1398`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4191() ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4190() ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1398`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.B<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass0,class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.A<class G3_C1398`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1398`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.B<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.B<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass1,class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.B<class G3_C1398`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass0,class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass1,class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1398`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod4191() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod4190() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1398`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod4191() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod4190() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method5() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method4() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated926::MethodCallingTest() call void Generated926::ConstrainedCallsTest() call void Generated926::StructConstrainedInterfaceCallsTest() call void Generated926::CalliTest() ldc.i4 100 ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated926 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public G3_C1398`1<T0> extends class G2_C427`2<!T0,class BaseClass0> implements class IBase2`2<!T0,class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G3_C1398::Method7.15970<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T0,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,class BaseClass0>::Method7<[1]>() ldstr "G3_C1398::Method7.MI.15971<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod4190() cil managed noinlining { ldstr "G3_C1398::ClassMethod4190.15972()" ret } .method public hidebysig newslot virtual instance string ClassMethod4191() cil managed noinlining { ldstr "G3_C1398::ClassMethod4191.15973()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G2_C427`2<!T0,class BaseClass0>::.ctor() ret } } .class public G2_C427`2<T0, T1> extends class G1_C8`2<class BaseClass1,class BaseClass1> implements class IBase2`2<class BaseClass1,!T1>, class IBase1`1<!T1> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C427::Method7.8839<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,!T1>::Method7<[1]>() ldstr "G2_C427::Method7.MI.8840<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G2_C427::Method4.8841()" ret } .method public hidebysig newslot virtual instance string 'IBase1<T1>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<!T1>::Method4() ldstr "G2_C427::Method4.MI.8842()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C427::Method5.8843()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C427::Method6.8844<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<T1>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<!T1>::Method6<[1]>() ldstr "G2_C427::Method6.MI.8845<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod2214() cil managed noinlining { ldstr "G2_C427::ClassMethod2214.8846()" ret } .method public hidebysig newslot virtual instance string ClassMethod2215() cil managed noinlining { ldstr "G2_C427::ClassMethod2215.8847()" ret } .method public hidebysig newslot virtual instance string 'G1_C8<class BaseClass1,class BaseClass1>.ClassMethod1333'() cil managed noinlining { .override method instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public G1_C8`2<T0, T1> implements class IBase2`2<!T0,!T1>, IBase0 { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C8::Method7.4821<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T0,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T0,!T1>::Method7<[1]>() ldstr "G1_C8::Method7.MI.4822<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method0() cil managed noinlining { ldstr "G1_C8::Method0.4823()" ret } .method public hidebysig newslot virtual instance string 'IBase0.Method0'() cil managed noinlining { .override method instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ret } .method public hidebysig virtual instance string Method1() cil managed noinlining { ldstr "G1_C8::Method1.4825()" ret } .method public hidebysig newslot virtual instance string Method2<M0>() cil managed noinlining { ldstr "G1_C8::Method2.4826<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase0.Method2'<M0>() cil managed noinlining { .override method instance string IBase0::Method2<[1]>() ldstr "G1_C8::Method2.MI.4827<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string Method3<M0>() cil managed noinlining { ldstr "G1_C8::Method3.4828<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1332() cil managed noinlining { ldstr "G1_C8::ClassMethod1332.4829()" ret } .method public hidebysig newslot virtual instance string ClassMethod1333() cil managed noinlining { ldstr "G1_C8::ClassMethod1333.4830()" ret } .method public hidebysig newslot virtual instance string ClassMethod1334<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1334.4831<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod1335<M0>() cil managed noinlining { ldstr "G1_C8::ClassMethod1335.4832<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class interface public abstract IBase1`1<+T0> { .method public hidebysig newslot abstract virtual instance string Method4() cil managed { } .method public hidebysig newslot abstract virtual instance string Method5() cil managed { } .method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { } } .class interface public abstract IBase0 { .method public hidebysig newslot abstract virtual instance string Method0() cil managed { } .method public hidebysig newslot abstract virtual instance string Method1() cil managed { } .method public hidebysig newslot abstract virtual instance string Method2<M0>() cil managed { } .method public hidebysig newslot abstract virtual instance string Method3<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated926 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1398.T<T0,(class G3_C1398`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 21 .locals init (string[] actualResults) ldc.i4.s 16 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1398.T<T0,(class G3_C1398`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 16 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod4190() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::ClassMethod4191() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1398.A<(class G3_C1398`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 21 .locals init (string[] actualResults) ldc.i4.s 16 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1398.A<(class G3_C1398`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 16 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4190() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4191() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1398.B<(class G3_C1398`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 21 .locals init (string[] actualResults) ldc.i4.s 16 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1398.B<(class G3_C1398`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 16 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4190() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4191() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 14 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 15 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1398`1<class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.T.T<T0,T1,(class G2_C427`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.T.T<T0,T1,(class G2_C427`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.A.T<T1,(class G2_C427`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.A.T<T1,(class G2_C427`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.A.A<(class G2_C427`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.A.A<(class G2_C427`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.A.B<(class G2_C427`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.A.B<(class G2_C427`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.B.T<T1,(class G2_C427`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.B.T<T1,(class G2_C427`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.B.A<(class G2_C427`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.B.A<(class G2_C427`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C427.B.B<(class G2_C427`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 19 .locals init (string[] actualResults) ldc.i4.s 14 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C427.B.B<(class G2_C427`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 14 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2214() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2215() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 9 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 10 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 11 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 12 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 13 ldarga.s 0 constrained. !!W callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.T.T<T0,T1,(class G1_C8`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.T<T1,(class G1_C8`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.A<(class G1_C8`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.A.B<(class G1_C8`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.T<T1,(class G1_C8`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.A<(class G1_C8`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 14 .locals init (string[] actualResults) ldc.i4.s 9 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C8.B.B<(class G1_C8`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 9 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 7 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() stelem.ref ldloc.s actualResults ldc.i4.s 8 ldarga.s 0 constrained. !!W callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase0<(IBase0)W>(!!W inst, string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase0<(IBase0)W>(!!W inst, string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method0() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method1() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method2<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string IBase0::Method3<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1398`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4191() ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod4190() ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass0> callvirt instance string class G3_C1398`1<class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1398`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4191() ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod4190() ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method7<object>() ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1398`1<class BaseClass1> callvirt instance string class G3_C1398`1<class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C427`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2215() ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2214() ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C427`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass1>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass0,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C8`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string IBase0::Method0() ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method1() ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method2<object>() ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string IBase0::Method3<object>() ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1398`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.B<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass0,class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.A<class G3_C1398`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.T<class BaseClass0,class G3_C1398`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.A<class G3_C1398`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1398`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.B<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.B<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass1,class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.B.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1398::Method7.MI.15971<System.Object>()#" call void Generated926::M.IBase2.A.A<class G3_C1398`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.T<class BaseClass1,class G3_C1398`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G3_C1398::ClassMethod4190.15972()#G3_C1398::ClassMethod4191.15973()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G3_C1398::Method7.15970<System.Object>()#" call void Generated926::M.G3_C1398.B<class G3_C1398`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass0,class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.A<class G2_C427`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.A.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass1,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.B<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass1,class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.A<class G2_C427`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.B.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method7.MI.8840<System.Object>()#" call void Generated926::M.IBase2.A.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.T.T<class BaseClass1,class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G2_C427::ClassMethod1333.MI.8848()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G2_C427::ClassMethod2214.8846()#G2_C427::ClassMethod2215.8847()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G2_C427::Method4.8841()#G2_C427::Method5.8843()#G2_C427::Method6.8844<System.Object>()#G2_C427::Method7.8839<System.Object>()#" call void Generated926::M.G2_C427.B.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass1,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.B<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.T<class BaseClass0,class G2_C427`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C427::Method4.MI.8842()#G2_C427::Method5.8843()#G2_C427::Method6.MI.8845<System.Object>()#" call void Generated926::M.IBase1.A<class G2_C427`2<class BaseClass1,class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.A<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass0,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.A<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::ClassMethod1332.4829()#G1_C8::ClassMethod1333.4830()#G1_C8::ClassMethod1334.4831<System.Object>()#G1_C8::ClassMethod1335.4832<System.Object>()#G1_C8::Method0.4823()#G1_C8::Method1.4825()#G1_C8::Method2.4826<System.Object>()#G1_C8::Method3.4828<System.Object>()#G1_C8::Method7.4821<System.Object>()#" call void Generated926::M.G1_C8.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.B.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method0.MI.4824()#G1_C8::Method1.4825()#G1_C8::Method2.MI.4827<System.Object>()#G1_C8::Method3.4828<System.Object>()#" call void Generated926::M.IBase0<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.T<class BaseClass1,class G1_C8`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G1_C8::Method7.MI.4822<System.Object>()#" call void Generated926::M.IBase2.A.B<class G1_C8`2<class BaseClass1,class BaseClass1>>(!!0,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1398`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod4191() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod4190() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method1() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass0>::Method0() calli default string(class G3_C1398`1<class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass0> on type class G3_C1398`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1398`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.MI.15971<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod4191() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::ClassMethod4191.15973()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod4190() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::ClassMethod4190.15972()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G3_C1398::Method7.15970<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod2215() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod2214() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method5() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method4() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1335<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1334<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1333() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::ClassMethod1332() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method3<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method2<object>() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method1() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1398`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1398`1<class BaseClass1>::Method0() calli default string(class G3_C1398`1<class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G3_C1398`1<class BaseClass1> on type class G3_C1398`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass0,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass0>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C427`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method7.MI.8840<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2215() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod2215.8847()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod2214() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod2214.8846()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method6.8844<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method4.8841()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method7.8839<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::ClassMethod1333.MI.8848()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C427`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C427`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G2_C427`2<class BaseClass1,class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass1>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass1> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method4.MI.8842()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method5.8843()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C427`2<class BaseClass1,class BaseClass1>) ldstr "G2_C427::Method6.MI.8845<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C427`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass0,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass0>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G1_C8`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1335<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1335.4832<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1334<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1334.4831<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1333() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1333.4830()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::ClassMethod1332() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::ClassMethod1332.4829()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.4826<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.4823()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C8`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C8`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.4821<System.Object>()" ldstr "class G1_C8`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method0() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method0.MI.4824()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method1() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method1.4825()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method2<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method2.MI.4827<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string IBase0::Method3<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method3.4828<System.Object>()" ldstr "IBase0 on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G1_C8`2<class BaseClass1,class BaseClass1>) ldstr "G1_C8::Method7.MI.4822<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G1_C8`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated926::MethodCallingTest() call void Generated926::ConstrainedCallsTest() call void Generated926::StructConstrainedInterfaceCallsTest() call void Generated926::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/xsltc/baseline/infft2.txt
fft2.xsl
fft2.xsl
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/coreclr/pal/src/libunwind/src/aarch64/is_fpreg.c
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Copyright (C) 2013 Linaro Limited This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "libunwind_i.h" int unw_is_fpreg (int regnum) { return (regnum >= UNW_AARCH64_V0 && regnum <= UNW_AARCH64_V31); }
/* libunwind - a platform-independent unwind library Copyright (C) 2008 CodeSourcery Copyright (C) 2013 Linaro Limited This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "libunwind_i.h" int unw_is_fpreg (int regnum) { return (regnum >= UNW_AARCH64_V0 && regnum <= UNW_AARCH64_V31); }
-1
dotnet/runtime
65,916
Fix GC hole with multi-reg local var stores
Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
BruceForstall
"2022-02-26T02:06:33Z"
"2022-03-01T05:47:41Z"
d9eafd0c55ff7c3d7804c7629baf271703df91a6
8686d06e5387cf50f08f451cd697331eb5bd830a
Fix GC hole with multi-reg local var stores. Change #64857 exposed an existing problem where when generating code for a multi-reg GT_STORE_LCL_VAR, if the first register slot was not enregistered, but the second or subsequent slots was, and those non-first slots contained GC pointers, we wouldn't properly add those GC pointers to the GC tracking sets. This led to cases where the register lifetimes would be killed in the GC info before the actual lifetime was complete. The primary fix is to make `gtHasReg()` handle the `IsMultiRegLclVar()` case. As a side-effect, this fixes some LSRA dumps that weren't displaying multiple registers properly. There are about 50 SPMI asm diffs on win-arm64 where register lifetimes get extended, fixing GC holes. I also made `GetMultiRegCount()` handle the `IsMultiRegLclVar()` case. I made a number of cleanup changes along the way: 1. Fixed two cases of calling `gcInfo.gcMarkRegSetNpt` with regNumber, not regMaskTP 2. Marked some functions `const` 3. Improved some comments 4. Changed "ith" to "i'th" in comments which still doesn't read great, but at least I'm not left trying to parse "ith" as an English word. 5. Use `OperIsScalarLocal()` more broadly 6. Renamed `gtDispRegCount` to `gtDispMultiRegCount` to make it clear it only applies to the multi-reg case. Fixes #65476.
./src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1456/Generated1456.il
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated1456 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public G3_C1928`1<T0> extends class G2_C841`2<class BaseClass0,class BaseClass1> implements class IBase1`1<class BaseClass0> { .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G3_C1928::Method4.18752()" ret } .method public hidebysig newslot virtual instance string Method5() cil managed noinlining { ldstr "G3_C1928::Method5.18753()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G3_C1928::Method6.18754<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>() ldstr "G3_C1928::Method6.MI.18755<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod5249() cil managed noinlining { ldstr "G3_C1928::ClassMethod5249.18756()" ret } .method public hidebysig newslot virtual instance string 'G2_C841<class BaseClass0,class BaseClass1>.ClassMethod3058'() cil managed noinlining { .override method instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ret } .method public hidebysig newslot virtual instance string 'G2_C841<class BaseClass0,class BaseClass1>.ClassMethod3059'() cil managed noinlining { .override method instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() ret } } .class public G2_C841`2<T0, T1> extends class G1_C15`2<class BaseClass1,!T1> implements class IBase2`2<class BaseClass1,class BaseClass0>, class IBase1`1<class BaseClass0> { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C841::Method7.12713<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<[1]>() ldstr "G2_C841::Method7.MI.12714<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G2_C841::Method4.12715()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C841::Method5.12716()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C841::Method6.12718<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>() ldstr "G2_C841::Method6.MI.12719<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod3058() cil managed noinlining { ldstr "G2_C841::ClassMethod3058.12720()" ret } .method public hidebysig newslot virtual instance string ClassMethod3059() cil managed noinlining { ldstr "G2_C841::ClassMethod3059.12721()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C15`2<class BaseClass1,!T1>::.ctor() ret } } .class interface public abstract IBase1`1<+T0> { .method public hidebysig newslot abstract virtual instance string Method4() cil managed { } .method public hidebysig newslot abstract virtual instance string Method5() cil managed { } .method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { } } .class public abstract G1_C15`2<T0, T1> implements class IBase2`2<!T1,!T1>, class IBase1`1<class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C15::Method7.4885<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T1,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T1,!T1>::Method7<[1]>() ldstr "G1_C15::Method7.MI.4886<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G1_C15::Method4.4887()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G1_C15::Method4.MI.4888()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G1_C15::Method5.4889()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C15::Method5.MI.4890()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G1_C15::Method6.4891<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>() ldstr "G1_C15::Method6.MI.4892<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated1456 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1928.T<T0,(class G3_C1928`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 12 .locals init (string[] actualResults) ldc.i4.s 7 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1928.T<T0,(class G3_C1928`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 7 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::ClassMethod5249() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1928.A<(class G3_C1928`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 12 .locals init (string[] actualResults) ldc.i4.s 7 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1928.A<(class G3_C1928`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 7 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod5249() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1928.B<(class G3_C1928`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 12 .locals init (string[] actualResults) ldc.i4.s 7 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1928.B<(class G3_C1928`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 7 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod5249() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.T.T<T0,T1,(class G2_C841`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.T.T<T0,T1,(class G2_C841`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.A.T<T1,(class G2_C841`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.A.T<T1,(class G2_C841`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.A.A<(class G2_C841`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.A.A<(class G2_C841`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.A.B<(class G2_C841`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.A.B<(class G2_C841`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.B.T<T1,(class G2_C841`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.B.T<T1,(class G2_C841`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.B.A<(class G2_C841`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.B.A<(class G2_C841`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.B.B<(class G2_C841`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.B.B<(class G2_C841`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.T.T<T0,T1,(class G1_C15`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.T.T<T0,T1,(class G1_C15`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.A.T<T1,(class G1_C15`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.A.T<T1,(class G1_C15`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.A.A<(class G1_C15`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.A.A<(class G1_C15`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.A.B<(class G1_C15`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.A.B<(class G1_C15`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.B.T<T1,(class G1_C15`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.B.T<T1,(class G1_C15`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.B.A<(class G1_C15`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.B.A<(class G1_C15`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.B.B<(class G1_C15`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.B.B<(class G1_C15`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1928`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod5249() ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method6<object>() ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1928`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod5249() ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method6<object>() ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1928`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.A<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.A<class G3_C1928`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1928`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.A<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.B<class G3_C1928`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1928`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::ClassMethod5249() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1928`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::ClassMethod5249() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated1456::MethodCallingTest() call void Generated1456::ConstrainedCallsTest() call void Generated1456::StructConstrainedInterfaceCallsTest() call void Generated1456::CalliTest() ldc.i4 100 ret } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern TestFramework { .publickeytoken = ( B0 3F 5F 7F 11 D5 0A 3A ) } //TYPES IN FORWARDER ASSEMBLIES: //TEST ASSEMBLY: .assembly Generated1456 { .hash algorithm 0x00008004 } .assembly extern xunit.core {} .class public BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class public BaseClass1 extends BaseClass0 { .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void BaseClass0::.ctor() ret } } .class public G3_C1928`1<T0> extends class G2_C841`2<class BaseClass0,class BaseClass1> implements class IBase1`1<class BaseClass0> { .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G3_C1928::Method4.18752()" ret } .method public hidebysig newslot virtual instance string Method5() cil managed noinlining { ldstr "G3_C1928::Method5.18753()" ret } .method public hidebysig newslot virtual instance string Method6<M0>() cil managed noinlining { ldstr "G3_C1928::Method6.18754<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>() ldstr "G3_C1928::Method6.MI.18755<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod5249() cil managed noinlining { ldstr "G3_C1928::ClassMethod5249.18756()" ret } .method public hidebysig newslot virtual instance string 'G2_C841<class BaseClass0,class BaseClass1>.ClassMethod3058'() cil managed noinlining { .override method instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ret } .method public hidebysig newslot virtual instance string 'G2_C841<class BaseClass0,class BaseClass1>.ClassMethod3059'() cil managed noinlining { .override method instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() ret } } .class public G2_C841`2<T0, T1> extends class G1_C15`2<class BaseClass1,!T1> implements class IBase2`2<class BaseClass1,class BaseClass0>, class IBase1`1<class BaseClass0> { .method public hidebysig virtual instance string Method7<M0>() cil managed noinlining { ldstr "G2_C841::Method7.12713<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<class BaseClass1,class BaseClass0>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<[1]>() ldstr "G2_C841::Method7.MI.12714<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G2_C841::Method4.12715()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G2_C841::Method5.12716()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G2_C841::Method6.12718<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>() ldstr "G2_C841::Method6.MI.12719<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string ClassMethod3058() cil managed noinlining { ldstr "G2_C841::ClassMethod3058.12720()" ret } .method public hidebysig newslot virtual instance string ClassMethod3059() cil managed noinlining { ldstr "G2_C841::ClassMethod3059.12721()" ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void class G1_C15`2<class BaseClass1,!T1>::.ctor() ret } } .class interface public abstract IBase1`1<+T0> { .method public hidebysig newslot abstract virtual instance string Method4() cil managed { } .method public hidebysig newslot abstract virtual instance string Method5() cil managed { } .method public hidebysig newslot abstract virtual instance string Method6<M0>() cil managed { } } .class public abstract G1_C15`2<T0, T1> implements class IBase2`2<!T1,!T1>, class IBase1`1<class BaseClass0> { .method public hidebysig newslot virtual instance string Method7<M0>() cil managed noinlining { ldstr "G1_C15::Method7.4885<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase2<T1,T1>.Method7'<M0>() cil managed noinlining { .override method instance string class IBase2`2<!T1,!T1>::Method7<[1]>() ldstr "G1_C15::Method7.MI.4886<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig virtual instance string Method4() cil managed noinlining { ldstr "G1_C15::Method4.4887()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method4'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G1_C15::Method4.MI.4888()" ret } .method public hidebysig virtual instance string Method5() cil managed noinlining { ldstr "G1_C15::Method5.4889()" ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method5'() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G1_C15::Method5.MI.4890()" ret } .method public hidebysig virtual instance string Method6<M0>() cil managed noinlining { ldstr "G1_C15::Method6.4891<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig newslot virtual instance string 'IBase1<class BaseClass0>.Method6'<M0>() cil managed noinlining { .override method instance string class IBase1`1<class BaseClass0>::Method6<[1]>() ldstr "G1_C15::Method6.MI.4892<" ldtoken !!M0 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle) call string [mscorlib]System.String::Concat(object,object) ldstr ">()" call string [mscorlib]System.String::Concat(object,object) ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } .class interface public abstract IBase2`2<+T0, -T1> { .method public hidebysig newslot abstract virtual instance string Method7<M0>() cil managed { } } .class public auto ansi beforefieldinit Generated1456 { .method static void M.BaseClass0<(BaseClass0)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass0<(BaseClass0)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.BaseClass1<(BaseClass1)W>(!!W inst, string exp) cil managed { .maxstack 5 .locals init (string[] actualResults) ldc.i4.s 0 newarr string stloc.s actualResults ldarg.1 ldstr "M.BaseClass1<(BaseClass1)W>(!!W inst, string exp)" ldc.i4.s 0 ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1928.T<T0,(class G3_C1928`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 12 .locals init (string[] actualResults) ldc.i4.s 7 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1928.T<T0,(class G3_C1928`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 7 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::ClassMethod5249() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<!!T0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1928.A<(class G3_C1928`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 12 .locals init (string[] actualResults) ldc.i4.s 7 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1928.A<(class G3_C1928`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 7 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod5249() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G3_C1928.B<(class G3_C1928`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 12 .locals init (string[] actualResults) ldc.i4.s 7 newarr string stloc.s actualResults ldarg.1 ldstr "M.G3_C1928.B<(class G3_C1928`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 7 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod5249() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 6 ldarga.s 0 constrained. !!W callvirt instance string class G3_C1928`1<class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.T.T<T0,T1,(class G2_C841`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.T.T<T0,T1,(class G2_C841`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.A.T<T1,(class G2_C841`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.A.T<T1,(class G2_C841`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.A.A<(class G2_C841`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.A.A<(class G2_C841`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.A.B<(class G2_C841`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.A.B<(class G2_C841`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.B.T<T1,(class G2_C841`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.B.T<T1,(class G2_C841`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.B.A<(class G2_C841`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.B.A<(class G2_C841`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G2_C841.B.B<(class G2_C841`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 11 .locals init (string[] actualResults) ldc.i4.s 6 newarr string stloc.s actualResults ldarg.1 ldstr "M.G2_C841.B.B<(class G2_C841`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 6 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3058() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3059() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 4 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 5 ldarga.s 0 constrained. !!W callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.T<T0,(class IBase1`1<!!T0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<!!T0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.A<(class IBase1`1<class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 8 .locals init (string[] actualResults) ldc.i4.s 3 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase1.B<(class IBase1`1<class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 3 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class IBase1`1<class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.T.T<T0,T1,(class G1_C15`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.T.T<T0,T1,(class G1_C15`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.A.T<T1,(class G1_C15`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.A.T<T1,(class G1_C15`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.A.A<(class G1_C15`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.A.A<(class G1_C15`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.A.B<(class G1_C15`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.A.B<(class G1_C15`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.B.T<T1,(class G1_C15`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.B.T<T1,(class G1_C15`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.B.A<(class G1_C15`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.B.A<(class G1_C15`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.G1_C15.B.B<(class G1_C15`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 9 .locals init (string[] actualResults) ldc.i4.s 4 newarr string stloc.s actualResults ldarg.1 ldstr "M.G1_C15.B.B<(class G1_C15`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 4 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() stelem.ref ldloc.s actualResults ldc.i4.s 1 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() stelem.ref ldloc.s actualResults ldc.i4.s 2 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() stelem.ref ldloc.s actualResults ldc.i4.s 3 ldarga.s 0 constrained. !!W callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.T.T<T0,T1,(class IBase2`2<!!T0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<!!T0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.T<T1,(class IBase2`2<class BaseClass0,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.A<(class IBase2`2<class BaseClass0,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.A.B<(class IBase2`2<class BaseClass0,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.T<T1,(class IBase2`2<class BaseClass1,!!T1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,!!T1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.A<(class IBase2`2<class BaseClass1,class BaseClass0>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method static void M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp) cil managed { .maxstack 6 .locals init (string[] actualResults) ldc.i4.s 1 newarr string stloc.s actualResults ldarg.1 ldstr "M.IBase2.B.B<(class IBase2`2<class BaseClass1,class BaseClass1>)W>(!!W 'inst', string exp)" ldc.i4.s 1 ldloc.s actualResults ldc.i4.s 0 ldarga.s 0 constrained. !!W callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() stelem.ref ldloc.s actualResults call void [TestFramework]TestFramework::MethodCallTest(string,string,int32,string[]) ret } .method public hidebysig static void MethodCallingTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calling Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1928`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod5249() ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method6<object>() ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass0> callvirt instance string class G3_C1928`1<class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G3_C1928`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod5249() ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method6<object>() ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method5() ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method4() ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3059() ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::ClassMethod3058() ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G3_C1928`1<class BaseClass1> callvirt instance string class G3_C1928`1<class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass0,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass0> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass0> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop newobj instance void class G2_C841`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G1_C15`2<class BaseClass1,class BaseClass1> callvirt instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase1`1<class BaseClass0>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method5() ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup callvirt instance string class IBase1`1<class BaseClass0>::Method6<object>() ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3059() ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3058() ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method6<object>() ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method5() ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method4() ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) dup castclass class G2_C841`2<class BaseClass1,class BaseClass1> callvirt instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method7<object>() ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldloc.0 dup callvirt instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) pop ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void ConstrainedCallsTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Constrained Calls Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1928`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.A<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass1,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.B<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G3_C1928`1<class BaseClass0>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.T<class BaseClass0,class G3_C1928`1<class BaseClass0>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.A<class G3_C1928`1<class BaseClass0>>(!!0,string) newobj instance void class G3_C1928`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.MI.18755<System.Object>()#" call void Generated1456::M.IBase1.A<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::Method4.18752()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.B<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G3_C1928`1<class BaseClass1>>(!!0,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.T<class BaseClass1,class G3_C1928`1<class BaseClass1>>(!!1,string) ldloc.0 ldstr "G3_C1928::ClassMethod3058.MI.18757()#G3_C1928::ClassMethod3059.MI.18758()#G3_C1928::ClassMethod5249.18756()#G3_C1928::Method4.18752()#G3_C1928::Method5.18753()#G3_C1928::Method6.18754<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G3_C1928.B<class G3_C1928`1<class BaseClass1>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass0,class BaseClass0>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.T<class BaseClass1,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.A.B<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass0,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass0,class BaseClass1>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass0>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass1,class BaseClass0>>(!!0,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G1_C15.B.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method4.12715()#G2_C841::Method5.MI.12717()#G2_C841::Method6.MI.12719<System.Object>()#" call void Generated1456::M.IBase1.A<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.T.T<class BaseClass1,class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.T<class BaseClass1,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::ClassMethod3058.12720()#G2_C841::ClassMethod3059.12721()#G2_C841::Method4.12715()#G2_C841::Method5.12716()#G2_C841::Method6.12718<System.Object>()#G2_C841::Method7.12713<System.Object>()#" call void Generated1456::M.G2_C841.B.B<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass1,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.B.A<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.T.T<class BaseClass0,class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!2,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.T<class BaseClass0,class G2_C841`2<class BaseClass1,class BaseClass1>>(!!1,string) ldloc.0 ldstr "G2_C841::Method7.MI.12714<System.Object>()#" call void Generated1456::M.IBase2.A.A<class G2_C841`2<class BaseClass1,class BaseClass1>>(!!0,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void StructConstrainedInterfaceCallsTest() cil managed { .maxstack 10 ldstr "===================== Struct Constrained Interface Calls Test =====================" call void [mscorlib]System.Console::WriteLine(string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static void CalliTest() cil managed { .maxstack 10 .locals init (object V_0) ldstr "========================== Method Calli Test ==========================" call void [mscorlib]System.Console::WriteLine(string) newobj instance void class G3_C1928`1<class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::ClassMethod5249() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method5() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method4() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass0> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass0> on type class G3_C1928`1<class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G3_C1928`1<class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method5.18753()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method6.MI.18755<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::ClassMethod5249() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod5249.18756()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method6<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method6.18754<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method5() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method5.18753()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method4() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::Method4.18752()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::ClassMethod3059() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3059.MI.18758()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::ClassMethod3058() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G3_C1928::ClassMethod3058.MI.18757()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G3_C1928`1<class BaseClass1> ldloc.0 ldvirtftn instance string class G3_C1928`1<class BaseClass1>::Method7<object>() calli default string(class G3_C1928`1<class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G3_C1928`1<class BaseClass1> on type class G3_C1928`1<class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass0,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass0,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass0,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass0,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass0>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass0> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass0>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass0>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) newobj instance void class G2_C841`2<class BaseClass1,class BaseClass1>::.ctor() stloc.0 ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G1_C15`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G1_C15`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G1_C15`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method5.MI.12717()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase1`1<class BaseClass0>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method6.MI.12719<System.Object>()" ldstr "class IBase1`1<class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3059() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::ClassMethod3059.12721()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::ClassMethod3058() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::ClassMethod3058.12720()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method6<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method6.12718<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method5() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method5.12716()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method4() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method4.12715()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 castclass class G2_C841`2<class BaseClass1,class BaseClass1> ldloc.0 ldvirtftn instance string class G2_C841`2<class BaseClass1,class BaseClass1>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.12713<System.Object>()" ldstr "class G2_C841`2<class BaseClass1,class BaseClass1> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass1,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass1,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldloc.0 ldloc.0 ldvirtftn instance string class IBase2`2<class BaseClass0,class BaseClass0>::Method7<object>() calli default string(class G2_C841`2<class BaseClass1,class BaseClass1>) ldstr "G2_C841::Method7.MI.12714<System.Object>()" ldstr "class IBase2`2<class BaseClass0,class BaseClass0> on type class G2_C841`2<class BaseClass1,class BaseClass1>" call void [TestFramework]TestFramework::MethodCallTest(string,string,string) ldstr "========================================================================\n\n" call void [mscorlib]System.Console::WriteLine(string) ret } .method public hidebysig static int32 Main() cil managed { .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( 01 00 00 00 ) .entrypoint .maxstack 10 call void Generated1456::MethodCallingTest() call void Generated1456::ConstrainedCallsTest() call void Generated1456::StructConstrainedInterfaceCallsTest() call void Generated1456::CalliTest() ldc.i4 100 ret } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/DllImportGenerator.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; [assembly: System.Resources.NeutralResourcesLanguage("en-US")] namespace Microsoft.Interop { [Generator] public sealed class DllImportGenerator : IIncrementalGenerator { internal sealed record IncrementalStubGenerationContext( StubEnvironment Environment, DllImportStubContext StubContext, ImmutableArray<AttributeSyntax> ForwardedAttributes, GeneratedDllImportData DllImportData, ImmutableArray<Diagnostic> Diagnostics) { public bool Equals(IncrementalStubGenerationContext? other) { return other is not null && StubEnvironment.AreCompilationSettingsEqual(Environment, other.Environment) && StubContext.Equals(other.StubContext) && DllImportData.Equals(other.DllImportData) && ForwardedAttributes.SequenceEqual(other.ForwardedAttributes, (IEqualityComparer<AttributeSyntax>)SyntaxEquivalentComparer.Instance) && Diagnostics.SequenceEqual(other.Diagnostics); } public override int GetHashCode() { throw new UnreachableException(); } } public class IncrementalityTracker { public enum StepName { CalculateStubInformation, GenerateSingleStub, NormalizeWhitespace, ConcatenateStubs, OutputSourceFile } public record ExecutedStepInfo(StepName Step, object Input); private readonly List<ExecutedStepInfo> _executedSteps = new(); public IEnumerable<ExecutedStepInfo> ExecutedSteps => _executedSteps; internal void RecordExecutedStep(ExecutedStepInfo step) => _executedSteps.Add(step); } /// <summary> /// This property provides a test-only hook to enable testing the incrementality of the source generator. /// This will be removed when https://github.com/dotnet/roslyn/issues/54832 is implemented and can be consumed. /// </summary> public IncrementalityTracker? IncrementalTracker { get; set; } public void Initialize(IncrementalGeneratorInitializationContext context) { var attributedMethods = context.SyntaxProvider .CreateSyntaxProvider( static (node, ct) => ShouldVisitNode(node), static (context, ct) => new { Syntax = (MethodDeclarationSyntax)context.Node, Symbol = (IMethodSymbol)context.SemanticModel.GetDeclaredSymbol(context.Node, ct)! }) .Where( static modelData => modelData.Symbol.IsStatic && modelData.Symbol.GetAttributes().Any( static attribute => attribute.AttributeClass?.ToDisplayString() == TypeNames.GeneratedDllImportAttribute) ); var methodsToGenerate = attributedMethods.Where(static data => !data.Symbol.ReturnsByRef && !data.Symbol.ReturnsByRefReadonly); var refReturnMethods = attributedMethods.Where(static data => data.Symbol.ReturnsByRef || data.Symbol.ReturnsByRefReadonly); context.RegisterSourceOutput(refReturnMethods, static (context, refReturnMethod) => { context.ReportDiagnostic(Diagnostic.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, refReturnMethod.Syntax.GetLocation(), "ref return", refReturnMethod.Symbol.ToDisplayString())); }); IncrementalValueProvider<(Compilation compilation, TargetFramework targetFramework, Version targetFrameworkVersion)> compilationAndTargetFramework = context.CompilationProvider .Select(static (compilation, ct) => { TargetFramework fmk = DetermineTargetFramework(compilation, out Version targetFrameworkVersion); return (compilation, fmk, targetFrameworkVersion); }); context.RegisterSourceOutput( compilationAndTargetFramework .Combine(methodsToGenerate.Collect()), static (context, data) => { if (data.Left.targetFramework is TargetFramework.Unknown && data.Right.Any()) { // We don't block source generation when the TFM is unknown. // This allows a user to copy generated source and use it as a starting point // for manual marshalling if desired. context.ReportDiagnostic( Diagnostic.Create( GeneratorDiagnostics.TargetFrameworkNotSupported, Location.None, data.Left.targetFrameworkVersion)); } }); IncrementalValueProvider<DllImportGeneratorOptions> stubOptions = context.AnalyzerConfigOptionsProvider .Select((options, ct) => new DllImportGeneratorOptions(options.GlobalOptions)); IncrementalValueProvider<StubEnvironment> stubEnvironment = compilationAndTargetFramework .Combine(stubOptions) .Select( static (data, ct) => new StubEnvironment( data.Left.compilation, data.Left.targetFramework, data.Left.targetFrameworkVersion, data.Left.compilation.SourceModule.GetAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_CompilerServices_SkipLocalsInitAttribute), data.Right) ); IncrementalValueProvider<(string, ImmutableArray<Diagnostic>)> methodSourceAndDiagnostics = methodsToGenerate .Combine(stubEnvironment) .Select(static (data, ct) => new { data.Left.Syntax, data.Left.Symbol, Environment = data.Right }) .Select( (data, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.CalculateStubInformation, data)); return (data.Syntax, StubContext: CalculateStubInformation(data.Symbol, data.Environment, ct)); } ) .WithComparer(Comparers.CalculatedContextWithSyntax) .Combine(stubOptions) .Select( (data, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.GenerateSingleStub, data)); return GenerateSource(data.Left.StubContext, data.Left.Syntax, data.Right); } ) .WithComparer(Comparers.GeneratedSyntax) // Handle NormalizeWhitespace as a separate stage for incremental runs since it is an expensive operation. .Select( (data, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.NormalizeWhitespace, data)); return (data.Item1.NormalizeWhitespace().ToFullString(), data.Item2); }) .Collect() .WithComparer(Comparers.GeneratedSourceSet) .Select((generatedSources, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.ConcatenateStubs, generatedSources)); StringBuilder source = new(); // Mark in source that the file is auto-generated. source.AppendLine("// <auto-generated/>"); ImmutableArray<Diagnostic>.Builder diagnostics = ImmutableArray.CreateBuilder<Diagnostic>(); foreach ((string, ImmutableArray<Diagnostic>) generated in generatedSources) { source.AppendLine(generated.Item1); diagnostics.AddRange(generated.Item2); } return (source: source.ToString(), diagnostics: diagnostics.ToImmutable()); }) .WithComparer(Comparers.GeneratedSource); context.RegisterSourceOutput(methodSourceAndDiagnostics, (context, data) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.OutputSourceFile, data)); foreach (Diagnostic diagnostic in data.Item2) { context.ReportDiagnostic(diagnostic); } context.AddSource("GeneratedDllImports.g.cs", data.Item1); }); } private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, AttributeData? defaultDllImportSearchPathsAttribute) { const string CallConvsField = "CallConvs"; // Manually rehydrate the forwarded attributes with fully qualified types so we don't have to worry about any using directives. List<AttributeSyntax> attributes = new(); if (suppressGCTransitionAttribute is not null) { attributes.Add(Attribute(ParseName(TypeNames.SuppressGCTransitionAttribute))); } if (unmanagedCallConvAttribute is not null) { AttributeSyntax unmanagedCallConvSyntax = Attribute(ParseName(TypeNames.UnmanagedCallConvAttribute)); foreach (KeyValuePair<string, TypedConstant> arg in unmanagedCallConvAttribute.NamedArguments) { if (arg.Key == CallConvsField) { InitializerExpressionSyntax callConvs = InitializerExpression(SyntaxKind.ArrayInitializerExpression); foreach (TypedConstant callConv in arg.Value.Values) { callConvs = callConvs.AddExpressions( TypeOfExpression(((ITypeSymbol)callConv.Value!).AsTypeSyntax())); } ArrayTypeSyntax arrayOfSystemType = ArrayType(ParseTypeName(TypeNames.System_Type), SingletonList(ArrayRankSpecifier())); unmanagedCallConvSyntax = unmanagedCallConvSyntax.AddArgumentListArguments( AttributeArgument( ArrayCreationExpression(arrayOfSystemType) .WithInitializer(callConvs)) .WithNameEquals(NameEquals(IdentifierName(CallConvsField)))); } } attributes.Add(unmanagedCallConvSyntax); } if (defaultDllImportSearchPathsAttribute is not null) { attributes.Add( Attribute(ParseName(TypeNames.DefaultDllImportSearchPathsAttribute)).AddArgumentListArguments( AttributeArgument( CastExpression(ParseTypeName(TypeNames.DllImportSearchPath), LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal((int)defaultDllImportSearchPathsAttribute.ConstructorArguments[0].Value!)))))); } return attributes; } private static SyntaxTokenList StripTriviaFromModifiers(SyntaxTokenList tokenList) { SyntaxToken[] strippedTokens = new SyntaxToken[tokenList.Count]; for (int i = 0; i < tokenList.Count; i++) { strippedTokens[i] = tokenList[i].WithoutTrivia(); } return new SyntaxTokenList(strippedTokens); } private static SyntaxTokenList AddToModifiers(SyntaxTokenList modifiers, SyntaxKind modifierToAdd) { if (modifiers.IndexOf(modifierToAdd) >= 0) return modifiers; int idx = modifiers.IndexOf(SyntaxKind.PartialKeyword); return idx >= 0 ? modifiers.Insert(idx, Token(modifierToAdd)) : modifiers.Add(Token(modifierToAdd)); } private static TypeDeclarationSyntax CreateTypeDeclarationWithoutTrivia(TypeDeclarationSyntax typeDeclaration) { return TypeDeclaration( typeDeclaration.Kind(), typeDeclaration.Identifier) .WithTypeParameterList(typeDeclaration.TypeParameterList) .WithModifiers(StripTriviaFromModifiers(typeDeclaration.Modifiers)); } private static MemberDeclarationSyntax PrintGeneratedSource( MethodDeclarationSyntax userDeclaredMethod, DllImportStubContext stub, BlockSyntax stubCode) { // Create stub function MethodDeclarationSyntax stubMethod = MethodDeclaration(stub.StubReturnType, userDeclaredMethod.Identifier) .AddAttributeLists(stub.AdditionalAttributes.ToArray()) .WithModifiers(StripTriviaFromModifiers(userDeclaredMethod.Modifiers)) .WithParameterList(ParameterList(SeparatedList(stub.StubParameters))) .WithBody(stubCode); MemberDeclarationSyntax toPrint = WrapMethodInContainingScopes(stub, stubMethod); return toPrint; } private static MemberDeclarationSyntax WrapMethodInContainingScopes(DllImportStubContext stub, MethodDeclarationSyntax stubMethod) { // Stub should have at least one containing type Debug.Assert(stub.StubContainingTypes.Any()); // Add stub function and DllImport declaration to the first (innermost) containing MemberDeclarationSyntax containingType = CreateTypeDeclarationWithoutTrivia(stub.StubContainingTypes.First()) .AddMembers(stubMethod); // Mark containing type as unsafe such that all the generated functions will be in an unsafe context. containingType = containingType.WithModifiers(AddToModifiers(containingType.Modifiers, SyntaxKind.UnsafeKeyword)); // Add type to the remaining containing types (skipping the first which was handled above) foreach (TypeDeclarationSyntax typeDecl in stub.StubContainingTypes.Skip(1)) { containingType = CreateTypeDeclarationWithoutTrivia(typeDecl) .WithMembers(SingletonList(containingType)); } MemberDeclarationSyntax toPrint = containingType; // Add type to the containing namespace if (stub.StubTypeNamespace is not null) { toPrint = NamespaceDeclaration(IdentifierName(stub.StubTypeNamespace)) .AddMembers(toPrint); } return toPrint; } private static TargetFramework DetermineTargetFramework(Compilation compilation, out Version version) { IAssemblySymbol systemAssembly = compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly; version = systemAssembly.Identity.Version; return systemAssembly.Identity.Name switch { // .NET Framework "mscorlib" => TargetFramework.Framework, // .NET Standard "netstandard" => TargetFramework.Standard, // .NET Core (when version < 5.0) or .NET "System.Runtime" or "System.Private.CoreLib" => (version.Major < 5) ? TargetFramework.Core : TargetFramework.Net, _ => TargetFramework.Unknown, }; } private static GeneratedDllImportData? ProcessGeneratedDllImportAttribute(AttributeData attrData) { // Found the GeneratedDllImport, but it has an error so report the error. // This is most likely an issue with targeting an incorrect TFM. if (attrData.AttributeClass?.TypeKind is null or TypeKind.Error) { return null; } // Default values for these properties are based on the // documented semanatics of DllImportAttribute: // - https://docs.microsoft.com/dotnet/api/system.runtime.interopservices.dllimportattribute DllImportMember userDefinedValues = DllImportMember.None; string? entryPoint = null; bool setLastError = false; StringMarshalling stringMarshalling = StringMarshalling.Custom; INamedTypeSymbol? stringMarshallingCustomType = null; // All other data on attribute is defined as NamedArguments. foreach (KeyValuePair<string, TypedConstant> namedArg in attrData.NamedArguments) { switch (namedArg.Key) { default: // This should never occur in a released build, // but can happen when evolving the ecosystem. // Return null here to indicate invalid attribute data. Debug.WriteLine($"An unknown member '{namedArg.Key}' was found on {attrData.AttributeClass}"); return null; case nameof(GeneratedDllImportData.EntryPoint): userDefinedValues |= DllImportMember.EntryPoint; if (namedArg.Value.Value is not string) { return null; } entryPoint = (string)namedArg.Value.Value!; break; case nameof(GeneratedDllImportData.SetLastError): userDefinedValues |= DllImportMember.SetLastError; if (namedArg.Value.Value is not bool) { return null; } setLastError = (bool)namedArg.Value.Value!; break; case nameof(GeneratedDllImportData.StringMarshalling): userDefinedValues |= DllImportMember.StringMarshalling; // TypedConstant's Value property only contains primitive values. if (namedArg.Value.Value is not int) { return null; } // A boxed primitive can be unboxed to an enum with the same underlying type. stringMarshalling = (StringMarshalling)namedArg.Value.Value!; break; case nameof(GeneratedDllImportData.StringMarshallingCustomType): userDefinedValues |= DllImportMember.StringMarshallingCustomType; if (namedArg.Value.Value is not INamedTypeSymbol) { return null; } stringMarshallingCustomType = (INamedTypeSymbol)namedArg.Value.Value; break; } } if (attrData.ConstructorArguments.Length == 0) { return null; } return new GeneratedDllImportData(attrData.ConstructorArguments[0].Value!.ToString()) { IsUserDefined = userDefinedValues, EntryPoint = entryPoint, SetLastError = setLastError, StringMarshalling = stringMarshalling, StringMarshallingCustomType = stringMarshallingCustomType, }; } private static IncrementalStubGenerationContext CalculateStubInformation(IMethodSymbol symbol, StubEnvironment environment, CancellationToken ct) { INamedTypeSymbol? lcidConversionAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.LCIDConversionAttribute); INamedTypeSymbol? suppressGCTransitionAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.SuppressGCTransitionAttribute); INamedTypeSymbol? unmanagedCallConvAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.UnmanagedCallConvAttribute); INamedTypeSymbol? defaultDllImportSearchPathsAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.DefaultDllImportSearchPathsAttribute); // Get any attributes of interest on the method AttributeData? generatedDllImportAttr = null; AttributeData? lcidConversionAttr = null; AttributeData? suppressGCTransitionAttribute = null; AttributeData? unmanagedCallConvAttribute = null; AttributeData? defaultDllImportSearchPathsAttribute = null; foreach (AttributeData attr in symbol.GetAttributes()) { if (attr.AttributeClass is not null && attr.AttributeClass.ToDisplayString() == TypeNames.GeneratedDllImportAttribute) { generatedDllImportAttr = attr; } else if (lcidConversionAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, lcidConversionAttrType)) { lcidConversionAttr = attr; } else if (suppressGCTransitionAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, suppressGCTransitionAttrType)) { suppressGCTransitionAttribute = attr; } else if (unmanagedCallConvAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, unmanagedCallConvAttrType)) { unmanagedCallConvAttribute = attr; } else if (defaultDllImportSearchPathsAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, defaultDllImportSearchPathsAttrType)) { defaultDllImportSearchPathsAttribute = attr; } } Debug.Assert(generatedDllImportAttr is not null); var generatorDiagnostics = new GeneratorDiagnostics(); // Process the GeneratedDllImport attribute GeneratedDllImportData? stubDllImportData = ProcessGeneratedDllImportAttribute(generatedDllImportAttr!); if (stubDllImportData is null) { generatorDiagnostics.ReportConfigurationNotSupported(generatedDllImportAttr!, "Invalid syntax"); stubDllImportData = new GeneratedDllImportData("INVALID_CSHARP_SYNTAX"); } if (stubDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshalling)) { // User specified StringMarshalling.Custom without specifying StringMarshallingCustomType if (stubDllImportData.StringMarshalling == StringMarshalling.Custom && stubDllImportData.StringMarshallingCustomType is null) { generatorDiagnostics.ReportInvalidStringMarshallingConfiguration( generatedDllImportAttr, symbol.Name, Resources.InvalidStringMarshallingConfigurationMissingCustomType); } // User specified something other than StringMarshalling.Custom while specifying StringMarshallingCustomType if (stubDllImportData.StringMarshalling != StringMarshalling.Custom && stubDllImportData.StringMarshallingCustomType is not null) { generatorDiagnostics.ReportInvalidStringMarshallingConfiguration( generatedDllImportAttr, symbol.Name, Resources.InvalidStringMarshallingConfigurationNotCustom); } } if (lcidConversionAttr is not null) { // Using LCIDConversion with GeneratedDllImport is not supported generatorDiagnostics.ReportConfigurationNotSupported(lcidConversionAttr, nameof(TypeNames.LCIDConversionAttribute)); } // Create the stub. var dllImportStub = DllImportStubContext.Create(symbol, stubDllImportData, environment, generatorDiagnostics, ct); List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultDllImportSearchPathsAttribute); return new IncrementalStubGenerationContext(environment, dllImportStub, additionalAttributes.ToImmutableArray(), stubDllImportData, generatorDiagnostics.Diagnostics.ToImmutableArray()); } private (MemberDeclarationSyntax, ImmutableArray<Diagnostic>) GenerateSource( IncrementalStubGenerationContext dllImportStub, MethodDeclarationSyntax originalSyntax, DllImportGeneratorOptions options) { var diagnostics = new GeneratorDiagnostics(); if (options.GenerateForwarders) { return (PrintForwarderStub(originalSyntax, dllImportStub, diagnostics), dllImportStub.Diagnostics.AddRange(diagnostics.Diagnostics)); } // Generate stub code var stubGenerator = new PInvokeStubCodeGenerator( dllImportStub.Environment, dllImportStub.StubContext.ElementTypeInformation, dllImportStub.DllImportData.SetLastError && !options.GenerateForwarders, (elementInfo, ex) => { diagnostics.ReportMarshallingNotSupported(originalSyntax, elementInfo, ex.NotSupportedDetails); }, dllImportStub.StubContext.GeneratorFactory); // Check if the generator should produce a forwarder stub - regular DllImport. // This is done if the signature is blittable or the target framework is not supported. if (stubGenerator.StubIsBasicForwarder || !stubGenerator.SupportsTargetFramework) { return (PrintForwarderStub(originalSyntax, dllImportStub, diagnostics), dllImportStub.Diagnostics.AddRange(diagnostics.Diagnostics)); } ImmutableArray<AttributeSyntax> forwardedAttributes = dllImportStub.ForwardedAttributes; const string innerPInvokeName = "__PInvoke__"; BlockSyntax code = stubGenerator.GeneratePInvokeBody(innerPInvokeName); LocalFunctionStatementSyntax dllImport = CreateTargetFunctionAsLocalStatement( stubGenerator, dllImportStub.StubContext.Options, dllImportStub.DllImportData, innerPInvokeName, originalSyntax.Identifier.Text); if (!forwardedAttributes.IsEmpty) { dllImport = dllImport.AddAttributeLists(AttributeList(SeparatedList(forwardedAttributes))); } dllImport = dllImport.WithLeadingTrivia( Comment("//"), Comment("// Local P/Invoke"), Comment("//")); code = code.AddStatements(dllImport); return (PrintGeneratedSource(originalSyntax, dllImportStub.StubContext, code), dllImportStub.Diagnostics.AddRange(diagnostics.Diagnostics)); } private MemberDeclarationSyntax PrintForwarderStub(MethodDeclarationSyntax userDeclaredMethod, IncrementalStubGenerationContext stub, GeneratorDiagnostics diagnostics) { GeneratedDllImportData targetDllImportData = GetTargetDllImportDataFromStubData( stub.DllImportData, userDeclaredMethod.Identifier.ValueText, forwardAll: true); if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshalling) && targetDllImportData.StringMarshalling != StringMarshalling.Utf16) { diagnostics.ReportCannotForwardToDllImport( userDeclaredMethod, $"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(StringMarshalling)}", $"{nameof(StringMarshalling)}{Type.Delimiter}{targetDllImportData.StringMarshalling}"); targetDllImportData = targetDllImportData with { IsUserDefined = targetDllImportData.IsUserDefined & ~DllImportMember.StringMarshalling }; } if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshallingCustomType)) { diagnostics.ReportCannotForwardToDllImport( userDeclaredMethod, $"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(DllImportMember.StringMarshallingCustomType)}"); targetDllImportData = targetDllImportData with { IsUserDefined = targetDllImportData.IsUserDefined & ~DllImportMember.StringMarshallingCustomType }; } SyntaxTokenList modifiers = StripTriviaFromModifiers(userDeclaredMethod.Modifiers); modifiers = AddToModifiers(modifiers, SyntaxKind.ExternKeyword); // Create stub function MethodDeclarationSyntax stubMethod = MethodDeclaration(stub.StubContext.StubReturnType, userDeclaredMethod.Identifier) .WithModifiers(modifiers) .WithParameterList(ParameterList(SeparatedList(stub.StubContext.StubParameters))) .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) .AddModifiers() .AddAttributeLists( AttributeList( SingletonSeparatedList( CreateDllImportAttributeForTarget(targetDllImportData)))); MemberDeclarationSyntax toPrint = WrapMethodInContainingScopes(stub.StubContext, stubMethod); return toPrint; } private static LocalFunctionStatementSyntax CreateTargetFunctionAsLocalStatement( PInvokeStubCodeGenerator stubGenerator, DllImportGeneratorOptions options, GeneratedDllImportData dllImportData, string stubTargetName, string stubMethodName) { Debug.Assert(!options.GenerateForwarders, "GenerateForwarders should have already been handled to use a forwarder stub"); (ParameterListSyntax parameterList, TypeSyntax returnType, AttributeListSyntax returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData(); LocalFunctionStatementSyntax localDllImport = LocalFunctionStatement(returnType, stubTargetName) .AddModifiers( Token(SyntaxKind.ExternKeyword), Token(SyntaxKind.StaticKeyword), Token(SyntaxKind.UnsafeKeyword)) .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) .WithAttributeLists( SingletonList(AttributeList( SingletonSeparatedList( CreateDllImportAttributeForTarget( GetTargetDllImportDataFromStubData( dllImportData, stubMethodName, forwardAll: false)))))) .WithParameterList(parameterList); if (returnTypeAttributes is not null) { localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.ReturnKeyword)))); } return localDllImport; } private static AttributeSyntax CreateDllImportAttributeForTarget(GeneratedDllImportData targetDllImportData) { var newAttributeArgs = new List<AttributeArgumentSyntax> { AttributeArgument(LiteralExpression( SyntaxKind.StringLiteralExpression, Literal(targetDllImportData.ModuleName))), AttributeArgument( NameEquals(nameof(DllImportAttribute.EntryPoint)), null, CreateStringExpressionSyntax(targetDllImportData.EntryPoint!)), AttributeArgument( NameEquals(nameof(DllImportAttribute.ExactSpelling)), null, CreateBoolExpressionSyntax(true)) }; if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshalling)) { Debug.Assert(targetDllImportData.StringMarshalling == StringMarshalling.Utf16); NameEqualsSyntax name = NameEquals(nameof(DllImportAttribute.CharSet)); ExpressionSyntax value = CreateEnumExpressionSyntax(CharSet.Unicode); newAttributeArgs.Add(AttributeArgument(name, null, value)); } if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.SetLastError)) { NameEqualsSyntax name = NameEquals(nameof(DllImportAttribute.SetLastError)); ExpressionSyntax value = CreateBoolExpressionSyntax(targetDllImportData.SetLastError); newAttributeArgs.Add(AttributeArgument(name, null, value)); } // Create new attribute return Attribute( ParseName(typeof(DllImportAttribute).FullName), AttributeArgumentList(SeparatedList(newAttributeArgs))); static ExpressionSyntax CreateBoolExpressionSyntax(bool trueOrFalse) { return LiteralExpression( trueOrFalse ? SyntaxKind.TrueLiteralExpression : SyntaxKind.FalseLiteralExpression); } static ExpressionSyntax CreateStringExpressionSyntax(string str) { return LiteralExpression( SyntaxKind.StringLiteralExpression, Literal(str)); } static ExpressionSyntax CreateEnumExpressionSyntax<T>(T value) where T : Enum { return MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, IdentifierName(typeof(T).FullName), IdentifierName(value.ToString())); } } private static GeneratedDllImportData GetTargetDllImportDataFromStubData(GeneratedDllImportData dllImportData, string originalMethodName, bool forwardAll) { DllImportMember membersToForward = DllImportMember.All // https://docs.microsoft.com/dotnet/api/system.runtime.interopservices.dllimportattribute.setlasterror // If SetLastError=true (default is false), the P/Invoke stub gets/caches the last error after invoking the native function. & ~DllImportMember.SetLastError // StringMarshalling does not have a direct mapping on DllImport. The generated code should handle string marshalling. & ~DllImportMember.StringMarshalling; if (forwardAll) { membersToForward = DllImportMember.All; } var targetDllImportData = new GeneratedDllImportData(dllImportData.ModuleName) { EntryPoint = dllImportData.EntryPoint, SetLastError = dllImportData.SetLastError, StringMarshalling = dllImportData.StringMarshalling, IsUserDefined = dllImportData.IsUserDefined & membersToForward }; // If the EntryPoint property is not set, we will compute and // add it based on existing semantics (i.e. method name). // // N.B. The export discovery logic is identical regardless of where // the name is defined (i.e. method name vs EntryPoint property). if (!targetDllImportData.IsUserDefined.HasFlag(DllImportMember.EntryPoint)) { targetDllImportData = targetDllImportData with { EntryPoint = originalMethodName }; } return targetDllImportData; } private static bool ShouldVisitNode(SyntaxNode syntaxNode) { // We only support C# method declarations. if (syntaxNode.Language != LanguageNames.CSharp || !syntaxNode.IsKind(SyntaxKind.MethodDeclaration)) { return false; } var methodSyntax = (MethodDeclarationSyntax)syntaxNode; // Verify the method has no generic types or defined implementation // and is marked static and partial. if (methodSyntax.TypeParameterList is not null || methodSyntax.Body is not null || !methodSyntax.Modifiers.Any(SyntaxKind.StaticKeyword) || !methodSyntax.Modifiers.Any(SyntaxKind.PartialKeyword)) { return false; } // Verify that the types the method is declared in are marked partial. for (SyntaxNode? parentNode = methodSyntax.Parent; parentNode is TypeDeclarationSyntax typeDecl; parentNode = parentNode.Parent) { if (!typeDecl.Modifiers.Any(SyntaxKind.PartialKeyword)) { return false; } } // Filter out methods with no attributes early. if (methodSyntax.AttributeLists.Count == 0) { return false; } return true; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; [assembly: System.Resources.NeutralResourcesLanguage("en-US")] namespace Microsoft.Interop { [Generator] public sealed class DllImportGenerator : IIncrementalGenerator { internal sealed record IncrementalStubGenerationContext( StubEnvironment Environment, DllImportStubContext StubContext, ImmutableArray<AttributeSyntax> ForwardedAttributes, GeneratedDllImportData DllImportData, ImmutableArray<Diagnostic> Diagnostics) { public bool Equals(IncrementalStubGenerationContext? other) { return other is not null && StubEnvironment.AreCompilationSettingsEqual(Environment, other.Environment) && StubContext.Equals(other.StubContext) && DllImportData.Equals(other.DllImportData) && ForwardedAttributes.SequenceEqual(other.ForwardedAttributes, (IEqualityComparer<AttributeSyntax>)SyntaxEquivalentComparer.Instance) && Diagnostics.SequenceEqual(other.Diagnostics); } public override int GetHashCode() { throw new UnreachableException(); } } public class IncrementalityTracker { public enum StepName { CalculateStubInformation, GenerateSingleStub, NormalizeWhitespace, ConcatenateStubs, OutputSourceFile } public record ExecutedStepInfo(StepName Step, object Input); private readonly List<ExecutedStepInfo> _executedSteps = new(); public IEnumerable<ExecutedStepInfo> ExecutedSteps => _executedSteps; internal void RecordExecutedStep(ExecutedStepInfo step) => _executedSteps.Add(step); } /// <summary> /// This property provides a test-only hook to enable testing the incrementality of the source generator. /// This will be removed when https://github.com/dotnet/roslyn/issues/54832 is implemented and can be consumed. /// </summary> public IncrementalityTracker? IncrementalTracker { get; set; } public void Initialize(IncrementalGeneratorInitializationContext context) { var attributedMethods = context.SyntaxProvider .CreateSyntaxProvider( static (node, ct) => ShouldVisitNode(node), static (context, ct) => { MethodDeclarationSyntax syntax = (MethodDeclarationSyntax)context.Node; if (context.SemanticModel.GetDeclaredSymbol(syntax, ct) is IMethodSymbol methodSymbol && methodSymbol.GetAttributes().Any(static attribute => attribute.AttributeClass?.ToDisplayString() == TypeNames.GeneratedDllImportAttribute)) { return new { Syntax = syntax, Symbol = methodSymbol }; } return null; }) .Where( static modelData => modelData is not null); var methodsWithDiagnostics = attributedMethods.Select(static (data, ct) => { Diagnostic? diagnostic = GetDiagnosticIfInvalidMethodForGeneration(data.Syntax, data.Symbol); return new { Syntax = data.Syntax, Symbol = data.Symbol, Diagnostic = diagnostic }; }); var methodsToGenerate = methodsWithDiagnostics.Where(static data => data.Diagnostic is null); var invalidMethodDiagnostics = methodsWithDiagnostics.Where(static data => data.Diagnostic is not null); context.RegisterSourceOutput(invalidMethodDiagnostics, static (context, invalidMethod) => { context.ReportDiagnostic(invalidMethod.Diagnostic); }); IncrementalValueProvider<(Compilation compilation, TargetFramework targetFramework, Version targetFrameworkVersion)> compilationAndTargetFramework = context.CompilationProvider .Select(static (compilation, ct) => { TargetFramework fmk = DetermineTargetFramework(compilation, out Version targetFrameworkVersion); return (compilation, fmk, targetFrameworkVersion); }); context.RegisterSourceOutput( compilationAndTargetFramework .Combine(methodsToGenerate.Collect()), static (context, data) => { if (data.Left.targetFramework is TargetFramework.Unknown && data.Right.Any()) { // We don't block source generation when the TFM is unknown. // This allows a user to copy generated source and use it as a starting point // for manual marshalling if desired. context.ReportDiagnostic( Diagnostic.Create( GeneratorDiagnostics.TargetFrameworkNotSupported, Location.None, data.Left.targetFrameworkVersion)); } }); IncrementalValueProvider<DllImportGeneratorOptions> stubOptions = context.AnalyzerConfigOptionsProvider .Select((options, ct) => new DllImportGeneratorOptions(options.GlobalOptions)); IncrementalValueProvider<StubEnvironment> stubEnvironment = compilationAndTargetFramework .Combine(stubOptions) .Select( static (data, ct) => new StubEnvironment( data.Left.compilation, data.Left.targetFramework, data.Left.targetFrameworkVersion, data.Left.compilation.SourceModule.GetAttributes().Any(attr => attr.AttributeClass?.ToDisplayString() == TypeNames.System_Runtime_CompilerServices_SkipLocalsInitAttribute), data.Right) ); IncrementalValueProvider<(string, ImmutableArray<Diagnostic>)> methodSourceAndDiagnostics = methodsToGenerate .Combine(stubEnvironment) .Select(static (data, ct) => new { data.Left.Syntax, data.Left.Symbol, Environment = data.Right }) .Select( (data, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.CalculateStubInformation, data)); return (data.Syntax, StubContext: CalculateStubInformation(data.Symbol, data.Environment, ct)); } ) .WithComparer(Comparers.CalculatedContextWithSyntax) .Combine(stubOptions) .Select( (data, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.GenerateSingleStub, data)); return GenerateSource(data.Left.StubContext, data.Left.Syntax, data.Right); } ) .WithComparer(Comparers.GeneratedSyntax) // Handle NormalizeWhitespace as a separate stage for incremental runs since it is an expensive operation. .Select( (data, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.NormalizeWhitespace, data)); return (data.Item1.NormalizeWhitespace().ToFullString(), data.Item2); }) .Collect() .WithComparer(Comparers.GeneratedSourceSet) .Select((generatedSources, ct) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.ConcatenateStubs, generatedSources)); StringBuilder source = new(); // Mark in source that the file is auto-generated. source.AppendLine("// <auto-generated/>"); ImmutableArray<Diagnostic>.Builder diagnostics = ImmutableArray.CreateBuilder<Diagnostic>(); foreach ((string, ImmutableArray<Diagnostic>) generated in generatedSources) { source.AppendLine(generated.Item1); diagnostics.AddRange(generated.Item2); } return (source: source.ToString(), diagnostics: diagnostics.ToImmutable()); }) .WithComparer(Comparers.GeneratedSource); context.RegisterSourceOutput(methodSourceAndDiagnostics, (context, data) => { IncrementalTracker?.RecordExecutedStep(new IncrementalityTracker.ExecutedStepInfo(IncrementalityTracker.StepName.OutputSourceFile, data)); foreach (Diagnostic diagnostic in data.Item2) { context.ReportDiagnostic(diagnostic); } context.AddSource("GeneratedDllImports.g.cs", data.Item1); }); } private static List<AttributeSyntax> GenerateSyntaxForForwardedAttributes(AttributeData? suppressGCTransitionAttribute, AttributeData? unmanagedCallConvAttribute, AttributeData? defaultDllImportSearchPathsAttribute) { const string CallConvsField = "CallConvs"; // Manually rehydrate the forwarded attributes with fully qualified types so we don't have to worry about any using directives. List<AttributeSyntax> attributes = new(); if (suppressGCTransitionAttribute is not null) { attributes.Add(Attribute(ParseName(TypeNames.SuppressGCTransitionAttribute))); } if (unmanagedCallConvAttribute is not null) { AttributeSyntax unmanagedCallConvSyntax = Attribute(ParseName(TypeNames.UnmanagedCallConvAttribute)); foreach (KeyValuePair<string, TypedConstant> arg in unmanagedCallConvAttribute.NamedArguments) { if (arg.Key == CallConvsField) { InitializerExpressionSyntax callConvs = InitializerExpression(SyntaxKind.ArrayInitializerExpression); foreach (TypedConstant callConv in arg.Value.Values) { callConvs = callConvs.AddExpressions( TypeOfExpression(((ITypeSymbol)callConv.Value!).AsTypeSyntax())); } ArrayTypeSyntax arrayOfSystemType = ArrayType(ParseTypeName(TypeNames.System_Type), SingletonList(ArrayRankSpecifier())); unmanagedCallConvSyntax = unmanagedCallConvSyntax.AddArgumentListArguments( AttributeArgument( ArrayCreationExpression(arrayOfSystemType) .WithInitializer(callConvs)) .WithNameEquals(NameEquals(IdentifierName(CallConvsField)))); } } attributes.Add(unmanagedCallConvSyntax); } if (defaultDllImportSearchPathsAttribute is not null) { attributes.Add( Attribute(ParseName(TypeNames.DefaultDllImportSearchPathsAttribute)).AddArgumentListArguments( AttributeArgument( CastExpression(ParseTypeName(TypeNames.DllImportSearchPath), LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal((int)defaultDllImportSearchPathsAttribute.ConstructorArguments[0].Value!)))))); } return attributes; } private static SyntaxTokenList StripTriviaFromModifiers(SyntaxTokenList tokenList) { SyntaxToken[] strippedTokens = new SyntaxToken[tokenList.Count]; for (int i = 0; i < tokenList.Count; i++) { strippedTokens[i] = tokenList[i].WithoutTrivia(); } return new SyntaxTokenList(strippedTokens); } private static SyntaxTokenList AddToModifiers(SyntaxTokenList modifiers, SyntaxKind modifierToAdd) { if (modifiers.IndexOf(modifierToAdd) >= 0) return modifiers; int idx = modifiers.IndexOf(SyntaxKind.PartialKeyword); return idx >= 0 ? modifiers.Insert(idx, Token(modifierToAdd)) : modifiers.Add(Token(modifierToAdd)); } private static TypeDeclarationSyntax CreateTypeDeclarationWithoutTrivia(TypeDeclarationSyntax typeDeclaration) { return TypeDeclaration( typeDeclaration.Kind(), typeDeclaration.Identifier) .WithTypeParameterList(typeDeclaration.TypeParameterList) .WithModifiers(StripTriviaFromModifiers(typeDeclaration.Modifiers)); } private static MemberDeclarationSyntax PrintGeneratedSource( MethodDeclarationSyntax userDeclaredMethod, DllImportStubContext stub, BlockSyntax stubCode) { // Create stub function MethodDeclarationSyntax stubMethod = MethodDeclaration(stub.StubReturnType, userDeclaredMethod.Identifier) .AddAttributeLists(stub.AdditionalAttributes.ToArray()) .WithModifiers(StripTriviaFromModifiers(userDeclaredMethod.Modifiers)) .WithParameterList(ParameterList(SeparatedList(stub.StubParameters))) .WithBody(stubCode); MemberDeclarationSyntax toPrint = WrapMethodInContainingScopes(stub, stubMethod); return toPrint; } private static MemberDeclarationSyntax WrapMethodInContainingScopes(DllImportStubContext stub, MethodDeclarationSyntax stubMethod) { // Stub should have at least one containing type Debug.Assert(stub.StubContainingTypes.Any()); // Add stub function and DllImport declaration to the first (innermost) containing MemberDeclarationSyntax containingType = CreateTypeDeclarationWithoutTrivia(stub.StubContainingTypes.First()) .AddMembers(stubMethod); // Mark containing type as unsafe such that all the generated functions will be in an unsafe context. containingType = containingType.WithModifiers(AddToModifiers(containingType.Modifiers, SyntaxKind.UnsafeKeyword)); // Add type to the remaining containing types (skipping the first which was handled above) foreach (TypeDeclarationSyntax typeDecl in stub.StubContainingTypes.Skip(1)) { containingType = CreateTypeDeclarationWithoutTrivia(typeDecl) .WithMembers(SingletonList(containingType)); } MemberDeclarationSyntax toPrint = containingType; // Add type to the containing namespace if (stub.StubTypeNamespace is not null) { toPrint = NamespaceDeclaration(IdentifierName(stub.StubTypeNamespace)) .AddMembers(toPrint); } return toPrint; } private static TargetFramework DetermineTargetFramework(Compilation compilation, out Version version) { IAssemblySymbol systemAssembly = compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly; version = systemAssembly.Identity.Version; return systemAssembly.Identity.Name switch { // .NET Framework "mscorlib" => TargetFramework.Framework, // .NET Standard "netstandard" => TargetFramework.Standard, // .NET Core (when version < 5.0) or .NET "System.Runtime" or "System.Private.CoreLib" => (version.Major < 5) ? TargetFramework.Core : TargetFramework.Net, _ => TargetFramework.Unknown, }; } private static GeneratedDllImportData? ProcessGeneratedDllImportAttribute(AttributeData attrData) { // Found the GeneratedDllImport, but it has an error so report the error. // This is most likely an issue with targeting an incorrect TFM. if (attrData.AttributeClass?.TypeKind is null or TypeKind.Error) { return null; } // Default values for these properties are based on the // documented semanatics of DllImportAttribute: // - https://docs.microsoft.com/dotnet/api/system.runtime.interopservices.dllimportattribute DllImportMember userDefinedValues = DllImportMember.None; string? entryPoint = null; bool setLastError = false; StringMarshalling stringMarshalling = StringMarshalling.Custom; INamedTypeSymbol? stringMarshallingCustomType = null; // All other data on attribute is defined as NamedArguments. foreach (KeyValuePair<string, TypedConstant> namedArg in attrData.NamedArguments) { switch (namedArg.Key) { default: // This should never occur in a released build, // but can happen when evolving the ecosystem. // Return null here to indicate invalid attribute data. Debug.WriteLine($"An unknown member '{namedArg.Key}' was found on {attrData.AttributeClass}"); return null; case nameof(GeneratedDllImportData.EntryPoint): userDefinedValues |= DllImportMember.EntryPoint; if (namedArg.Value.Value is not string) { return null; } entryPoint = (string)namedArg.Value.Value!; break; case nameof(GeneratedDllImportData.SetLastError): userDefinedValues |= DllImportMember.SetLastError; if (namedArg.Value.Value is not bool) { return null; } setLastError = (bool)namedArg.Value.Value!; break; case nameof(GeneratedDllImportData.StringMarshalling): userDefinedValues |= DllImportMember.StringMarshalling; // TypedConstant's Value property only contains primitive values. if (namedArg.Value.Value is not int) { return null; } // A boxed primitive can be unboxed to an enum with the same underlying type. stringMarshalling = (StringMarshalling)namedArg.Value.Value!; break; case nameof(GeneratedDllImportData.StringMarshallingCustomType): userDefinedValues |= DllImportMember.StringMarshallingCustomType; if (namedArg.Value.Value is not INamedTypeSymbol) { return null; } stringMarshallingCustomType = (INamedTypeSymbol)namedArg.Value.Value; break; } } if (attrData.ConstructorArguments.Length == 0) { return null; } return new GeneratedDllImportData(attrData.ConstructorArguments[0].Value!.ToString()) { IsUserDefined = userDefinedValues, EntryPoint = entryPoint, SetLastError = setLastError, StringMarshalling = stringMarshalling, StringMarshallingCustomType = stringMarshallingCustomType, }; } private static IncrementalStubGenerationContext CalculateStubInformation(IMethodSymbol symbol, StubEnvironment environment, CancellationToken ct) { INamedTypeSymbol? lcidConversionAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.LCIDConversionAttribute); INamedTypeSymbol? suppressGCTransitionAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.SuppressGCTransitionAttribute); INamedTypeSymbol? unmanagedCallConvAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.UnmanagedCallConvAttribute); INamedTypeSymbol? defaultDllImportSearchPathsAttrType = environment.Compilation.GetTypeByMetadataName(TypeNames.DefaultDllImportSearchPathsAttribute); // Get any attributes of interest on the method AttributeData? generatedDllImportAttr = null; AttributeData? lcidConversionAttr = null; AttributeData? suppressGCTransitionAttribute = null; AttributeData? unmanagedCallConvAttribute = null; AttributeData? defaultDllImportSearchPathsAttribute = null; foreach (AttributeData attr in symbol.GetAttributes()) { if (attr.AttributeClass is not null && attr.AttributeClass.ToDisplayString() == TypeNames.GeneratedDllImportAttribute) { generatedDllImportAttr = attr; } else if (lcidConversionAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, lcidConversionAttrType)) { lcidConversionAttr = attr; } else if (suppressGCTransitionAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, suppressGCTransitionAttrType)) { suppressGCTransitionAttribute = attr; } else if (unmanagedCallConvAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, unmanagedCallConvAttrType)) { unmanagedCallConvAttribute = attr; } else if (defaultDllImportSearchPathsAttrType is not null && SymbolEqualityComparer.Default.Equals(attr.AttributeClass, defaultDllImportSearchPathsAttrType)) { defaultDllImportSearchPathsAttribute = attr; } } Debug.Assert(generatedDllImportAttr is not null); var generatorDiagnostics = new GeneratorDiagnostics(); // Process the GeneratedDllImport attribute GeneratedDllImportData? stubDllImportData = ProcessGeneratedDllImportAttribute(generatedDllImportAttr!); if (stubDllImportData is null) { generatorDiagnostics.ReportConfigurationNotSupported(generatedDllImportAttr!, "Invalid syntax"); stubDllImportData = new GeneratedDllImportData("INVALID_CSHARP_SYNTAX"); } if (stubDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshalling)) { // User specified StringMarshalling.Custom without specifying StringMarshallingCustomType if (stubDllImportData.StringMarshalling == StringMarshalling.Custom && stubDllImportData.StringMarshallingCustomType is null) { generatorDiagnostics.ReportInvalidStringMarshallingConfiguration( generatedDllImportAttr, symbol.Name, Resources.InvalidStringMarshallingConfigurationMissingCustomType); } // User specified something other than StringMarshalling.Custom while specifying StringMarshallingCustomType if (stubDllImportData.StringMarshalling != StringMarshalling.Custom && stubDllImportData.StringMarshallingCustomType is not null) { generatorDiagnostics.ReportInvalidStringMarshallingConfiguration( generatedDllImportAttr, symbol.Name, Resources.InvalidStringMarshallingConfigurationNotCustom); } } if (lcidConversionAttr is not null) { // Using LCIDConversion with GeneratedDllImport is not supported generatorDiagnostics.ReportConfigurationNotSupported(lcidConversionAttr, nameof(TypeNames.LCIDConversionAttribute)); } // Create the stub. var dllImportStub = DllImportStubContext.Create(symbol, stubDllImportData, environment, generatorDiagnostics, ct); List<AttributeSyntax> additionalAttributes = GenerateSyntaxForForwardedAttributes(suppressGCTransitionAttribute, unmanagedCallConvAttribute, defaultDllImportSearchPathsAttribute); return new IncrementalStubGenerationContext(environment, dllImportStub, additionalAttributes.ToImmutableArray(), stubDllImportData, generatorDiagnostics.Diagnostics.ToImmutableArray()); } private (MemberDeclarationSyntax, ImmutableArray<Diagnostic>) GenerateSource( IncrementalStubGenerationContext dllImportStub, MethodDeclarationSyntax originalSyntax, DllImportGeneratorOptions options) { var diagnostics = new GeneratorDiagnostics(); if (options.GenerateForwarders) { return (PrintForwarderStub(originalSyntax, dllImportStub, diagnostics), dllImportStub.Diagnostics.AddRange(diagnostics.Diagnostics)); } // Generate stub code var stubGenerator = new PInvokeStubCodeGenerator( dllImportStub.Environment, dllImportStub.StubContext.ElementTypeInformation, dllImportStub.DllImportData.SetLastError && !options.GenerateForwarders, (elementInfo, ex) => { diagnostics.ReportMarshallingNotSupported(originalSyntax, elementInfo, ex.NotSupportedDetails); }, dllImportStub.StubContext.GeneratorFactory); // Check if the generator should produce a forwarder stub - regular DllImport. // This is done if the signature is blittable or the target framework is not supported. if (stubGenerator.StubIsBasicForwarder || !stubGenerator.SupportsTargetFramework) { return (PrintForwarderStub(originalSyntax, dllImportStub, diagnostics), dllImportStub.Diagnostics.AddRange(diagnostics.Diagnostics)); } ImmutableArray<AttributeSyntax> forwardedAttributes = dllImportStub.ForwardedAttributes; const string innerPInvokeName = "__PInvoke__"; BlockSyntax code = stubGenerator.GeneratePInvokeBody(innerPInvokeName); LocalFunctionStatementSyntax dllImport = CreateTargetFunctionAsLocalStatement( stubGenerator, dllImportStub.StubContext.Options, dllImportStub.DllImportData, innerPInvokeName, originalSyntax.Identifier.Text); if (!forwardedAttributes.IsEmpty) { dllImport = dllImport.AddAttributeLists(AttributeList(SeparatedList(forwardedAttributes))); } dllImport = dllImport.WithLeadingTrivia( Comment("//"), Comment("// Local P/Invoke"), Comment("//")); code = code.AddStatements(dllImport); return (PrintGeneratedSource(originalSyntax, dllImportStub.StubContext, code), dllImportStub.Diagnostics.AddRange(diagnostics.Diagnostics)); } private MemberDeclarationSyntax PrintForwarderStub(MethodDeclarationSyntax userDeclaredMethod, IncrementalStubGenerationContext stub, GeneratorDiagnostics diagnostics) { GeneratedDllImportData targetDllImportData = GetTargetDllImportDataFromStubData( stub.DllImportData, userDeclaredMethod.Identifier.ValueText, forwardAll: true); if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshalling) && targetDllImportData.StringMarshalling != StringMarshalling.Utf16) { diagnostics.ReportCannotForwardToDllImport( userDeclaredMethod, $"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(StringMarshalling)}", $"{nameof(StringMarshalling)}{Type.Delimiter}{targetDllImportData.StringMarshalling}"); targetDllImportData = targetDllImportData with { IsUserDefined = targetDllImportData.IsUserDefined & ~DllImportMember.StringMarshalling }; } if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshallingCustomType)) { diagnostics.ReportCannotForwardToDllImport( userDeclaredMethod, $"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(DllImportMember.StringMarshallingCustomType)}"); targetDllImportData = targetDllImportData with { IsUserDefined = targetDllImportData.IsUserDefined & ~DllImportMember.StringMarshallingCustomType }; } SyntaxTokenList modifiers = StripTriviaFromModifiers(userDeclaredMethod.Modifiers); modifiers = AddToModifiers(modifiers, SyntaxKind.ExternKeyword); // Create stub function MethodDeclarationSyntax stubMethod = MethodDeclaration(stub.StubContext.StubReturnType, userDeclaredMethod.Identifier) .WithModifiers(modifiers) .WithParameterList(ParameterList(SeparatedList(stub.StubContext.StubParameters))) .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) .AddModifiers() .AddAttributeLists( AttributeList( SingletonSeparatedList( CreateDllImportAttributeForTarget(targetDllImportData)))); MemberDeclarationSyntax toPrint = WrapMethodInContainingScopes(stub.StubContext, stubMethod); return toPrint; } private static LocalFunctionStatementSyntax CreateTargetFunctionAsLocalStatement( PInvokeStubCodeGenerator stubGenerator, DllImportGeneratorOptions options, GeneratedDllImportData dllImportData, string stubTargetName, string stubMethodName) { Debug.Assert(!options.GenerateForwarders, "GenerateForwarders should have already been handled to use a forwarder stub"); (ParameterListSyntax parameterList, TypeSyntax returnType, AttributeListSyntax returnTypeAttributes) = stubGenerator.GenerateTargetMethodSignatureData(); LocalFunctionStatementSyntax localDllImport = LocalFunctionStatement(returnType, stubTargetName) .AddModifiers( Token(SyntaxKind.ExternKeyword), Token(SyntaxKind.StaticKeyword), Token(SyntaxKind.UnsafeKeyword)) .WithSemicolonToken(Token(SyntaxKind.SemicolonToken)) .WithAttributeLists( SingletonList(AttributeList( SingletonSeparatedList( CreateDllImportAttributeForTarget( GetTargetDllImportDataFromStubData( dllImportData, stubMethodName, forwardAll: false)))))) .WithParameterList(parameterList); if (returnTypeAttributes is not null) { localDllImport = localDllImport.AddAttributeLists(returnTypeAttributes.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.ReturnKeyword)))); } return localDllImport; } private static AttributeSyntax CreateDllImportAttributeForTarget(GeneratedDllImportData targetDllImportData) { var newAttributeArgs = new List<AttributeArgumentSyntax> { AttributeArgument(LiteralExpression( SyntaxKind.StringLiteralExpression, Literal(targetDllImportData.ModuleName))), AttributeArgument( NameEquals(nameof(DllImportAttribute.EntryPoint)), null, CreateStringExpressionSyntax(targetDllImportData.EntryPoint!)), AttributeArgument( NameEquals(nameof(DllImportAttribute.ExactSpelling)), null, CreateBoolExpressionSyntax(true)) }; if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.StringMarshalling)) { Debug.Assert(targetDllImportData.StringMarshalling == StringMarshalling.Utf16); NameEqualsSyntax name = NameEquals(nameof(DllImportAttribute.CharSet)); ExpressionSyntax value = CreateEnumExpressionSyntax(CharSet.Unicode); newAttributeArgs.Add(AttributeArgument(name, null, value)); } if (targetDllImportData.IsUserDefined.HasFlag(DllImportMember.SetLastError)) { NameEqualsSyntax name = NameEquals(nameof(DllImportAttribute.SetLastError)); ExpressionSyntax value = CreateBoolExpressionSyntax(targetDllImportData.SetLastError); newAttributeArgs.Add(AttributeArgument(name, null, value)); } // Create new attribute return Attribute( ParseName(typeof(DllImportAttribute).FullName), AttributeArgumentList(SeparatedList(newAttributeArgs))); static ExpressionSyntax CreateBoolExpressionSyntax(bool trueOrFalse) { return LiteralExpression( trueOrFalse ? SyntaxKind.TrueLiteralExpression : SyntaxKind.FalseLiteralExpression); } static ExpressionSyntax CreateStringExpressionSyntax(string str) { return LiteralExpression( SyntaxKind.StringLiteralExpression, Literal(str)); } static ExpressionSyntax CreateEnumExpressionSyntax<T>(T value) where T : Enum { return MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, IdentifierName(typeof(T).FullName), IdentifierName(value.ToString())); } } private static GeneratedDllImportData GetTargetDllImportDataFromStubData(GeneratedDllImportData dllImportData, string originalMethodName, bool forwardAll) { DllImportMember membersToForward = DllImportMember.All // https://docs.microsoft.com/dotnet/api/system.runtime.interopservices.dllimportattribute.setlasterror // If SetLastError=true (default is false), the P/Invoke stub gets/caches the last error after invoking the native function. & ~DllImportMember.SetLastError // StringMarshalling does not have a direct mapping on DllImport. The generated code should handle string marshalling. & ~DllImportMember.StringMarshalling; if (forwardAll) { membersToForward = DllImportMember.All; } var targetDllImportData = new GeneratedDllImportData(dllImportData.ModuleName) { EntryPoint = dllImportData.EntryPoint, SetLastError = dllImportData.SetLastError, StringMarshalling = dllImportData.StringMarshalling, IsUserDefined = dllImportData.IsUserDefined & membersToForward }; // If the EntryPoint property is not set, we will compute and // add it based on existing semantics (i.e. method name). // // N.B. The export discovery logic is identical regardless of where // the name is defined (i.e. method name vs EntryPoint property). if (!targetDllImportData.IsUserDefined.HasFlag(DllImportMember.EntryPoint)) { targetDllImportData = targetDllImportData with { EntryPoint = originalMethodName }; } return targetDllImportData; } private static bool ShouldVisitNode(SyntaxNode syntaxNode) { // We only support C# method declarations. if (syntaxNode.Language != LanguageNames.CSharp || !syntaxNode.IsKind(SyntaxKind.MethodDeclaration)) { return false; } // Filter out methods with no attributes early. return ((MethodDeclarationSyntax)syntaxNode).AttributeLists.Count > 0; } private static Diagnostic? GetDiagnosticIfInvalidMethodForGeneration(MethodDeclarationSyntax methodSyntax, IMethodSymbol method) { // Verify the method has no generic types or defined implementation // and is marked static and partial. if (methodSyntax.TypeParameterList is not null || methodSyntax.Body is not null || !methodSyntax.Modifiers.Any(SyntaxKind.StaticKeyword) || !methodSyntax.Modifiers.Any(SyntaxKind.PartialKeyword)) { return Diagnostic.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); } // Verify that the types the method is declared in are marked partial. for (SyntaxNode? parentNode = methodSyntax.Parent; parentNode is TypeDeclarationSyntax typeDecl; parentNode = parentNode.Parent) { if (!typeDecl.Modifiers.Any(SyntaxKind.PartialKeyword)) { return Diagnostic.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier); } } // Verify the method does not have a ref return if (method.ReturnsByRef || method.ReturnsByRefReadonly) { return Diagnostic.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString()); } return null; } } }
1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/GeneratorDiagnostics.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Text; namespace Microsoft.Interop { /// <summary> /// Class for reporting diagnostics in the DLL import generator /// </summary> public class GeneratorDiagnostics : IGeneratorDiagnostics { public class Ids { public const string Prefix = "DLLIMPORTGEN"; public const string InvalidGeneratedDllImportAttributeUsage = Prefix + "001"; public const string TypeNotSupported = Prefix + "002"; public const string ConfigurationNotSupported = Prefix + "003"; public const string TargetFrameworkNotSupported = Prefix + "004"; public const string CannotForwardToDllImport = Prefix + "005"; } private const string Category = "SourceGeneration"; public static readonly DiagnosticDescriptor InvalidStringMarshallingConfiguration = new DiagnosticDescriptor( Ids.InvalidGeneratedDllImportAttributeUsage, GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)), GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationDescription))); public static readonly DiagnosticDescriptor ParameterTypeNotSupported = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageParameter)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ReturnTypeNotSupported = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageReturn)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ParameterTypeNotSupportedWithDetails = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageParameterWithDetails)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ReturnTypeNotSupportedWithDetails = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageReturnWithDetails)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ParameterConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageParameter)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor ReturnConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageReturn)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor ConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor ConfigurationValueNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageValue)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor MarshallingAttributeConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageMarshallingInfo)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor TargetFrameworkNotSupported = new DiagnosticDescriptor( Ids.TargetFrameworkNotSupported, GetResourceString(nameof(Resources.TargetFrameworkNotSupportedTitle)), GetResourceString(nameof(Resources.TargetFrameworkNotSupportedMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TargetFrameworkNotSupportedDescription))); public static readonly DiagnosticDescriptor CannotForwardToDllImport = new DiagnosticDescriptor( Ids.CannotForwardToDllImport, GetResourceString(nameof(Resources.CannotForwardToDllImportTitle)), GetResourceString(nameof(Resources.CannotForwardToDllImportMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.CannotForwardToDllImportDescription))); private readonly List<Diagnostic> _diagnostics = new List<Diagnostic>(); public IEnumerable<Diagnostic> Diagnostics => _diagnostics; /// <summary> /// Report diagnostic for invalid configuration for string marshalling. /// </summary> /// <param name="attributeData">Attribute specifying the invalid configuration</param> /// <param name="methodName">Name of the method</param> /// <param name="detailsMessage">Specific reason the configuration is invalid</param> public void ReportInvalidStringMarshallingConfiguration( AttributeData attributeData, string methodName, string detailsMessage) { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.InvalidStringMarshallingConfiguration, methodName, detailsMessage)); } /// <summary> /// Report diagnostic for configuration that is not supported by the DLL import source generator /// </summary> /// <param name="attributeData">Attribute specifying the unsupported configuration</param> /// <param name="configurationName">Name of the configuration</param> /// <param name="unsupportedValue">[Optiona] Unsupported configuration value</param> public void ReportConfigurationNotSupported( AttributeData attributeData, string configurationName, string? unsupportedValue = null) { if (unsupportedValue == null) { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.ConfigurationNotSupported, configurationName)); } else { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.ConfigurationValueNotSupported, unsupportedValue, configurationName)); } } /// <summary> /// Report diagnostic for marshalling of a parameter/return that is not supported /// </summary> /// <param name="method">Method with the parameter/return</param> /// <param name="info">Type info for the parameter/return</param> /// <param name="notSupportedDetails">[Optional] Specific reason for lack of support</param> public void ReportMarshallingNotSupported( MethodDeclarationSyntax method, TypePositionInfo info, string? notSupportedDetails) { Location diagnosticLocation = Location.None; string elementName = string.Empty; if (info.IsManagedReturnPosition) { diagnosticLocation = Location.Create(method.SyntaxTree, method.Identifier.Span); elementName = method.Identifier.ValueText; } else { Debug.Assert(info.ManagedIndex <= method.ParameterList.Parameters.Count); ParameterSyntax param = method.ParameterList.Parameters[info.ManagedIndex]; diagnosticLocation = Location.Create(param.SyntaxTree, param.Identifier.Span); elementName = param.Identifier.ValueText; } if (!string.IsNullOrEmpty(notSupportedDetails)) { // Report the specific not-supported reason. if (info.IsManagedReturnPosition) { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails, notSupportedDetails!, elementName)); } else { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails, notSupportedDetails!, elementName)); } } else if (info.MarshallingAttributeInfo is MarshalAsInfo) { // Report that the specified marshalling configuration is not supported. // We don't forward marshalling attributes, so this is reported differently // than when there is no attribute and the type itself is not supported. if (info.IsManagedReturnPosition) { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ReturnConfigurationNotSupported, nameof(System.Runtime.InteropServices.MarshalAsAttribute), elementName)); } else { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ParameterConfigurationNotSupported, nameof(System.Runtime.InteropServices.MarshalAsAttribute), elementName)); } } else { // Report that the type is not supported if (info.IsManagedReturnPosition) { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ReturnTypeNotSupported, info.ManagedType.DiagnosticFormattedName, elementName)); } else { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ParameterTypeNotSupported, info.ManagedType.DiagnosticFormattedName, elementName)); } } } public void ReportInvalidMarshallingAttributeInfo( AttributeData attributeData, string reasonResourceName, params string[] reasonArgs) { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.MarshallingAttributeConfigurationNotSupported, new LocalizableResourceString(reasonResourceName, Resources.ResourceManager, typeof(Resources), reasonArgs))); } /// <summary> /// Report diagnostic for targeting a framework that is not supported /// </summary> /// <param name="minimumSupportedVersion">Minimum supported version of .NET</param> public void ReportTargetFrameworkNotSupported(Version minimumSupportedVersion) { _diagnostics.Add( Diagnostic.Create( TargetFrameworkNotSupported, Location.None, minimumSupportedVersion.ToString(2))); } /// <summary> /// Report diagnostic for configuration that cannot be forwarded to <see cref="DllImportAttribute" /> /// </summary> /// <param name="method">Method with the configuration that cannot be forwarded</param> /// <param name="name">Configuration name</param> /// <param name="value">Configuration value</param> public void ReportCannotForwardToDllImport(MethodDeclarationSyntax method, string name, string? value = null) { _diagnostics.Add( Diagnostic.Create( CannotForwardToDllImport, Location.Create(method.SyntaxTree, method.Identifier.Span), value is null ? name : $"{name}={value}")); } private static LocalizableResourceString GetResourceString(string resourceName) { return new LocalizableResourceString(resourceName, Resources.ResourceManager, typeof(Resources)); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Text; namespace Microsoft.Interop { /// <summary> /// Class for reporting diagnostics in the DLL import generator /// </summary> public class GeneratorDiagnostics : IGeneratorDiagnostics { public class Ids { public const string Prefix = "DLLIMPORTGEN"; public const string InvalidGeneratedDllImportAttributeUsage = Prefix + "001"; public const string TypeNotSupported = Prefix + "002"; public const string ConfigurationNotSupported = Prefix + "003"; public const string TargetFrameworkNotSupported = Prefix + "004"; public const string CannotForwardToDllImport = Prefix + "005"; } private const string Category = "SourceGeneration"; public static readonly DiagnosticDescriptor InvalidAttributedMethodSignature = new DiagnosticDescriptor( Ids.InvalidGeneratedDllImportAttributeUsage, GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)), GetResourceString(nameof(Resources.InvalidAttributedMethodSignatureMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.InvalidAttributedMethodDescription))); public static readonly DiagnosticDescriptor InvalidAttributedMethodContainingTypeMissingModifiers = new DiagnosticDescriptor( Ids.InvalidGeneratedDllImportAttributeUsage, GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)), GetResourceString(nameof(Resources.InvalidAttributedMethodContainingTypeMissingModifiersMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.InvalidAttributedMethodDescription))); public static readonly DiagnosticDescriptor InvalidStringMarshallingConfiguration = new DiagnosticDescriptor( Ids.InvalidGeneratedDllImportAttributeUsage, GetResourceString(nameof(Resources.InvalidLibraryImportAttributeUsageTitle)), GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.InvalidStringMarshallingConfigurationDescription))); public static readonly DiagnosticDescriptor ParameterTypeNotSupported = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageParameter)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ReturnTypeNotSupported = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageReturn)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ParameterTypeNotSupportedWithDetails = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageParameterWithDetails)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ReturnTypeNotSupportedWithDetails = new DiagnosticDescriptor( Ids.TypeNotSupported, GetResourceString(nameof(Resources.TypeNotSupportedTitle)), GetResourceString(nameof(Resources.TypeNotSupportedMessageReturnWithDetails)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TypeNotSupportedDescription))); public static readonly DiagnosticDescriptor ParameterConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageParameter)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor ReturnConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageReturn)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor ConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor ConfigurationValueNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageValue)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor MarshallingAttributeConfigurationNotSupported = new DiagnosticDescriptor( Ids.ConfigurationNotSupported, GetResourceString(nameof(Resources.ConfigurationNotSupportedTitle)), GetResourceString(nameof(Resources.ConfigurationNotSupportedMessageMarshallingInfo)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.ConfigurationNotSupportedDescription))); public static readonly DiagnosticDescriptor TargetFrameworkNotSupported = new DiagnosticDescriptor( Ids.TargetFrameworkNotSupported, GetResourceString(nameof(Resources.TargetFrameworkNotSupportedTitle)), GetResourceString(nameof(Resources.TargetFrameworkNotSupportedMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.TargetFrameworkNotSupportedDescription))); public static readonly DiagnosticDescriptor CannotForwardToDllImport = new DiagnosticDescriptor( Ids.CannotForwardToDllImport, GetResourceString(nameof(Resources.CannotForwardToDllImportTitle)), GetResourceString(nameof(Resources.CannotForwardToDllImportMessage)), Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: GetResourceString(nameof(Resources.CannotForwardToDllImportDescription))); private readonly List<Diagnostic> _diagnostics = new List<Diagnostic>(); public IEnumerable<Diagnostic> Diagnostics => _diagnostics; /// <summary> /// Report diagnostic for invalid configuration for string marshalling. /// </summary> /// <param name="attributeData">Attribute specifying the invalid configuration</param> /// <param name="methodName">Name of the method</param> /// <param name="detailsMessage">Specific reason the configuration is invalid</param> public void ReportInvalidStringMarshallingConfiguration( AttributeData attributeData, string methodName, string detailsMessage) { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.InvalidStringMarshallingConfiguration, methodName, detailsMessage)); } /// <summary> /// Report diagnostic for configuration that is not supported by the DLL import source generator /// </summary> /// <param name="attributeData">Attribute specifying the unsupported configuration</param> /// <param name="configurationName">Name of the configuration</param> /// <param name="unsupportedValue">[Optiona] Unsupported configuration value</param> public void ReportConfigurationNotSupported( AttributeData attributeData, string configurationName, string? unsupportedValue = null) { if (unsupportedValue == null) { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.ConfigurationNotSupported, configurationName)); } else { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.ConfigurationValueNotSupported, unsupportedValue, configurationName)); } } /// <summary> /// Report diagnostic for marshalling of a parameter/return that is not supported /// </summary> /// <param name="method">Method with the parameter/return</param> /// <param name="info">Type info for the parameter/return</param> /// <param name="notSupportedDetails">[Optional] Specific reason for lack of support</param> public void ReportMarshallingNotSupported( MethodDeclarationSyntax method, TypePositionInfo info, string? notSupportedDetails) { Location diagnosticLocation = Location.None; string elementName = string.Empty; if (info.IsManagedReturnPosition) { diagnosticLocation = Location.Create(method.SyntaxTree, method.Identifier.Span); elementName = method.Identifier.ValueText; } else { Debug.Assert(info.ManagedIndex <= method.ParameterList.Parameters.Count); ParameterSyntax param = method.ParameterList.Parameters[info.ManagedIndex]; diagnosticLocation = Location.Create(param.SyntaxTree, param.Identifier.Span); elementName = param.Identifier.ValueText; } if (!string.IsNullOrEmpty(notSupportedDetails)) { // Report the specific not-supported reason. if (info.IsManagedReturnPosition) { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails, notSupportedDetails!, elementName)); } else { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails, notSupportedDetails!, elementName)); } } else if (info.MarshallingAttributeInfo is MarshalAsInfo) { // Report that the specified marshalling configuration is not supported. // We don't forward marshalling attributes, so this is reported differently // than when there is no attribute and the type itself is not supported. if (info.IsManagedReturnPosition) { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ReturnConfigurationNotSupported, nameof(System.Runtime.InteropServices.MarshalAsAttribute), elementName)); } else { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ParameterConfigurationNotSupported, nameof(System.Runtime.InteropServices.MarshalAsAttribute), elementName)); } } else { // Report that the type is not supported if (info.IsManagedReturnPosition) { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ReturnTypeNotSupported, info.ManagedType.DiagnosticFormattedName, elementName)); } else { _diagnostics.Add( diagnosticLocation.CreateDiagnostic( GeneratorDiagnostics.ParameterTypeNotSupported, info.ManagedType.DiagnosticFormattedName, elementName)); } } } public void ReportInvalidMarshallingAttributeInfo( AttributeData attributeData, string reasonResourceName, params string[] reasonArgs) { _diagnostics.Add( attributeData.CreateDiagnostic( GeneratorDiagnostics.MarshallingAttributeConfigurationNotSupported, new LocalizableResourceString(reasonResourceName, Resources.ResourceManager, typeof(Resources), reasonArgs))); } /// <summary> /// Report diagnostic for targeting a framework that is not supported /// </summary> /// <param name="minimumSupportedVersion">Minimum supported version of .NET</param> public void ReportTargetFrameworkNotSupported(Version minimumSupportedVersion) { _diagnostics.Add( Diagnostic.Create( TargetFrameworkNotSupported, Location.None, minimumSupportedVersion.ToString(2))); } /// <summary> /// Report diagnostic for configuration that cannot be forwarded to <see cref="DllImportAttribute" /> /// </summary> /// <param name="method">Method with the configuration that cannot be forwarded</param> /// <param name="name">Configuration name</param> /// <param name="value">Configuration value</param> public void ReportCannotForwardToDllImport(MethodDeclarationSyntax method, string name, string? value = null) { _diagnostics.Add( Diagnostic.Create( CannotForwardToDllImport, Location.Create(method.SyntaxTree, method.Identifier.Span), value is null ? name : $"{name}={value}")); } private static LocalizableResourceString GetResourceString(string resourceName) { return new LocalizableResourceString(resourceName, Resources.ResourceManager, typeof(Resources)); } } }
1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/Resources.Designer.cs
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Microsoft.Interop { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Interop.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized string similar to A type marked with &apos;BlittableTypeAttribute&apos; must be blittable.. /// </summary> internal static string BlittableTypeMustBeBlittableDescription { get { return ResourceManager.GetString("BlittableTypeMustBeBlittableDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; is marked with &apos;BlittableTypeAttribute&apos; but is not blittable. /// </summary> internal static string BlittableTypeMustBeBlittableMessage { get { return ResourceManager.GetString("BlittableTypeMustBeBlittableMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to When a constructor taking a Span&lt;byte&gt; is specified on the native type, the type must also have a public integer constant named BufferSize to provide the size of the caller-allocated buffer.. /// </summary> internal static string CallerAllocConstructorMustHaveBufferSizeConstantDescription { get { return ResourceManager.GetString("CallerAllocConstructorMustHaveBufferSizeConstantDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must have a &apos;public const int BufferSize&apos; field that specifies the size of the stack buffer because it has a constructor that takes a caller-allocated Span&lt;byte&gt;. /// </summary> internal static string CallerAllocConstructorMustHaveBufferSizeConstantMessage { get { return ResourceManager.GetString("CallerAllocConstructorMustHaveBufferSizeConstantMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A type that supports marshalling from managed to native using a caller-allocated buffer should also support marshalling from managed to native where using a caller-allocated buffer is impossible.. /// </summary> internal static string CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackDescription { get { return ResourceManager.GetString("CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Native type &apos;{0}&apos; has a constructor taking a caller-allocated buffer, but does not support marshalling in scenarios where using a caller-allocated buffer is impossible. /// </summary> internal static string CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackMessage { get { return ResourceManager.GetString("CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The generated &apos;DllImportAttribute&apos; will not have a value corresponding to &apos;{0}&apos;.. /// </summary> internal static string CannotForwardToDllImportDescription { get { return ResourceManager.GetString("CannotForwardToDllImportDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;{0}&apos; has no equivalent in &apos;DllImportAtttribute&apos; and will not be forwarded. /// </summary> internal static string CannotForwardToDllImportMessage { get { return ResourceManager.GetString("CannotForwardToDllImportMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Specified &apos;GeneratedDllImportAttribute&apos; arguments cannot be forwarded to &apos;DllImportAttribute&apos;. /// </summary> internal static string CannotForwardToDllImportTitle { get { return ResourceManager.GetString("CannotForwardToDllImportTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;BlittableTypeAttribute&apos; and &apos;NativeMarshallingAttribute&apos; attributes are mutually exclusive.. /// </summary> internal static string CannotHaveMultipleMarshallingAttributesDescription { get { return ResourceManager.GetString("CannotHaveMultipleMarshallingAttributesDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; is marked with &apos;BlittableTypeAttribute&apos; and &apos;NativeMarshallingAttribute&apos;. A type can only have one of these two attributes.. /// </summary> internal static string CannotHaveMultipleMarshallingAttributesMessage { get { return ResourceManager.GetString("CannotHaveMultipleMarshallingAttributesMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A native type with the &apos;GenericContiguousCollectionMarshallerAttribute&apos; must have at least one of the two marshalling methods as well as a &apos;ManagedValues&apos; property of type &apos;Span&lt;T&gt;&apos; for some &apos;T&apos; and a &apos;NativeValueStorage&apos; property of type &apos;Span&lt;byte&gt;&apos; to enable marshalling the managed type.. /// </summary> internal static string CollectionNativeTypeMustHaveRequiredShapeDescription { get { return ResourceManager.GetString("CollectionNativeTypeMustHaveRequiredShapeDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a value type and have a constructor that takes two parameters, one of type &apos;{1}&apos; and an &apos;int&apos;, or have a parameterless instance method named &apos;ToManaged&apos; that returns &apos;{1}&apos; as well as a &apos;ManagedValues&apos; property of type &apos;Span&lt;T&gt;&apos; for some &apos;T&apos; and a &apos;NativeValueStorage&apos; property of type &apos;Span&lt;byte&gt;&apos;. /// </summary> internal static string CollectionNativeTypeMustHaveRequiredShapeMessage { get { return ResourceManager.GetString("CollectionNativeTypeMustHaveRequiredShapeMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Source-generated P/Invokes will ignore any configuration that is not supported.. /// </summary> internal static string ConfigurationNotSupportedDescription { get { return ResourceManager.GetString("ConfigurationNotSupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;{0}&apos; configuration is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessage { get { return ResourceManager.GetString("ConfigurationNotSupportedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified marshalling configuration is not supported by source-generated P/Invokes. {0}.. /// </summary> internal static string ConfigurationNotSupportedMessageMarshallingInfo { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageMarshallingInfo", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified &apos;{0}&apos; configuration for parameter &apos;{1}&apos; is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessageParameter { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageParameter", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified &apos;{0}&apos; configuration for the return value of method &apos;{1}&apos; is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessageReturn { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageReturn", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified value &apos;{0}&apos; for &apos;{1}&apos; is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessageValue { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageValue", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Specified configuration is not supported by source-generated P/Invokes.. /// </summary> internal static string ConfigurationNotSupportedTitle { get { return ResourceManager.GetString("ConfigurationNotSupportedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Only one of &apos;ConstantElementCount&apos; or &apos;ElementCountInfo&apos; may be used in a &apos;MarshalUsingAttribute&apos; for a given &apos;ElementIndirectionLevel&apos;. /// </summary> internal static string ConstantAndElementCountInfoDisallowed { get { return ResourceManager.GetString("ConstantAndElementCountInfoDisallowed", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Automatically converting a P/Invoke with &apos;PreserveSig&apos; set to &apos;false&apos; to a source-generated P/Invoke may produce invalid code. /// </summary> internal static string ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode { get { return ResourceManager.GetString("ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Convert to &apos;GeneratedDllImport&apos;. /// </summary> internal static string ConvertToGeneratedDllImport { get { return ResourceManager.GetString("ConvertToGeneratedDllImport", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Use &apos;GeneratedDllImportAttribute&apos; instead of &apos;DllImportAttribute&apos; to generate P/Invoke marshalling code at compile time. /// </summary> internal static string ConvertToGeneratedDllImportDescription { get { return ResourceManager.GetString("ConvertToGeneratedDllImportDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Mark the method &apos;{0}&apos; with &apos;GeneratedDllImportAttribute&apos; instead of &apos;DllImportAttribute&apos; to generate P/Invoke marshalling code at compile time. /// </summary> internal static string ConvertToGeneratedDllImportMessage { get { return ResourceManager.GetString("ConvertToGeneratedDllImportMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Use &apos;GeneratedDllImportAttribute&apos; instead of &apos;DllImportAttribute&apos; to generate P/Invoke marshalling code at compile time. /// </summary> internal static string ConvertToGeneratedDllImportTitle { get { return ResourceManager.GetString("ConvertToGeneratedDllImportTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Conversion to &apos;GeneratedDllImport&apos; may change behavior and compatibility. See {0} for more information.. /// </summary> internal static string ConvertToGeneratedDllImportWarning { get { return ResourceManager.GetString("ConvertToGeneratedDllImportWarning", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Convert to &apos;GeneratedDllImport&apos; with &apos;{0}&apos; suffix. /// </summary> internal static string ConvertToGeneratedDllImportWithSuffix { get { return ResourceManager.GetString("ConvertToGeneratedDllImportWithSuffix", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified parameter needs to be marshalled from managed to native, but the native type &apos;{0}&apos; does not support it.. /// </summary> internal static string CustomTypeMarshallingManagedToNativeUnsupported { get { return ResourceManager.GetString("CustomTypeMarshallingManagedToNativeUnsupported", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified parameter needs to be marshalled from native to managed, but the native type &apos;{0}&apos; does not support it.. /// </summary> internal static string CustomTypeMarshallingNativeToManagedUnsupported { get { return ResourceManager.GetString("CustomTypeMarshallingNativeToManagedUnsupported", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Types that contain methods marked with &apos;GeneratedDllImportAttribute&apos; must be &apos;partial&apos;. P/Invoke source generation will ignore methods contained within non-partial types.. /// </summary> internal static string GeneratedDllImportContainingTypeMissingModifiersDescription { get { return ResourceManager.GetString("GeneratedDllImportContainingTypeMissingModifiersDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; contains methods marked with &apos;GeneratedDllImportAttribute&apos; and should be &apos;partial&apos;. P/Invoke source generation will ignore methods contained within non-partial types.. /// </summary> internal static string GeneratedDllImportContainingTypeMissingModifiersMessage { get { return ResourceManager.GetString("GeneratedDllImportContainingTypeMissingModifiersMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Types that contain methods marked with &apos;GeneratedDllImportAttribute&apos; must be &apos;partial&apos;.. /// </summary> internal static string GeneratedDllImportContainingTypeMissingModifiersTitle { get { return ResourceManager.GetString("GeneratedDllImportContainingTypeMissingModifiersTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Methods marked with &apos;GeneratedDllImportAttribute&apos; should be &apos;static&apos; and &apos;partial&apos;. P/Invoke source generation will ignore methods that are not &apos;static&apos; and &apos;partial&apos;.. /// </summary> internal static string GeneratedDllImportMissingModifiersDescription { get { return ResourceManager.GetString("GeneratedDllImportMissingModifiersDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Method &apos;{0}&apos; should be &apos;static&apos; and &apos;partial&apos; when marked with &apos;GeneratedDllImportAttribute&apos;. P/Invoke source generation will ignore methods that are not &apos;static&apos; and &apos;partial&apos;.. /// </summary> internal static string GeneratedDllImportMissingModifiersMessage { get { return ResourceManager.GetString("GeneratedDllImportMissingModifiersMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Method marked with &apos;GeneratedDllImportAttribute&apos; should be &apos;static&apos; and &apos;partial&apos;. /// </summary> internal static string GeneratedDllImportMissingModifiersTitle { get { return ResourceManager.GetString("GeneratedDllImportMissingModifiersTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The return type of &apos;GetPinnableReference&apos; (after accounting for &apos;ref&apos;) must be blittable.. /// </summary> internal static string GetPinnableReferenceReturnTypeBlittableDescription { get { return ResourceManager.GetString("GetPinnableReferenceReturnTypeBlittableDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The dereferenced type of the return type of the &apos;GetPinnableReference&apos; method must be blittable. /// </summary> internal static string GetPinnableReferenceReturnTypeBlittableMessage { get { return ResourceManager.GetString("GetPinnableReferenceReturnTypeBlittableMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A type that supports marshalling from managed to native by pinning should also support marshalling from managed to native where pinning is impossible.. /// </summary> internal static string GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackDescription { get { return ResourceManager.GetString("GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; has a &apos;GetPinnableReference&apos; method but its native type does not support marshalling in scenarios where pinning is impossible. /// </summary> internal static string GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackMessage { get { return ResourceManager.GetString("GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Invalid &apos;LibraryImportAttribute&apos; usage. /// </summary> internal static string InvalidLibraryImportAttributeUsageTitle { get { return ResourceManager.GetString("InvalidLibraryImportAttributeUsageTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The configuration of &apos;StringMarshalling&apos; and &apos;StringMarshallingCustomType&apos; is invalid.. /// </summary> internal static string InvalidStringMarshallingConfigurationDescription { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The configuration of &apos;StringMarshalling&apos; and &apos;StringMarshallingCustomType&apos; on method &apos;{0}&apos; is invalid. {1}. /// </summary> internal static string InvalidStringMarshallingConfigurationMessage { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;StringMarshallingCustomType&apos; must be specified when &apos;StringMarshalling&apos; is set to &apos;StringMarshalling.Custom&apos;.. /// </summary> internal static string InvalidStringMarshallingConfigurationMissingCustomType { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationMissingCustomType", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;StringMarshalling&apos; should be set to &apos;StringMarshalling.Custom&apos; when &apos;StringMarshallingCustomType&apos; is specified.. /// </summary> internal static string InvalidStringMarshallingConfigurationNotCustom { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationNotCustom", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The use cases for &apos;GetPinnableReference&apos; are not applicable in any scenarios where a &apos;Value&apos; property is not also required.. /// </summary> internal static string MarshallerGetPinnableReferenceRequiresValuePropertyDescription { get { return ResourceManager.GetString("MarshallerGetPinnableReferenceRequiresValuePropertyDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;GetPinnableReference&apos; method cannot be provided on the native type &apos;{0}&apos; unless a &apos;Value&apos; property is also provided. /// </summary> internal static string MarshallerGetPinnableReferenceRequiresValuePropertyMessage { get { return ResourceManager.GetString("MarshallerGetPinnableReferenceRequiresValuePropertyMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a closed generic so the emitted code can use a specific instantiation.. /// </summary> internal static string NativeGenericTypeMustBeClosedDescription { get { return ResourceManager.GetString("NativeGenericTypeMustBeClosedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a closed generic or have the same number of generic parameters as the managed type so the emitted code can use a specific instantiation.. /// </summary> internal static string NativeGenericTypeMustBeClosedOrMatchArityDescription { get { return ResourceManager.GetString("NativeGenericTypeMustBeClosedOrMatchArityDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; for managed type &apos;{1}&apos; must be a closed generic type or have the same arity as the managed type.. /// </summary> internal static string NativeGenericTypeMustBeClosedOrMatchArityMessage { get { return ResourceManager.GetString("NativeGenericTypeMustBeClosedOrMatchArityMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A native type for a given type must be blittable.. /// </summary> internal static string NativeTypeMustBeBlittableDescription { get { return ResourceManager.GetString("NativeTypeMustBeBlittableDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; for the type &apos;{1}&apos; is not blittable. /// </summary> internal static string NativeTypeMustBeBlittableMessage { get { return ResourceManager.GetString("NativeTypeMustBeBlittableMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A native type for a given type must be non-null.. /// </summary> internal static string NativeTypeMustBeNonNullDescription { get { return ResourceManager.GetString("NativeTypeMustBeNonNullDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type for the type &apos;{0}&apos; is null. /// </summary> internal static string NativeTypeMustBeNonNullMessage { get { return ResourceManager.GetString("NativeTypeMustBeNonNullMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type must be pointer sized so the pinned result of &apos;GetPinnableReference&apos; can be cast to the native type.. /// </summary> internal static string NativeTypeMustBePointerSizedDescription { get { return ResourceManager.GetString("NativeTypeMustBePointerSizedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be pointer sized because the managed type &apos;{1}&apos; has a &apos;GetPinnableReference&apos; method. /// </summary> internal static string NativeTypeMustBePointerSizedMessage { get { return ResourceManager.GetString("NativeTypeMustBePointerSizedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type must have at least one of the two marshalling methods to enable marshalling the managed type.. /// </summary> internal static string NativeTypeMustHaveRequiredShapeDescription { get { return ResourceManager.GetString("NativeTypeMustHaveRequiredShapeDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a value type and have a constructor that takes one parameter of type &apos;{1}&apos; or a parameterless instance method named &apos;ToManaged&apos; that returns &apos;{1}&apos;. /// </summary> internal static string NativeTypeMustHaveRequiredShapeMessage { get { return ResourceManager.GetString("NativeTypeMustHaveRequiredShapeMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property must not be a &apos;ref&apos; or &apos;readonly ref&apos; property.. /// </summary> internal static string RefValuePropertyUnsupportedDescription { get { return ResourceManager.GetString("RefValuePropertyUnsupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property on the native type &apos;{0}&apos; must not be a &apos;ref&apos; or &apos;readonly ref&apos; property.. /// </summary> internal static string RefValuePropertyUnsupportedMessage { get { return ResourceManager.GetString("RefValuePropertyUnsupportedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to . /// </summary> internal static string RuntimeMarshallingMustBeDisabled { get { return ResourceManager.GetString("RuntimeMarshallingMustBeDisabled", resourceCulture); } } /// <summary> /// Looks up a localized string similar to An abstract type derived from &apos;SafeHandle&apos; cannot be marshalled by reference. The provided type must be concrete.. /// </summary> internal static string SafeHandleByRefMustBeConcrete { get { return ResourceManager.GetString("SafeHandleByRefMustBeConcrete", resourceCulture); } } /// <summary> /// Looks up a localized string similar to P/Invoke source generation is not supported on unknown target framework v{0}. The generated source will not be compatible with other frameworks.. /// </summary> internal static string TargetFrameworkNotSupportedDescription { get { return ResourceManager.GetString("TargetFrameworkNotSupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;GeneratedDllImportAttribute&apos; cannot be used for source-generated P/Invokes on an unknown target framework v{0}.. /// </summary> internal static string TargetFrameworkNotSupportedMessage { get { return ResourceManager.GetString("TargetFrameworkNotSupportedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Current target framework is not supported by source-generated P/Invokes. /// </summary> internal static string TargetFrameworkNotSupportedTitle { get { return ResourceManager.GetString("TargetFrameworkNotSupportedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to For types that are not supported by source-generated P/Invokes, the resulting P/Invoke will rely on the underlying runtime to marshal the specified type.. /// </summary> internal static string TypeNotSupportedDescription { get { return ResourceManager.GetString("TypeNotSupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The type &apos;{0}&apos; is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageParameter { get { return ResourceManager.GetString("TypeNotSupportedMessageParameter", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} The generated source will not handle marshalling of parameter &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageParameterWithDetails { get { return ResourceManager.GetString("TypeNotSupportedMessageParameterWithDetails", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The type &apos;{0}&apos; is not supported by source-generated P/Invokes. The generated source will not handle marshalling of the return value of method &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageReturn { get { return ResourceManager.GetString("TypeNotSupportedMessageReturn", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} The generated source will not handle marshalling of the return value of method &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageReturnWithDetails { get { return ResourceManager.GetString("TypeNotSupportedMessageReturnWithDetails", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Specified type is not supported by source-generated P/Invokes. /// </summary> internal static string TypeNotSupportedTitle { get { return ResourceManager.GetString("TypeNotSupportedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type&apos;s &apos;Value&apos; property must have a getter to support marshalling from managed to native.. /// </summary> internal static string ValuePropertyMustHaveGetterDescription { get { return ResourceManager.GetString("ValuePropertyMustHaveGetterDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property on the native type &apos;{0}&apos; must have a getter. /// </summary> internal static string ValuePropertyMustHaveGetterMessage { get { return ResourceManager.GetString("ValuePropertyMustHaveGetterMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type&apos;s &apos;Value&apos; property must have a setter to support marshalling from native to managed.. /// </summary> internal static string ValuePropertyMustHaveSetterDescription { get { return ResourceManager.GetString("ValuePropertyMustHaveSetterDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property on the native type &apos;{0}&apos; must have a setter. /// </summary> internal static string ValuePropertyMustHaveSetterMessage { get { return ResourceManager.GetString("ValuePropertyMustHaveSetterMessage", resourceCulture); } } } }
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Microsoft.Interop { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Interop.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized string similar to A type marked with &apos;BlittableTypeAttribute&apos; must be blittable.. /// </summary> internal static string BlittableTypeMustBeBlittableDescription { get { return ResourceManager.GetString("BlittableTypeMustBeBlittableDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; is marked with &apos;BlittableTypeAttribute&apos; but is not blittable. /// </summary> internal static string BlittableTypeMustBeBlittableMessage { get { return ResourceManager.GetString("BlittableTypeMustBeBlittableMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to When a constructor taking a Span&lt;byte&gt; is specified on the native type, the type must also have a public integer constant named BufferSize to provide the size of the caller-allocated buffer.. /// </summary> internal static string CallerAllocConstructorMustHaveBufferSizeConstantDescription { get { return ResourceManager.GetString("CallerAllocConstructorMustHaveBufferSizeConstantDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must have a &apos;public const int BufferSize&apos; field that specifies the size of the stack buffer because it has a constructor that takes a caller-allocated Span&lt;byte&gt;. /// </summary> internal static string CallerAllocConstructorMustHaveBufferSizeConstantMessage { get { return ResourceManager.GetString("CallerAllocConstructorMustHaveBufferSizeConstantMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A type that supports marshalling from managed to native using a caller-allocated buffer should also support marshalling from managed to native where using a caller-allocated buffer is impossible.. /// </summary> internal static string CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackDescription { get { return ResourceManager.GetString("CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Native type &apos;{0}&apos; has a constructor taking a caller-allocated buffer, but does not support marshalling in scenarios where using a caller-allocated buffer is impossible. /// </summary> internal static string CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackMessage { get { return ResourceManager.GetString("CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The generated &apos;DllImportAttribute&apos; will not have a value corresponding to &apos;{0}&apos;.. /// </summary> internal static string CannotForwardToDllImportDescription { get { return ResourceManager.GetString("CannotForwardToDllImportDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;{0}&apos; has no equivalent in &apos;DllImportAtttribute&apos; and will not be forwarded. /// </summary> internal static string CannotForwardToDllImportMessage { get { return ResourceManager.GetString("CannotForwardToDllImportMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Specified &apos;GeneratedDllImportAttribute&apos; arguments cannot be forwarded to &apos;DllImportAttribute&apos;. /// </summary> internal static string CannotForwardToDllImportTitle { get { return ResourceManager.GetString("CannotForwardToDllImportTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;BlittableTypeAttribute&apos; and &apos;NativeMarshallingAttribute&apos; attributes are mutually exclusive.. /// </summary> internal static string CannotHaveMultipleMarshallingAttributesDescription { get { return ResourceManager.GetString("CannotHaveMultipleMarshallingAttributesDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; is marked with &apos;BlittableTypeAttribute&apos; and &apos;NativeMarshallingAttribute&apos;. A type can only have one of these two attributes.. /// </summary> internal static string CannotHaveMultipleMarshallingAttributesMessage { get { return ResourceManager.GetString("CannotHaveMultipleMarshallingAttributesMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A native type with the &apos;GenericContiguousCollectionMarshallerAttribute&apos; must have at least one of the two marshalling methods as well as a &apos;ManagedValues&apos; property of type &apos;Span&lt;T&gt;&apos; for some &apos;T&apos; and a &apos;NativeValueStorage&apos; property of type &apos;Span&lt;byte&gt;&apos; to enable marshalling the managed type.. /// </summary> internal static string CollectionNativeTypeMustHaveRequiredShapeDescription { get { return ResourceManager.GetString("CollectionNativeTypeMustHaveRequiredShapeDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a value type and have a constructor that takes two parameters, one of type &apos;{1}&apos; and an &apos;int&apos;, or have a parameterless instance method named &apos;ToManaged&apos; that returns &apos;{1}&apos; as well as a &apos;ManagedValues&apos; property of type &apos;Span&lt;T&gt;&apos; for some &apos;T&apos; and a &apos;NativeValueStorage&apos; property of type &apos;Span&lt;byte&gt;&apos;. /// </summary> internal static string CollectionNativeTypeMustHaveRequiredShapeMessage { get { return ResourceManager.GetString("CollectionNativeTypeMustHaveRequiredShapeMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Source-generated P/Invokes will ignore any configuration that is not supported.. /// </summary> internal static string ConfigurationNotSupportedDescription { get { return ResourceManager.GetString("ConfigurationNotSupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;{0}&apos; configuration is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessage { get { return ResourceManager.GetString("ConfigurationNotSupportedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified marshalling configuration is not supported by source-generated P/Invokes. {0}.. /// </summary> internal static string ConfigurationNotSupportedMessageMarshallingInfo { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageMarshallingInfo", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified &apos;{0}&apos; configuration for parameter &apos;{1}&apos; is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessageParameter { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageParameter", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified &apos;{0}&apos; configuration for the return value of method &apos;{1}&apos; is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessageReturn { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageReturn", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified value &apos;{0}&apos; for &apos;{1}&apos; is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.. /// </summary> internal static string ConfigurationNotSupportedMessageValue { get { return ResourceManager.GetString("ConfigurationNotSupportedMessageValue", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Specified configuration is not supported by source-generated P/Invokes.. /// </summary> internal static string ConfigurationNotSupportedTitle { get { return ResourceManager.GetString("ConfigurationNotSupportedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Only one of &apos;ConstantElementCount&apos; or &apos;ElementCountInfo&apos; may be used in a &apos;MarshalUsingAttribute&apos; for a given &apos;ElementIndirectionLevel&apos;. /// </summary> internal static string ConstantAndElementCountInfoDisallowed { get { return ResourceManager.GetString("ConstantAndElementCountInfoDisallowed", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Automatically converting a P/Invoke with &apos;PreserveSig&apos; set to &apos;false&apos; to a source-generated P/Invoke may produce invalid code. /// </summary> internal static string ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode { get { return ResourceManager.GetString("ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Convert to &apos;GeneratedDllImport&apos;. /// </summary> internal static string ConvertToGeneratedDllImport { get { return ResourceManager.GetString("ConvertToGeneratedDllImport", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Use &apos;GeneratedDllImportAttribute&apos; instead of &apos;DllImportAttribute&apos; to generate P/Invoke marshalling code at compile time. /// </summary> internal static string ConvertToGeneratedDllImportDescription { get { return ResourceManager.GetString("ConvertToGeneratedDllImportDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Mark the method &apos;{0}&apos; with &apos;GeneratedDllImportAttribute&apos; instead of &apos;DllImportAttribute&apos; to generate P/Invoke marshalling code at compile time. /// </summary> internal static string ConvertToGeneratedDllImportMessage { get { return ResourceManager.GetString("ConvertToGeneratedDllImportMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Use &apos;GeneratedDllImportAttribute&apos; instead of &apos;DllImportAttribute&apos; to generate P/Invoke marshalling code at compile time. /// </summary> internal static string ConvertToGeneratedDllImportTitle { get { return ResourceManager.GetString("ConvertToGeneratedDllImportTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Conversion to &apos;GeneratedDllImport&apos; may change behavior and compatibility. See {0} for more information.. /// </summary> internal static string ConvertToGeneratedDllImportWarning { get { return ResourceManager.GetString("ConvertToGeneratedDllImportWarning", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Convert to &apos;GeneratedDllImport&apos; with &apos;{0}&apos; suffix. /// </summary> internal static string ConvertToGeneratedDllImportWithSuffix { get { return ResourceManager.GetString("ConvertToGeneratedDllImportWithSuffix", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified parameter needs to be marshalled from managed to native, but the native type &apos;{0}&apos; does not support it.. /// </summary> internal static string CustomTypeMarshallingManagedToNativeUnsupported { get { return ResourceManager.GetString("CustomTypeMarshallingManagedToNativeUnsupported", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The specified parameter needs to be marshalled from native to managed, but the native type &apos;{0}&apos; does not support it.. /// </summary> internal static string CustomTypeMarshallingNativeToManagedUnsupported { get { return ResourceManager.GetString("CustomTypeMarshallingNativeToManagedUnsupported", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The return type of &apos;GetPinnableReference&apos; (after accounting for &apos;ref&apos;) must be blittable.. /// </summary> internal static string GetPinnableReferenceReturnTypeBlittableDescription { get { return ResourceManager.GetString("GetPinnableReferenceReturnTypeBlittableDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The dereferenced type of the return type of the &apos;GetPinnableReference&apos; method must be blittable. /// </summary> internal static string GetPinnableReferenceReturnTypeBlittableMessage { get { return ResourceManager.GetString("GetPinnableReferenceReturnTypeBlittableMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A type that supports marshalling from managed to native by pinning should also support marshalling from managed to native where pinning is impossible.. /// </summary> internal static string GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackDescription { get { return ResourceManager.GetString("GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Type &apos;{0}&apos; has a &apos;GetPinnableReference&apos; method but its native type does not support marshalling in scenarios where pinning is impossible. /// </summary> internal static string GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackMessage { get { return ResourceManager.GetString("GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Method &apos;{0}&apos; is contained in a type &apos;{1}&apos; that is not marked &apos;partial&apos;. P/Invoke source generation will ignore method &apos;{0}&apos;.. /// </summary> internal static string InvalidAttributedMethodContainingTypeMissingModifiersMessage { get { return ResourceManager.GetString("InvalidAttributedMethodContainingTypeMissingModifiersMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Methods marked with &apos;GeneratedDllImportAttribute&apos; should be &apos;static&apos;, &apos;partial&apos;, and non-generic. P/Invoke source generation will ignore methods that are non-&apos;static&apos;, non-&apos;partial&apos;, or generic.. /// </summary> internal static string InvalidAttributedMethodDescription { get { return ResourceManager.GetString("InvalidAttributedMethodDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Method &apos;{0}&apos; should be &apos;static&apos;, &apos;partial&apos;, and non-generic when marked with &apos;GeneratedDllImportAttribute&apos;. P/Invoke source generation will ignore method &apos;{0}&apos;.. /// </summary> internal static string InvalidAttributedMethodSignatureMessage { get { return ResourceManager.GetString("InvalidAttributedMethodSignatureMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Invalid &apos;LibraryImportAttribute&apos; usage. /// </summary> internal static string InvalidLibraryImportAttributeUsageTitle { get { return ResourceManager.GetString("InvalidLibraryImportAttributeUsageTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The configuration of &apos;StringMarshalling&apos; and &apos;StringMarshallingCustomType&apos; is invalid.. /// </summary> internal static string InvalidStringMarshallingConfigurationDescription { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The configuration of &apos;StringMarshalling&apos; and &apos;StringMarshallingCustomType&apos; on method &apos;{0}&apos; is invalid. {1}. /// </summary> internal static string InvalidStringMarshallingConfigurationMessage { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;StringMarshallingCustomType&apos; must be specified when &apos;StringMarshalling&apos; is set to &apos;StringMarshalling.Custom&apos;.. /// </summary> internal static string InvalidStringMarshallingConfigurationMissingCustomType { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationMissingCustomType", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;StringMarshalling&apos; should be set to &apos;StringMarshalling.Custom&apos; when &apos;StringMarshallingCustomType&apos; is specified.. /// </summary> internal static string InvalidStringMarshallingConfigurationNotCustom { get { return ResourceManager.GetString("InvalidStringMarshallingConfigurationNotCustom", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The use cases for &apos;GetPinnableReference&apos; are not applicable in any scenarios where a &apos;Value&apos; property is not also required.. /// </summary> internal static string MarshallerGetPinnableReferenceRequiresValuePropertyDescription { get { return ResourceManager.GetString("MarshallerGetPinnableReferenceRequiresValuePropertyDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;GetPinnableReference&apos; method cannot be provided on the native type &apos;{0}&apos; unless a &apos;Value&apos; property is also provided. /// </summary> internal static string MarshallerGetPinnableReferenceRequiresValuePropertyMessage { get { return ResourceManager.GetString("MarshallerGetPinnableReferenceRequiresValuePropertyMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a closed generic so the emitted code can use a specific instantiation.. /// </summary> internal static string NativeGenericTypeMustBeClosedDescription { get { return ResourceManager.GetString("NativeGenericTypeMustBeClosedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a closed generic or have the same number of generic parameters as the managed type so the emitted code can use a specific instantiation.. /// </summary> internal static string NativeGenericTypeMustBeClosedOrMatchArityDescription { get { return ResourceManager.GetString("NativeGenericTypeMustBeClosedOrMatchArityDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; for managed type &apos;{1}&apos; must be a closed generic type or have the same arity as the managed type.. /// </summary> internal static string NativeGenericTypeMustBeClosedOrMatchArityMessage { get { return ResourceManager.GetString("NativeGenericTypeMustBeClosedOrMatchArityMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A native type for a given type must be blittable.. /// </summary> internal static string NativeTypeMustBeBlittableDescription { get { return ResourceManager.GetString("NativeTypeMustBeBlittableDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; for the type &apos;{1}&apos; is not blittable. /// </summary> internal static string NativeTypeMustBeBlittableMessage { get { return ResourceManager.GetString("NativeTypeMustBeBlittableMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to A native type for a given type must be non-null.. /// </summary> internal static string NativeTypeMustBeNonNullDescription { get { return ResourceManager.GetString("NativeTypeMustBeNonNullDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type for the type &apos;{0}&apos; is null. /// </summary> internal static string NativeTypeMustBeNonNullMessage { get { return ResourceManager.GetString("NativeTypeMustBeNonNullMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type must be pointer sized so the pinned result of &apos;GetPinnableReference&apos; can be cast to the native type.. /// </summary> internal static string NativeTypeMustBePointerSizedDescription { get { return ResourceManager.GetString("NativeTypeMustBePointerSizedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be pointer sized because the managed type &apos;{1}&apos; has a &apos;GetPinnableReference&apos; method. /// </summary> internal static string NativeTypeMustBePointerSizedMessage { get { return ResourceManager.GetString("NativeTypeMustBePointerSizedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type must have at least one of the two marshalling methods to enable marshalling the managed type.. /// </summary> internal static string NativeTypeMustHaveRequiredShapeDescription { get { return ResourceManager.GetString("NativeTypeMustHaveRequiredShapeDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type &apos;{0}&apos; must be a value type and have a constructor that takes one parameter of type &apos;{1}&apos; or a parameterless instance method named &apos;ToManaged&apos; that returns &apos;{1}&apos;. /// </summary> internal static string NativeTypeMustHaveRequiredShapeMessage { get { return ResourceManager.GetString("NativeTypeMustHaveRequiredShapeMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property must not be a &apos;ref&apos; or &apos;readonly ref&apos; property.. /// </summary> internal static string RefValuePropertyUnsupportedDescription { get { return ResourceManager.GetString("RefValuePropertyUnsupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property on the native type &apos;{0}&apos; must not be a &apos;ref&apos; or &apos;readonly ref&apos; property.. /// </summary> internal static string RefValuePropertyUnsupportedMessage { get { return ResourceManager.GetString("RefValuePropertyUnsupportedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to . /// </summary> internal static string RuntimeMarshallingMustBeDisabled { get { return ResourceManager.GetString("RuntimeMarshallingMustBeDisabled", resourceCulture); } } /// <summary> /// Looks up a localized string similar to An abstract type derived from &apos;SafeHandle&apos; cannot be marshalled by reference. The provided type must be concrete.. /// </summary> internal static string SafeHandleByRefMustBeConcrete { get { return ResourceManager.GetString("SafeHandleByRefMustBeConcrete", resourceCulture); } } /// <summary> /// Looks up a localized string similar to P/Invoke source generation is not supported on unknown target framework v{0}. The generated source will not be compatible with other frameworks.. /// </summary> internal static string TargetFrameworkNotSupportedDescription { get { return ResourceManager.GetString("TargetFrameworkNotSupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to &apos;GeneratedDllImportAttribute&apos; cannot be used for source-generated P/Invokes on an unknown target framework v{0}.. /// </summary> internal static string TargetFrameworkNotSupportedMessage { get { return ResourceManager.GetString("TargetFrameworkNotSupportedMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Current target framework is not supported by source-generated P/Invokes. /// </summary> internal static string TargetFrameworkNotSupportedTitle { get { return ResourceManager.GetString("TargetFrameworkNotSupportedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to For types that are not supported by source-generated P/Invokes, the resulting P/Invoke will rely on the underlying runtime to marshal the specified type.. /// </summary> internal static string TypeNotSupportedDescription { get { return ResourceManager.GetString("TypeNotSupportedDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The type &apos;{0}&apos; is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageParameter { get { return ResourceManager.GetString("TypeNotSupportedMessageParameter", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} The generated source will not handle marshalling of parameter &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageParameterWithDetails { get { return ResourceManager.GetString("TypeNotSupportedMessageParameterWithDetails", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The type &apos;{0}&apos; is not supported by source-generated P/Invokes. The generated source will not handle marshalling of the return value of method &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageReturn { get { return ResourceManager.GetString("TypeNotSupportedMessageReturn", resourceCulture); } } /// <summary> /// Looks up a localized string similar to {0} The generated source will not handle marshalling of the return value of method &apos;{1}&apos;.. /// </summary> internal static string TypeNotSupportedMessageReturnWithDetails { get { return ResourceManager.GetString("TypeNotSupportedMessageReturnWithDetails", resourceCulture); } } /// <summary> /// Looks up a localized string similar to Specified type is not supported by source-generated P/Invokes. /// </summary> internal static string TypeNotSupportedTitle { get { return ResourceManager.GetString("TypeNotSupportedTitle", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type&apos;s &apos;Value&apos; property must have a getter to support marshalling from managed to native.. /// </summary> internal static string ValuePropertyMustHaveGetterDescription { get { return ResourceManager.GetString("ValuePropertyMustHaveGetterDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property on the native type &apos;{0}&apos; must have a getter. /// </summary> internal static string ValuePropertyMustHaveGetterMessage { get { return ResourceManager.GetString("ValuePropertyMustHaveGetterMessage", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The native type&apos;s &apos;Value&apos; property must have a setter to support marshalling from native to managed.. /// </summary> internal static string ValuePropertyMustHaveSetterDescription { get { return ResourceManager.GetString("ValuePropertyMustHaveSetterDescription", resourceCulture); } } /// <summary> /// Looks up a localized string similar to The &apos;Value&apos; property on the native type &apos;{0}&apos; must have a setter. /// </summary> internal static string ValuePropertyMustHaveSetterMessage { get { return ResourceManager.GetString("ValuePropertyMustHaveSetterMessage", resourceCulture); } } } }
1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/gen/DllImportGenerator/Resources.resx
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="BlittableTypeMustBeBlittableDescription" xml:space="preserve"> <value>A type marked with 'BlittableTypeAttribute' must be blittable.</value> </data> <data name="BlittableTypeMustBeBlittableMessage" xml:space="preserve"> <value>Type '{0}' is marked with 'BlittableTypeAttribute' but is not blittable</value> </data> <data name="CallerAllocConstructorMustHaveBufferSizeConstantDescription" xml:space="preserve"> <value>When a constructor taking a Span&lt;byte&gt; is specified on the native type, the type must also have a public integer constant named BufferSize to provide the size of the caller-allocated buffer.</value> </data> <data name="CallerAllocConstructorMustHaveBufferSizeConstantMessage" xml:space="preserve"> <value>The native type '{0}' must have a 'public const int BufferSize' field that specifies the size of the stack buffer because it has a constructor that takes a caller-allocated Span&lt;byte&gt;</value> </data> <data name="CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackDescription" xml:space="preserve"> <value>A type that supports marshalling from managed to native using a caller-allocated buffer should also support marshalling from managed to native where using a caller-allocated buffer is impossible.</value> </data> <data name="CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackMessage" xml:space="preserve"> <value>Native type '{0}' has a constructor taking a caller-allocated buffer, but does not support marshalling in scenarios where using a caller-allocated buffer is impossible</value> </data> <data name="CannotForwardToDllImportDescription" xml:space="preserve"> <value>The generated 'DllImportAttribute' will not have a value corresponding to '{0}'.</value> </data> <data name="CannotForwardToDllImportMessage" xml:space="preserve"> <value>'{0}' has no equivalent in 'DllImportAtttribute' and will not be forwarded</value> </data> <data name="CannotForwardToDllImportTitle" xml:space="preserve"> <value>Specified 'GeneratedDllImportAttribute' arguments cannot be forwarded to 'DllImportAttribute'</value> </data> <data name="CannotHaveMultipleMarshallingAttributesDescription" xml:space="preserve"> <value>The 'BlittableTypeAttribute' and 'NativeMarshallingAttribute' attributes are mutually exclusive.</value> </data> <data name="CannotHaveMultipleMarshallingAttributesMessage" xml:space="preserve"> <value>Type '{0}' is marked with 'BlittableTypeAttribute' and 'NativeMarshallingAttribute'. A type can only have one of these two attributes.</value> </data> <data name="CollectionNativeTypeMustHaveRequiredShapeDescription" xml:space="preserve"> <value>A native type with the 'GenericContiguousCollectionMarshallerAttribute' must have at least one of the two marshalling methods as well as a 'ManagedValues' property of type 'Span&lt;T&gt;' for some 'T' and a 'NativeValueStorage' property of type 'Span&lt;byte&gt;' to enable marshalling the managed type.</value> </data> <data name="CollectionNativeTypeMustHaveRequiredShapeMessage" xml:space="preserve"> <value>The native type '{0}' must be a value type and have a constructor that takes two parameters, one of type '{1}' and an 'int', or have a parameterless instance method named 'ToManaged' that returns '{1}' as well as a 'ManagedValues' property of type 'Span&lt;T&gt;' for some 'T' and a 'NativeValueStorage' property of type 'Span&lt;byte&gt;'</value> </data> <data name="ConfigurationNotSupportedDescription" xml:space="preserve"> <value>Source-generated P/Invokes will ignore any configuration that is not supported.</value> </data> <data name="ConfigurationNotSupportedMessage" xml:space="preserve"> <value>The '{0}' configuration is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedMessageMarshallingInfo" xml:space="preserve"> <value>The specified marshalling configuration is not supported by source-generated P/Invokes. {0}.</value> </data> <data name="ConfigurationNotSupportedMessageParameter" xml:space="preserve"> <value>The specified '{0}' configuration for parameter '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedMessageReturn" xml:space="preserve"> <value>The specified '{0}' configuration for the return value of method '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedMessageValue" xml:space="preserve"> <value>The specified value '{0}' for '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedTitle" xml:space="preserve"> <value>Specified configuration is not supported by source-generated P/Invokes.</value> </data> <data name="ConstantAndElementCountInfoDisallowed" xml:space="preserve"> <value>Only one of 'ConstantElementCount' or 'ElementCountInfo' may be used in a 'MarshalUsingAttribute' for a given 'ElementIndirectionLevel'</value> </data> <data name="ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode" xml:space="preserve"> <value>Automatically converting a P/Invoke with 'PreserveSig' set to 'false' to a source-generated P/Invoke may produce invalid code</value> </data> <data name="ConvertToGeneratedDllImport" xml:space="preserve"> <value>Convert to 'GeneratedDllImport'</value> </data> <data name="ConvertToGeneratedDllImportDescription" xml:space="preserve"> <value>Use 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</value> </data> <data name="ConvertToGeneratedDllImportMessage" xml:space="preserve"> <value>Mark the method '{0}' with 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</value> </data> <data name="ConvertToGeneratedDllImportTitle" xml:space="preserve"> <value>Use 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</value> </data> <data name="ConvertToGeneratedDllImportWarning" xml:space="preserve"> <value>Conversion to 'GeneratedDllImport' may change behavior and compatibility. See {0} for more information.</value> <comment>{0} is a documentation link</comment> </data> <data name="ConvertToGeneratedDllImportWithSuffix" xml:space="preserve"> <value>Convert to 'GeneratedDllImport' with '{0}' suffix</value> </data> <data name="CustomTypeMarshallingManagedToNativeUnsupported" xml:space="preserve"> <value>The specified parameter needs to be marshalled from managed to native, but the native type '{0}' does not support it.</value> </data> <data name="CustomTypeMarshallingNativeToManagedUnsupported" xml:space="preserve"> <value>The specified parameter needs to be marshalled from native to managed, but the native type '{0}' does not support it.</value> </data> <data name="GeneratedDllImportContainingTypeMissingModifiersDescription" xml:space="preserve"> <value>Types that contain methods marked with 'GeneratedDllImportAttribute' must be 'partial'. P/Invoke source generation will ignore methods contained within non-partial types.</value> </data> <data name="GeneratedDllImportContainingTypeMissingModifiersMessage" xml:space="preserve"> <value>Type '{0}' contains methods marked with 'GeneratedDllImportAttribute' and should be 'partial'. P/Invoke source generation will ignore methods contained within non-partial types.</value> </data> <data name="GeneratedDllImportContainingTypeMissingModifiersTitle" xml:space="preserve"> <value>Types that contain methods marked with 'GeneratedDllImportAttribute' must be 'partial'.</value> </data> <data name="GeneratedDllImportMissingModifiersDescription" xml:space="preserve"> <value>Methods marked with 'GeneratedDllImportAttribute' should be 'static' and 'partial'. P/Invoke source generation will ignore methods that are not 'static' and 'partial'.</value> </data> <data name="GeneratedDllImportMissingModifiersMessage" xml:space="preserve"> <value>Method '{0}' should be 'static' and 'partial' when marked with 'GeneratedDllImportAttribute'. P/Invoke source generation will ignore methods that are not 'static' and 'partial'.</value> </data> <data name="GeneratedDllImportMissingModifiersTitle" xml:space="preserve"> <value>Method marked with 'GeneratedDllImportAttribute' should be 'static' and 'partial'</value> </data> <data name="GetPinnableReferenceReturnTypeBlittableDescription" xml:space="preserve"> <value>The return type of 'GetPinnableReference' (after accounting for 'ref') must be blittable.</value> </data> <data name="GetPinnableReferenceReturnTypeBlittableMessage" xml:space="preserve"> <value>The dereferenced type of the return type of the 'GetPinnableReference' method must be blittable</value> </data> <data name="GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackDescription" xml:space="preserve"> <value>A type that supports marshalling from managed to native by pinning should also support marshalling from managed to native where pinning is impossible.</value> </data> <data name="GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackMessage" xml:space="preserve"> <value>Type '{0}' has a 'GetPinnableReference' method but its native type does not support marshalling in scenarios where pinning is impossible</value> </data> <data name="InvalidLibraryImportAttributeUsageTitle" xml:space="preserve"> <value>Invalid 'LibraryImportAttribute' usage</value> </data> <data name="InvalidStringMarshallingConfigurationDescription" xml:space="preserve"> <value>The configuration of 'StringMarshalling' and 'StringMarshallingCustomType' is invalid.</value> </data> <data name="InvalidStringMarshallingConfigurationMessage" xml:space="preserve"> <value>The configuration of 'StringMarshalling' and 'StringMarshallingCustomType' on method '{0}' is invalid. {1}</value> <comment>{1} is a message containing additional details about what is not valid</comment> </data> <data name="InvalidStringMarshallingConfigurationMissingCustomType" xml:space="preserve"> <value>'StringMarshallingCustomType' must be specified when 'StringMarshalling' is set to 'StringMarshalling.Custom'.</value> </data> <data name="InvalidStringMarshallingConfigurationNotCustom" xml:space="preserve"> <value>'StringMarshalling' should be set to 'StringMarshalling.Custom' when 'StringMarshallingCustomType' is specified.</value> </data> <data name="MarshallerGetPinnableReferenceRequiresValuePropertyDescription" xml:space="preserve"> <value>The use cases for 'GetPinnableReference' are not applicable in any scenarios where a 'Value' property is not also required.</value> </data> <data name="MarshallerGetPinnableReferenceRequiresValuePropertyMessage" xml:space="preserve"> <value>The 'GetPinnableReference' method cannot be provided on the native type '{0}' unless a 'Value' property is also provided</value> </data> <data name="NativeGenericTypeMustBeClosedDescription" xml:space="preserve"> <value>The native type '{0}' must be a closed generic so the emitted code can use a specific instantiation.</value> </data> <data name="NativeGenericTypeMustBeClosedOrMatchArityDescription" xml:space="preserve"> <value>The native type '{0}' must be a closed generic or have the same number of generic parameters as the managed type so the emitted code can use a specific instantiation.</value> </data> <data name="NativeGenericTypeMustBeClosedOrMatchArityMessage" xml:space="preserve"> <value>The native type '{0}' for managed type '{1}' must be a closed generic type or have the same arity as the managed type.</value> </data> <data name="NativeTypeMustBeBlittableDescription" xml:space="preserve"> <value>A native type for a given type must be blittable.</value> </data> <data name="NativeTypeMustBeBlittableMessage" xml:space="preserve"> <value>The native type '{0}' for the type '{1}' is not blittable</value> </data> <data name="NativeTypeMustBeNonNullDescription" xml:space="preserve"> <value>A native type for a given type must be non-null.</value> </data> <data name="NativeTypeMustBeNonNullMessage" xml:space="preserve"> <value>The native type for the type '{0}' is null</value> </data> <data name="NativeTypeMustBePointerSizedDescription" xml:space="preserve"> <value>The native type must be pointer sized so the pinned result of 'GetPinnableReference' can be cast to the native type.</value> </data> <data name="NativeTypeMustBePointerSizedMessage" xml:space="preserve"> <value>The native type '{0}' must be pointer sized because the managed type '{1}' has a 'GetPinnableReference' method</value> </data> <data name="NativeTypeMustHaveRequiredShapeDescription" xml:space="preserve"> <value>The native type must have at least one of the two marshalling methods to enable marshalling the managed type.</value> </data> <data name="NativeTypeMustHaveRequiredShapeMessage" xml:space="preserve"> <value>The native type '{0}' must be a value type and have a constructor that takes one parameter of type '{1}' or a parameterless instance method named 'ToManaged' that returns '{1}'</value> </data> <data name="RefValuePropertyUnsupportedDescription" xml:space="preserve"> <value>The 'Value' property must not be a 'ref' or 'readonly ref' property.</value> </data> <data name="RefValuePropertyUnsupportedMessage" xml:space="preserve"> <value>The 'Value' property on the native type '{0}' must not be a 'ref' or 'readonly ref' property.</value> </data> <data name="RuntimeMarshallingMustBeDisabled" xml:space="preserve"> <value /> </data> <data name="SafeHandleByRefMustBeConcrete" xml:space="preserve"> <value>An abstract type derived from 'SafeHandle' cannot be marshalled by reference. The provided type must be concrete.</value> </data> <data name="TargetFrameworkNotSupportedDescription" xml:space="preserve"> <value>P/Invoke source generation is not supported on unknown target framework v{0}. The generated source will not be compatible with other frameworks.</value> <comment>{0} is a version number</comment> </data> <data name="TargetFrameworkNotSupportedMessage" xml:space="preserve"> <value>'GeneratedDllImportAttribute' cannot be used for source-generated P/Invokes on an unknown target framework v{0}.</value> <comment>{0} is a version number</comment> </data> <data name="TargetFrameworkNotSupportedTitle" xml:space="preserve"> <value>Current target framework is not supported by source-generated P/Invokes</value> </data> <data name="TypeNotSupportedDescription" xml:space="preserve"> <value>For types that are not supported by source-generated P/Invokes, the resulting P/Invoke will rely on the underlying runtime to marshal the specified type.</value> </data> <data name="TypeNotSupportedMessageParameter" xml:space="preserve"> <value>The type '{0}' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter '{1}'.</value> </data> <data name="TypeNotSupportedMessageParameterWithDetails" xml:space="preserve"> <value>{0} The generated source will not handle marshalling of parameter '{1}'.</value> <comment>{0} is a message containing additional details about what is not supported {1} is the name of the parameter</comment> </data> <data name="TypeNotSupportedMessageReturn" xml:space="preserve"> <value>The type '{0}' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of the return value of method '{1}'.</value> </data> <data name="TypeNotSupportedMessageReturnWithDetails" xml:space="preserve"> <value>{0} The generated source will not handle marshalling of the return value of method '{1}'.</value> <comment>{0} is a message containing additional details about what is not supported {1} is the name of the method</comment> </data> <data name="TypeNotSupportedTitle" xml:space="preserve"> <value>Specified type is not supported by source-generated P/Invokes</value> </data> <data name="ValuePropertyMustHaveGetterDescription" xml:space="preserve"> <value>The native type's 'Value' property must have a getter to support marshalling from managed to native.</value> </data> <data name="ValuePropertyMustHaveGetterMessage" xml:space="preserve"> <value>The 'Value' property on the native type '{0}' must have a getter</value> </data> <data name="ValuePropertyMustHaveSetterDescription" xml:space="preserve"> <value>The native type's 'Value' property must have a setter to support marshalling from native to managed.</value> </data> <data name="ValuePropertyMustHaveSetterMessage" xml:space="preserve"> <value>The 'Value' property on the native type '{0}' must have a setter</value> </data> </root>
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="BlittableTypeMustBeBlittableDescription" xml:space="preserve"> <value>A type marked with 'BlittableTypeAttribute' must be blittable.</value> </data> <data name="BlittableTypeMustBeBlittableMessage" xml:space="preserve"> <value>Type '{0}' is marked with 'BlittableTypeAttribute' but is not blittable</value> </data> <data name="CallerAllocConstructorMustHaveBufferSizeConstantDescription" xml:space="preserve"> <value>When a constructor taking a Span&lt;byte&gt; is specified on the native type, the type must also have a public integer constant named BufferSize to provide the size of the caller-allocated buffer.</value> </data> <data name="CallerAllocConstructorMustHaveBufferSizeConstantMessage" xml:space="preserve"> <value>The native type '{0}' must have a 'public const int BufferSize' field that specifies the size of the stack buffer because it has a constructor that takes a caller-allocated Span&lt;byte&gt;</value> </data> <data name="CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackDescription" xml:space="preserve"> <value>A type that supports marshalling from managed to native using a caller-allocated buffer should also support marshalling from managed to native where using a caller-allocated buffer is impossible.</value> </data> <data name="CallerAllocMarshallingShouldSupportAllocatingMarshallingFallbackMessage" xml:space="preserve"> <value>Native type '{0}' has a constructor taking a caller-allocated buffer, but does not support marshalling in scenarios where using a caller-allocated buffer is impossible</value> </data> <data name="CannotForwardToDllImportDescription" xml:space="preserve"> <value>The generated 'DllImportAttribute' will not have a value corresponding to '{0}'.</value> </data> <data name="CannotForwardToDllImportMessage" xml:space="preserve"> <value>'{0}' has no equivalent in 'DllImportAtttribute' and will not be forwarded</value> </data> <data name="CannotForwardToDllImportTitle" xml:space="preserve"> <value>Specified 'GeneratedDllImportAttribute' arguments cannot be forwarded to 'DllImportAttribute'</value> </data> <data name="CannotHaveMultipleMarshallingAttributesDescription" xml:space="preserve"> <value>The 'BlittableTypeAttribute' and 'NativeMarshallingAttribute' attributes are mutually exclusive.</value> </data> <data name="CannotHaveMultipleMarshallingAttributesMessage" xml:space="preserve"> <value>Type '{0}' is marked with 'BlittableTypeAttribute' and 'NativeMarshallingAttribute'. A type can only have one of these two attributes.</value> </data> <data name="CollectionNativeTypeMustHaveRequiredShapeDescription" xml:space="preserve"> <value>A native type with the 'GenericContiguousCollectionMarshallerAttribute' must have at least one of the two marshalling methods as well as a 'ManagedValues' property of type 'Span&lt;T&gt;' for some 'T' and a 'NativeValueStorage' property of type 'Span&lt;byte&gt;' to enable marshalling the managed type.</value> </data> <data name="CollectionNativeTypeMustHaveRequiredShapeMessage" xml:space="preserve"> <value>The native type '{0}' must be a value type and have a constructor that takes two parameters, one of type '{1}' and an 'int', or have a parameterless instance method named 'ToManaged' that returns '{1}' as well as a 'ManagedValues' property of type 'Span&lt;T&gt;' for some 'T' and a 'NativeValueStorage' property of type 'Span&lt;byte&gt;'</value> </data> <data name="ConfigurationNotSupportedDescription" xml:space="preserve"> <value>Source-generated P/Invokes will ignore any configuration that is not supported.</value> </data> <data name="ConfigurationNotSupportedMessage" xml:space="preserve"> <value>The '{0}' configuration is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedMessageMarshallingInfo" xml:space="preserve"> <value>The specified marshalling configuration is not supported by source-generated P/Invokes. {0}.</value> </data> <data name="ConfigurationNotSupportedMessageParameter" xml:space="preserve"> <value>The specified '{0}' configuration for parameter '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedMessageReturn" xml:space="preserve"> <value>The specified '{0}' configuration for the return value of method '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedMessageValue" xml:space="preserve"> <value>The specified value '{0}' for '{1}' is not supported by source-generated P/Invokes. If the specified configuration is required, use a regular `DllImport` instead.</value> </data> <data name="ConfigurationNotSupportedTitle" xml:space="preserve"> <value>Specified configuration is not supported by source-generated P/Invokes.</value> </data> <data name="ConstantAndElementCountInfoDisallowed" xml:space="preserve"> <value>Only one of 'ConstantElementCount' or 'ElementCountInfo' may be used in a 'MarshalUsingAttribute' for a given 'ElementIndirectionLevel'</value> </data> <data name="ConvertNoPreserveSigDllImportToGeneratedMayProduceInvalidCode" xml:space="preserve"> <value>Automatically converting a P/Invoke with 'PreserveSig' set to 'false' to a source-generated P/Invoke may produce invalid code</value> </data> <data name="ConvertToGeneratedDllImport" xml:space="preserve"> <value>Convert to 'GeneratedDllImport'</value> </data> <data name="ConvertToGeneratedDllImportDescription" xml:space="preserve"> <value>Use 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</value> </data> <data name="ConvertToGeneratedDllImportMessage" xml:space="preserve"> <value>Mark the method '{0}' with 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</value> </data> <data name="ConvertToGeneratedDllImportTitle" xml:space="preserve"> <value>Use 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time</value> </data> <data name="ConvertToGeneratedDllImportWarning" xml:space="preserve"> <value>Conversion to 'GeneratedDllImport' may change behavior and compatibility. See {0} for more information.</value> <comment>{0} is a documentation link</comment> </data> <data name="ConvertToGeneratedDllImportWithSuffix" xml:space="preserve"> <value>Convert to 'GeneratedDllImport' with '{0}' suffix</value> </data> <data name="CustomTypeMarshallingManagedToNativeUnsupported" xml:space="preserve"> <value>The specified parameter needs to be marshalled from managed to native, but the native type '{0}' does not support it.</value> </data> <data name="CustomTypeMarshallingNativeToManagedUnsupported" xml:space="preserve"> <value>The specified parameter needs to be marshalled from native to managed, but the native type '{0}' does not support it.</value> </data> <data name="GetPinnableReferenceReturnTypeBlittableDescription" xml:space="preserve"> <value>The return type of 'GetPinnableReference' (after accounting for 'ref') must be blittable.</value> </data> <data name="GetPinnableReferenceReturnTypeBlittableMessage" xml:space="preserve"> <value>The dereferenced type of the return type of the 'GetPinnableReference' method must be blittable</value> </data> <data name="GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackDescription" xml:space="preserve"> <value>A type that supports marshalling from managed to native by pinning should also support marshalling from managed to native where pinning is impossible.</value> </data> <data name="GetPinnableReferenceShouldSupportAllocatingMarshallingFallbackMessage" xml:space="preserve"> <value>Type '{0}' has a 'GetPinnableReference' method but its native type does not support marshalling in scenarios where pinning is impossible</value> </data> <data name="InvalidAttributedMethodContainingTypeMissingModifiersMessage" xml:space="preserve"> <value>Method '{0}' is contained in a type '{1}' that is not marked 'partial'. P/Invoke source generation will ignore method '{0}'.</value> </data> <data name="InvalidAttributedMethodDescription" xml:space="preserve"> <value>Methods marked with 'GeneratedDllImportAttribute' should be 'static', 'partial', and non-generic. P/Invoke source generation will ignore methods that are non-'static', non-'partial', or generic.</value> </data> <data name="InvalidAttributedMethodSignatureMessage" xml:space="preserve"> <value>Method '{0}' should be 'static', 'partial', and non-generic when marked with 'GeneratedDllImportAttribute'. P/Invoke source generation will ignore method '{0}'.</value> </data> <data name="InvalidLibraryImportAttributeUsageTitle" xml:space="preserve"> <value>Invalid 'LibraryImportAttribute' usage</value> </data> <data name="InvalidStringMarshallingConfigurationDescription" xml:space="preserve"> <value>The configuration of 'StringMarshalling' and 'StringMarshallingCustomType' is invalid.</value> </data> <data name="InvalidStringMarshallingConfigurationMessage" xml:space="preserve"> <value>The configuration of 'StringMarshalling' and 'StringMarshallingCustomType' on method '{0}' is invalid. {1}</value> <comment>{1} is a message containing additional details about what is not valid</comment> </data> <data name="InvalidStringMarshallingConfigurationMissingCustomType" xml:space="preserve"> <value>'StringMarshallingCustomType' must be specified when 'StringMarshalling' is set to 'StringMarshalling.Custom'.</value> </data> <data name="InvalidStringMarshallingConfigurationNotCustom" xml:space="preserve"> <value>'StringMarshalling' should be set to 'StringMarshalling.Custom' when 'StringMarshallingCustomType' is specified.</value> </data> <data name="MarshallerGetPinnableReferenceRequiresValuePropertyDescription" xml:space="preserve"> <value>The use cases for 'GetPinnableReference' are not applicable in any scenarios where a 'Value' property is not also required.</value> </data> <data name="MarshallerGetPinnableReferenceRequiresValuePropertyMessage" xml:space="preserve"> <value>The 'GetPinnableReference' method cannot be provided on the native type '{0}' unless a 'Value' property is also provided</value> </data> <data name="NativeGenericTypeMustBeClosedDescription" xml:space="preserve"> <value>The native type '{0}' must be a closed generic so the emitted code can use a specific instantiation.</value> </data> <data name="NativeGenericTypeMustBeClosedOrMatchArityDescription" xml:space="preserve"> <value>The native type '{0}' must be a closed generic or have the same number of generic parameters as the managed type so the emitted code can use a specific instantiation.</value> </data> <data name="NativeGenericTypeMustBeClosedOrMatchArityMessage" xml:space="preserve"> <value>The native type '{0}' for managed type '{1}' must be a closed generic type or have the same arity as the managed type.</value> </data> <data name="NativeTypeMustBeBlittableDescription" xml:space="preserve"> <value>A native type for a given type must be blittable.</value> </data> <data name="NativeTypeMustBeBlittableMessage" xml:space="preserve"> <value>The native type '{0}' for the type '{1}' is not blittable</value> </data> <data name="NativeTypeMustBeNonNullDescription" xml:space="preserve"> <value>A native type for a given type must be non-null.</value> </data> <data name="NativeTypeMustBeNonNullMessage" xml:space="preserve"> <value>The native type for the type '{0}' is null</value> </data> <data name="NativeTypeMustBePointerSizedDescription" xml:space="preserve"> <value>The native type must be pointer sized so the pinned result of 'GetPinnableReference' can be cast to the native type.</value> </data> <data name="NativeTypeMustBePointerSizedMessage" xml:space="preserve"> <value>The native type '{0}' must be pointer sized because the managed type '{1}' has a 'GetPinnableReference' method</value> </data> <data name="NativeTypeMustHaveRequiredShapeDescription" xml:space="preserve"> <value>The native type must have at least one of the two marshalling methods to enable marshalling the managed type.</value> </data> <data name="NativeTypeMustHaveRequiredShapeMessage" xml:space="preserve"> <value>The native type '{0}' must be a value type and have a constructor that takes one parameter of type '{1}' or a parameterless instance method named 'ToManaged' that returns '{1}'</value> </data> <data name="RefValuePropertyUnsupportedDescription" xml:space="preserve"> <value>The 'Value' property must not be a 'ref' or 'readonly ref' property.</value> </data> <data name="RefValuePropertyUnsupportedMessage" xml:space="preserve"> <value>The 'Value' property on the native type '{0}' must not be a 'ref' or 'readonly ref' property.</value> </data> <data name="RuntimeMarshallingMustBeDisabled" xml:space="preserve"> <value /> </data> <data name="SafeHandleByRefMustBeConcrete" xml:space="preserve"> <value>An abstract type derived from 'SafeHandle' cannot be marshalled by reference. The provided type must be concrete.</value> </data> <data name="TargetFrameworkNotSupportedDescription" xml:space="preserve"> <value>P/Invoke source generation is not supported on unknown target framework v{0}. The generated source will not be compatible with other frameworks.</value> <comment>{0} is a version number</comment> </data> <data name="TargetFrameworkNotSupportedMessage" xml:space="preserve"> <value>'GeneratedDllImportAttribute' cannot be used for source-generated P/Invokes on an unknown target framework v{0}.</value> <comment>{0} is a version number</comment> </data> <data name="TargetFrameworkNotSupportedTitle" xml:space="preserve"> <value>Current target framework is not supported by source-generated P/Invokes</value> </data> <data name="TypeNotSupportedDescription" xml:space="preserve"> <value>For types that are not supported by source-generated P/Invokes, the resulting P/Invoke will rely on the underlying runtime to marshal the specified type.</value> </data> <data name="TypeNotSupportedMessageParameter" xml:space="preserve"> <value>The type '{0}' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of parameter '{1}'.</value> </data> <data name="TypeNotSupportedMessageParameterWithDetails" xml:space="preserve"> <value>{0} The generated source will not handle marshalling of parameter '{1}'.</value> <comment>{0} is a message containing additional details about what is not supported {1} is the name of the parameter</comment> </data> <data name="TypeNotSupportedMessageReturn" xml:space="preserve"> <value>The type '{0}' is not supported by source-generated P/Invokes. The generated source will not handle marshalling of the return value of method '{1}'.</value> </data> <data name="TypeNotSupportedMessageReturnWithDetails" xml:space="preserve"> <value>{0} The generated source will not handle marshalling of the return value of method '{1}'.</value> <comment>{0} is a message containing additional details about what is not supported {1} is the name of the method</comment> </data> <data name="TypeNotSupportedTitle" xml:space="preserve"> <value>Specified type is not supported by source-generated P/Invokes</value> </data> <data name="ValuePropertyMustHaveGetterDescription" xml:space="preserve"> <value>The native type's 'Value' property must have a getter to support marshalling from managed to native.</value> </data> <data name="ValuePropertyMustHaveGetterMessage" xml:space="preserve"> <value>The 'Value' property on the native type '{0}' must have a getter</value> </data> <data name="ValuePropertyMustHaveSetterDescription" xml:space="preserve"> <value>The native type's 'Value' property must have a setter to support marshalling from native to managed.</value> </data> <data name="ValuePropertyMustHaveSetterMessage" xml:space="preserve"> <value>The 'Value' property on the native type '{0}' must have a setter</value> </data> </root>
1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/Diagnostics.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Testing; using Microsoft.Interop; using Xunit; namespace DllImportGenerator.UnitTests { public class Diagnostics { [ConditionalTheory] [InlineData(TestTargetFramework.Framework)] [InlineData(TestTargetFramework.Core)] [InlineData(TestTargetFramework.Standard)] [InlineData(TestTargetFramework.Net5)] public async Task TargetFrameworkNotSupported_NoDiagnostic(TestTargetFramework targetFramework) { string source = $@" using System.Runtime.InteropServices; {CodeSnippets.GeneratedDllImportAttributeDeclaration} partial class Test {{ [GeneratedDllImport(""DoesNotExist"")] public static partial void Method(); }} "; Compilation comp = await TestUtils.CreateCompilation(source, targetFramework); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); Assert.Empty(generatorDiags); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalTheory] [InlineData(TestTargetFramework.Framework)] [InlineData(TestTargetFramework.Core)] [InlineData(TestTargetFramework.Standard)] [InlineData(TestTargetFramework.Net5)] public async Task TargetFrameworkNotSupported_NoGeneratedDllImport_NoDiagnostic(TestTargetFramework targetFramework) { string source = @" using System.Runtime.InteropServices; partial class Test { [DllImport(""DoesNotExist"")] public static extern void Method(); } "; Compilation comp = await TestUtils.CreateCompilation(source, targetFramework); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); Assert.Empty(generatorDiags); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ParameterTypeNotSupported_ReportsDiagnostic() { string source = @" using System.Collections.Generic; using System.Runtime.InteropServices; namespace NS { class MyClass { } } partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method1(NS.MyClass c); [GeneratedDllImport(""DoesNotExist"")] public static partial void Method2(int i, List<int> list); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupported)) .WithSpan(11, 51, 11, 52) .WithArguments("NS.MyClass", "c"), (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupported)) .WithSpan(14, 57, 14, 61) .WithArguments("System.Collections.Generic.List<int>", "list"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ReturnTypeNotSupported_ReportsDiagnostic() { string source = @" using System.Collections.Generic; using System.Runtime.InteropServices; namespace NS { class MyClass { } } partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial NS.MyClass Method1(); [GeneratedDllImport(""DoesNotExist"")] public static partial List<int> Method2(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupported)) .WithSpan(11, 38, 11, 45) .WithArguments("NS.MyClass", "Method1"), (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupported)) .WithSpan(14, 37, 14, 44) .WithArguments("System.Collections.Generic.List<int>", "Method2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ParameterTypeNotSupportedWithDetails_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method(char c, string s); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails)) .WithSpan(6, 44, 6, 45), (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails)) .WithSpan(6, 54, 6, 55), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ReturnTypeNotSupportedWithDetails_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial char Method1(); [GeneratedDllImport(""DoesNotExist"")] public static partial string Method2(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails)) .WithSpan(6, 32, 6, 39), (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails)) .WithSpan(9, 34, 9, 41), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ParameterConfigurationNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method1([MarshalAs(UnmanagedType.BStr)] int i1, int i2); [GeneratedDllImport(""DoesNotExist"")] public static partial void Method2(bool b1, [MarshalAs(UnmanagedType.FunctionPtr)] bool b2); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ParameterConfigurationNotSupported)) .WithSpan(6, 76, 6, 78) .WithArguments(nameof(MarshalAsAttribute), "i1"), (new DiagnosticResult(GeneratorDiagnostics.ParameterConfigurationNotSupported)) .WithSpan(9, 93, 9, 95) .WithArguments(nameof(MarshalAsAttribute), "b2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ReturnConfigurationNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(UnmanagedType.BStr)] public static partial int Method1(int i); [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(UnmanagedType.FunctionPtr)] public static partial bool Method2(bool b); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ReturnConfigurationNotSupported)) .WithSpan(7, 31, 7, 38) .WithArguments(nameof(MarshalAsAttribute), "Method1"), (new DiagnosticResult(GeneratorDiagnostics.ReturnConfigurationNotSupported)) .WithSpan(11, 32, 11, 39) .WithArguments(nameof(MarshalAsAttribute), "Method2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task MarshalAsUnmanagedTypeNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(1)] public static partial int Method1(int i); [GeneratedDllImport(""DoesNotExist"")] public static partial bool Method2([MarshalAs((short)0)] bool b); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ConfigurationValueNotSupported)) .WithSpan(6, 14, 6, 26) .WithArguments(1, nameof(UnmanagedType)), (new DiagnosticResult(GeneratorDiagnostics.ReturnConfigurationNotSupported)) .WithSpan(7, 31, 7, 38) .WithArguments(nameof(MarshalAsAttribute), "Method1"), (new DiagnosticResult(GeneratorDiagnostics.ConfigurationValueNotSupported)) .WithSpan(10, 41, 10, 60) .WithArguments(0, nameof(UnmanagedType)), (new DiagnosticResult(GeneratorDiagnostics.ParameterConfigurationNotSupported)) .WithSpan(10, 67, 10, 68) .WithArguments(nameof(MarshalAsAttribute), "b"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task MarshalAsFieldNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(UnmanagedType.I4, SafeArraySubType=VarEnum.VT_I4)] public static partial int Method1(int i); [GeneratedDllImport(""DoesNotExist"")] public static partial bool Method2([MarshalAs(UnmanagedType.I1, IidParameterIndex = 1)] bool b); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ConfigurationNotSupported)) .WithSpan(6, 14, 6, 73) .WithArguments($"{nameof(MarshalAsAttribute)}{Type.Delimiter}{nameof(MarshalAsAttribute.SafeArraySubType)}"), (new DiagnosticResult(GeneratorDiagnostics.ConfigurationNotSupported)) .WithSpan(10, 41, 10, 91) .WithArguments($"{nameof(MarshalAsAttribute)}{Type.Delimiter}{nameof(MarshalAsAttribute.IidParameterIndex)}"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task StringMarshallingForwardingNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Utf8)] public static partial void Method1(string s); [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(Native))] public static partial void Method2(string s); struct Native { public Native(string s) { } public string ToManaged() => default; } } " + CodeSnippets.GeneratedDllImportAttributeDeclaration; // Compile against Standard so that we generate forwarders Compilation comp = await TestUtils.CreateCompilation(source, TestTargetFramework.Standard); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.CannotForwardToDllImport)) .WithSpan(6, 32, 6, 39) .WithArguments($"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(StringMarshalling)}={nameof(StringMarshalling)}{Type.Delimiter}{nameof(StringMarshalling.Utf8)}"), (new DiagnosticResult(GeneratorDiagnostics.CannotForwardToDllImport)) .WithSpan(9, 32, 9, 39) .WithArguments($"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(StringMarshalling)}={nameof(StringMarshalling)}{Type.Delimiter}{nameof(StringMarshalling.Custom)}"), (new DiagnosticResult(GeneratorDiagnostics.CannotForwardToDllImport)) .WithSpan(9, 32, 9, 39) .WithArguments($"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(GeneratedDllImportAttribute.StringMarshallingCustomType)}", $"{nameof(StringMarshalling)}{Type.Delimiter}{nameof(StringMarshalling.Custom)}"), (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails)) .WithSpan(9, 47, 9, 48) }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task InvalidStringMarshallingConfiguration_ReportsDiagnostic() { string source = @$" using System.Runtime.InteropServices; {CodeSnippets.DisableRuntimeMarshalling} partial class Test {{ [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Custom)] public static partial void Method1(out int i); [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Utf8, StringMarshallingCustomType = typeof(Native))] public static partial void Method2(out int i); struct Native {{ public Native(string s) {{ }} public string ToManaged() => default; }} }} "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidStringMarshallingConfiguration)) .WithSpan(6, 6, 6, 86), (new DiagnosticResult(GeneratorDiagnostics.InvalidStringMarshallingConfiguration)) .WithSpan(9, 6, 9, 130) }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } private static void VerifyDiagnostics(DiagnosticResult[] expectedDiagnostics, Diagnostic[] actualDiagnostics) { Assert.True(expectedDiagnostics.Length == actualDiagnostics.Length, $"Expected {expectedDiagnostics.Length} diagnostics, but encountered {actualDiagnostics.Length}. Actual diagnostics:{Environment.NewLine}{string.Join(Environment.NewLine, actualDiagnostics.Select(d => d.ToString()))}"); for (var i = 0; i < expectedDiagnostics.Length; i++) { DiagnosticResult expected = expectedDiagnostics[i]; Diagnostic actual = actualDiagnostics[i]; Assert.Equal(expected.Id, actual.Id); Assert.Equal(expected.Severity, actual.Severity); if (expected.HasLocation) { FileLinePositionSpan expectedSpan = expected.Spans[0].Span; FileLinePositionSpan actualSpan = actual.Location.GetLineSpan(); Assert.Equal(expectedSpan, actualSpan); } if (expected.MessageArguments is null) { Assert.Equal(expected.MessageFormat, actual.Descriptor.MessageFormat); } else { Assert.Equal(expected.Message, actual.GetMessage()); } } } private static Diagnostic[] GetSortedDiagnostics(IEnumerable<Diagnostic> diagnostics) { return diagnostics .OrderBy(d => d.Location.GetLineSpan().Path, StringComparer.Ordinal) .ThenBy(d => d.Location.SourceSpan.Start) .ThenBy(d => d.Location.SourceSpan.End) .ThenBy(d => d.Id) .ToArray(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Testing; using Microsoft.Interop; using Xunit; namespace DllImportGenerator.UnitTests { public class Diagnostics { [ConditionalTheory] [InlineData(TestTargetFramework.Framework)] [InlineData(TestTargetFramework.Core)] [InlineData(TestTargetFramework.Standard)] [InlineData(TestTargetFramework.Net5)] public async Task TargetFrameworkNotSupported_NoDiagnostic(TestTargetFramework targetFramework) { string source = $@" using System.Runtime.InteropServices; {CodeSnippets.GeneratedDllImportAttributeDeclaration} partial class Test {{ [GeneratedDllImport(""DoesNotExist"")] public static partial void Method(); }} "; Compilation comp = await TestUtils.CreateCompilation(source, targetFramework); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); Assert.Empty(generatorDiags); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalTheory] [InlineData(TestTargetFramework.Framework)] [InlineData(TestTargetFramework.Core)] [InlineData(TestTargetFramework.Standard)] [InlineData(TestTargetFramework.Net5)] public async Task TargetFrameworkNotSupported_NoGeneratedDllImport_NoDiagnostic(TestTargetFramework targetFramework) { string source = @" using System.Runtime.InteropServices; partial class Test { [DllImport(""DoesNotExist"")] public static extern void Method(); } "; Compilation comp = await TestUtils.CreateCompilation(source, targetFramework); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); Assert.Empty(generatorDiags); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ParameterTypeNotSupported_ReportsDiagnostic() { string source = @" using System.Collections.Generic; using System.Runtime.InteropServices; namespace NS { class MyClass { } } partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method1(NS.MyClass c); [GeneratedDllImport(""DoesNotExist"")] public static partial void Method2(int i, List<int> list); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupported)) .WithSpan(11, 51, 11, 52) .WithArguments("NS.MyClass", "c"), (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupported)) .WithSpan(14, 57, 14, 61) .WithArguments("System.Collections.Generic.List<int>", "list"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ReturnTypeNotSupported_ReportsDiagnostic() { string source = @" using System.Collections.Generic; using System.Runtime.InteropServices; namespace NS { class MyClass { } } partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial NS.MyClass Method1(); [GeneratedDllImport(""DoesNotExist"")] public static partial List<int> Method2(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupported)) .WithSpan(11, 38, 11, 45) .WithArguments("NS.MyClass", "Method1"), (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupported)) .WithSpan(14, 37, 14, 44) .WithArguments("System.Collections.Generic.List<int>", "Method2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ParameterTypeNotSupportedWithDetails_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method(char c, string s); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails)) .WithSpan(6, 44, 6, 45), (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails)) .WithSpan(6, 54, 6, 55), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ReturnTypeNotSupportedWithDetails_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial char Method1(); [GeneratedDllImport(""DoesNotExist"")] public static partial string Method2(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails)) .WithSpan(6, 32, 6, 39), (new DiagnosticResult(GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails)) .WithSpan(9, 34, 9, 41), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ParameterConfigurationNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method1([MarshalAs(UnmanagedType.BStr)] int i1, int i2); [GeneratedDllImport(""DoesNotExist"")] public static partial void Method2(bool b1, [MarshalAs(UnmanagedType.FunctionPtr)] bool b2); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ParameterConfigurationNotSupported)) .WithSpan(6, 76, 6, 78) .WithArguments(nameof(MarshalAsAttribute), "i1"), (new DiagnosticResult(GeneratorDiagnostics.ParameterConfigurationNotSupported)) .WithSpan(9, 93, 9, 95) .WithArguments(nameof(MarshalAsAttribute), "b2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task ReturnConfigurationNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(UnmanagedType.BStr)] public static partial int Method1(int i); [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(UnmanagedType.FunctionPtr)] public static partial bool Method2(bool b); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ReturnConfigurationNotSupported)) .WithSpan(7, 31, 7, 38) .WithArguments(nameof(MarshalAsAttribute), "Method1"), (new DiagnosticResult(GeneratorDiagnostics.ReturnConfigurationNotSupported)) .WithSpan(11, 32, 11, 39) .WithArguments(nameof(MarshalAsAttribute), "Method2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task MarshalAsUnmanagedTypeNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(1)] public static partial int Method1(int i); [GeneratedDllImport(""DoesNotExist"")] public static partial bool Method2([MarshalAs((short)0)] bool b); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ConfigurationValueNotSupported)) .WithSpan(6, 14, 6, 26) .WithArguments(1, nameof(UnmanagedType)), (new DiagnosticResult(GeneratorDiagnostics.ReturnConfigurationNotSupported)) .WithSpan(7, 31, 7, 38) .WithArguments(nameof(MarshalAsAttribute), "Method1"), (new DiagnosticResult(GeneratorDiagnostics.ConfigurationValueNotSupported)) .WithSpan(10, 41, 10, 60) .WithArguments(0, nameof(UnmanagedType)), (new DiagnosticResult(GeneratorDiagnostics.ParameterConfigurationNotSupported)) .WithSpan(10, 67, 10, 68) .WithArguments(nameof(MarshalAsAttribute), "b"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task MarshalAsFieldNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] [return: MarshalAs(UnmanagedType.I4, SafeArraySubType=VarEnum.VT_I4)] public static partial int Method1(int i); [GeneratedDllImport(""DoesNotExist"")] public static partial bool Method2([MarshalAs(UnmanagedType.I1, IidParameterIndex = 1)] bool b); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.ConfigurationNotSupported)) .WithSpan(6, 14, 6, 73) .WithArguments($"{nameof(MarshalAsAttribute)}{Type.Delimiter}{nameof(MarshalAsAttribute.SafeArraySubType)}"), (new DiagnosticResult(GeneratorDiagnostics.ConfigurationNotSupported)) .WithSpan(10, 41, 10, 91) .WithArguments($"{nameof(MarshalAsAttribute)}{Type.Delimiter}{nameof(MarshalAsAttribute.IidParameterIndex)}"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task StringMarshallingForwardingNotSupported_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Utf8)] public static partial void Method1(string s); [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(Native))] public static partial void Method2(string s); struct Native { public Native(string s) { } public string ToManaged() => default; } } " + CodeSnippets.GeneratedDllImportAttributeDeclaration; // Compile against Standard so that we generate forwarders Compilation comp = await TestUtils.CreateCompilation(source, TestTargetFramework.Standard); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.CannotForwardToDllImport)) .WithSpan(6, 32, 6, 39) .WithArguments($"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(StringMarshalling)}={nameof(StringMarshalling)}{Type.Delimiter}{nameof(StringMarshalling.Utf8)}"), (new DiagnosticResult(GeneratorDiagnostics.CannotForwardToDllImport)) .WithSpan(9, 32, 9, 39) .WithArguments($"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(StringMarshalling)}={nameof(StringMarshalling)}{Type.Delimiter}{nameof(StringMarshalling.Custom)}"), (new DiagnosticResult(GeneratorDiagnostics.CannotForwardToDllImport)) .WithSpan(9, 32, 9, 39) .WithArguments($"{nameof(TypeNames.GeneratedDllImportAttribute)}{Type.Delimiter}{nameof(GeneratedDllImportAttribute.StringMarshallingCustomType)}", $"{nameof(StringMarshalling)}{Type.Delimiter}{nameof(StringMarshalling.Custom)}"), (new DiagnosticResult(GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails)) .WithSpan(9, 47, 9, 48) }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task InvalidStringMarshallingConfiguration_ReportsDiagnostic() { string source = @$" using System.Runtime.InteropServices; {CodeSnippets.DisableRuntimeMarshalling} partial class Test {{ [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Custom)] public static partial void Method1(out int i); [GeneratedDllImport(""DoesNotExist"", StringMarshalling = StringMarshalling.Utf8, StringMarshallingCustomType = typeof(Native))] public static partial void Method2(out int i); struct Native {{ public Native(string s) {{ }} public string ToManaged() => default; }} }} "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidStringMarshallingConfiguration)) .WithSpan(6, 6, 6, 86), (new DiagnosticResult(GeneratorDiagnostics.InvalidStringMarshallingConfiguration)) .WithSpan(9, 6, 9, 130) }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task NonPartialMethod_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static void Method() { } [GeneratedDllImport(""DoesNotExist"")] public static extern void ExternMethod(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodSignature)) .WithSpan(6, 24, 6, 30) .WithArguments("Method"), (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodSignature)) .WithSpan(9, 31, 9, 43) .WithArguments("ExternMethod"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); var newCompDiags = newComp.GetDiagnostics(); Assert.Empty(newCompDiags); } [ConditionalFact] public async Task NonStaticMethod_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public partial void Method(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodSignature)) .WithSpan(6, 25, 6, 31) .WithArguments("Method") }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); // Generator ignores the method TestUtils.AssertPreSourceGeneratorCompilation(newComp); } [ConditionalFact] public async Task GenericMethod_ReportsDiagnostic() { string source = @" using System.Runtime.InteropServices; partial class Test { [GeneratedDllImport(""DoesNotExist"")] public static partial void Method1<T>(); [GeneratedDllImport(""DoesNotExist"")] public static partial void Method2<T, U>(); } "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodSignature)) .WithSpan(6, 32, 6, 39) .WithArguments("Method1"), (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodSignature)) .WithSpan(9, 32, 9, 39) .WithArguments("Method2"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); // Generator ignores the method TestUtils.AssertPreSourceGeneratorCompilation(newComp); } [ConditionalTheory] [InlineData("class")] [InlineData("struct")] [InlineData("record")] public async Task NonPartialParentType_Diagnostic(string typeKind) { string source = $@" using System.Runtime.InteropServices; {typeKind} Test {{ [GeneratedDllImport(""DoesNotExist"")] public static partial void Method(); }} "; Compilation comp = await TestUtils.CreateCompilation(source); // Also expect CS0751: A partial method must be declared within a partial type string additionalDiag = "CS0751"; TestUtils.AssertPreSourceGeneratorCompilation(comp, additionalDiag); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers)) .WithSpan(6, 32, 6, 38) .WithArguments("Method", "Test"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); // Generator ignores the method TestUtils.AssertPreSourceGeneratorCompilation(newComp, additionalDiag); } [ConditionalTheory] [InlineData("class")] [InlineData("struct")] [InlineData("record")] public async Task NonPartialGrandparentType_Diagnostic(string typeKind) { string source = $@" using System.Runtime.InteropServices; {typeKind} Test {{ partial class TestInner {{ [GeneratedDllImport(""DoesNotExist"")] static partial void Method(); }} }} "; Compilation comp = await TestUtils.CreateCompilation(source); TestUtils.AssertPreSourceGeneratorCompilation(comp); var newComp = TestUtils.RunGenerators(comp, out var generatorDiags, new Microsoft.Interop.DllImportGenerator()); DiagnosticResult[] expectedDiags = new DiagnosticResult[] { (new DiagnosticResult(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers)) .WithSpan(8, 29, 8, 35) .WithArguments("Method", "Test"), }; VerifyDiagnostics(expectedDiags, GetSortedDiagnostics(generatorDiags)); // Generator ignores the method TestUtils.AssertPreSourceGeneratorCompilation(newComp); } private static void VerifyDiagnostics(DiagnosticResult[] expectedDiagnostics, Diagnostic[] actualDiagnostics) { Assert.True(expectedDiagnostics.Length == actualDiagnostics.Length, $"Expected {expectedDiagnostics.Length} diagnostics, but encountered {actualDiagnostics.Length}. Actual diagnostics:{Environment.NewLine}{string.Join(Environment.NewLine, actualDiagnostics.Select(d => d.ToString()))}"); for (var i = 0; i < expectedDiagnostics.Length; i++) { DiagnosticResult expected = expectedDiagnostics[i]; Diagnostic actual = actualDiagnostics[i]; Assert.Equal(expected.Id, actual.Id); Assert.Equal(expected.Severity, actual.Severity); if (expected.HasLocation) { FileLinePositionSpan expectedSpan = expected.Spans[0].Span; FileLinePositionSpan actualSpan = actual.Location.GetLineSpan(); Assert.Equal(expectedSpan, actualSpan); } if (expected.MessageArguments is null) { Assert.Equal(expected.MessageFormat, actual.Descriptor.MessageFormat); } else { Assert.Equal(expected.Message, actual.GetMessage()); } } } private static Diagnostic[] GetSortedDiagnostics(IEnumerable<Diagnostic> diagnostics) { return diagnostics .OrderBy(d => d.Location.GetLineSpan().Path, StringComparer.Ordinal) .ThenBy(d => d.Location.SourceSpan.Start) .ThenBy(d => d.Location.SourceSpan.End) .ThenBy(d => d.Id) .ToArray(); } } }
1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Testing; using Microsoft.DotNet.XUnitExtensions; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Xunit; namespace DllImportGenerator.UnitTests { /// <summary> /// The target framework to compile against. /// </summary> /// <remarks> /// This enumeration is for testing only and is not to be confused with the product's TargetFramework enum. /// </remarks> public enum TestTargetFramework { /// <summary> /// The latest supported .NET Framework version. /// </summary> Framework, /// <summary> /// The latest supported .NET Core version. /// </summary> Core, /// <summary> /// The latest supported .NET Standard version. /// </summary> Standard, /// <summary> /// The latest supported (live-built) .NET version. /// </summary> Net, /// <summary> /// .NET version 5.0. /// </summary> Net5, /// <summary> /// .NET version 6.0. /// </summary> Net6, } public static class TestUtils { /// <summary> /// Disable binding redirect warnings. They are disabled by default by the .NET SDK, but not by Roslyn. /// See https://github.com/dotnet/roslyn/issues/19640. /// </summary> internal static ImmutableDictionary<string, ReportDiagnostic> BindingRedirectWarnings { get; } = new Dictionary<string, ReportDiagnostic>() { { "CS1701", ReportDiagnostic.Suppress }, { "CS1702", ReportDiagnostic.Suppress }, }.ToImmutableDictionary(); /// <summary> /// Assert the pre-srouce generator compilation has only /// the expected failure diagnostics. /// </summary> /// <param name="comp"></param> public static void AssertPreSourceGeneratorCompilation(Compilation comp) { var allowedDiagnostics = new HashSet<string>() { "CS8795", // Partial method impl missing "CS0234", // Missing type or namespace - GeneratedDllImportAttribute "CS0246", // Missing type or namespace - GeneratedDllImportAttribute "CS8019", // Unnecessary using }; var compDiags = comp.GetDiagnostics(); Assert.All(compDiags, diag => { Assert.Subset(allowedDiagnostics, new HashSet<string> { diag.Id }); }); } /// <summary> /// Create a compilation given source /// </summary> /// <param name="source">Source to compile</param> /// <param name="targetFramework">Target framework of the compilation</param> /// <param name="outputKind">Output type</param> /// <returns>The resulting compilation</returns> public static Task<Compilation> CreateCompilation(string source, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null) { return CreateCompilation(new[] { source }, targetFramework, outputKind, preprocessorSymbols); } /// <summary> /// Create a compilation given sources /// </summary> /// <param name="sources">Sources to compile</param> /// <param name="targetFramework">Target framework of the compilation</param> /// <param name="outputKind">Output type</param> /// <returns>The resulting compilation</returns> public static Task<Compilation> CreateCompilation(string[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null) { return CreateCompilation( sources.Select(source => CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(LanguageVersion.Preview, preprocessorSymbols: preprocessorSymbols))).ToArray(), targetFramework, outputKind); } /// <summary> /// Create a compilation given sources /// </summary> /// <param name="sources">Sources to compile</param> /// <param name="targetFramework">Target framework of the compilation</param> /// <param name="outputKind">Output type</param> /// <returns>The resulting compilation</returns> public static async Task<Compilation> CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) { var referenceAssemblies = await GetReferenceAssemblies(targetFramework); // [TODO] Can remove once ancillary logic is removed. if (targetFramework is TestTargetFramework.Net6 or TestTargetFramework.Net) { referenceAssemblies = referenceAssemblies.Add(GetAncillaryReference()); } return CSharpCompilation.Create("compilation", sources, referenceAssemblies, new CSharpCompilationOptions(outputKind, allowUnsafe: true, specificDiagnosticOptions: BindingRedirectWarnings)); } /// <summary> /// Get the reference assembly collection for the <see cref="TestTargetFramework"/>. /// </summary> /// <param name="targetFramework">The target framework.</param> /// <returns>The reference assembly collection and metadata references</returns> private static async Task<ImmutableArray<MetadataReference>> GetReferenceAssemblies(TestTargetFramework targetFramework = TestTargetFramework.Net) { // Compute the reference assemblies for the target framework. if (targetFramework == TestTargetFramework.Net) { return SourceGenerators.Tests.LiveReferencePack.GetMetadataReferences(); } else { var referenceAssembliesSdk = targetFramework switch { TestTargetFramework.Framework => ReferenceAssemblies.NetFramework.Net48.Default, TestTargetFramework.Standard => ReferenceAssemblies.NetStandard.NetStandard21, TestTargetFramework.Core => ReferenceAssemblies.NetCore.NetCoreApp31, TestTargetFramework.Net5 => ReferenceAssemblies.Net.Net50, TestTargetFramework.Net6 => ReferenceAssemblies.Net.Net60, _ => ReferenceAssemblies.Default }; // Update the reference assemblies to include details from the NuGet.config. var referenceAssemblies = referenceAssembliesSdk .WithNuGetConfigFilePath(Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "NuGet.config")); return await ResolveReferenceAssemblies(referenceAssemblies); } } /// <summary> /// Get the metadata reference for the ancillary interop helper assembly. /// </summary> /// <returns></returns> internal static MetadataReference GetAncillaryReference() { // Include the assembly containing the new attribute and all of its references. // [TODO] Remove once the attribute has been added to the BCL var attrAssem = typeof(GeneratedDllImportAttribute).GetTypeInfo().Assembly; return MetadataReference.CreateFromFile(attrAssem.Location); } /// <summary> /// Run the supplied generators on the compilation. /// </summary> /// <param name="comp">Compilation target</param> /// <param name="diagnostics">Resulting diagnostics</param> /// <param name="generators">Source generator instances</param> /// <returns>The resulting compilation</returns> public static Compilation RunGenerators(Compilation comp, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators) { CreateDriver(comp, null, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics); return d; } /// <summary> /// Run the supplied generators on the compilation. /// </summary> /// <param name="comp">Compilation target</param> /// <param name="diagnostics">Resulting diagnostics</param> /// <param name="generators">Source generator instances</param> /// <returns>The resulting compilation</returns> public static Compilation RunGenerators(Compilation comp, AnalyzerConfigOptionsProvider options, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators) { CreateDriver(comp, options, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics); return d; } public static GeneratorDriver CreateDriver(Compilation c, AnalyzerConfigOptionsProvider? options, IIncrementalGenerator[] generators) => CSharpGeneratorDriver.Create( ImmutableArray.Create(generators.Select(gen => gen.AsSourceGenerator()).ToArray()), parseOptions: (CSharpParseOptions)c.SyntaxTrees.First().Options, optionsProvider: options); // The non-configurable test-packages folder may be incomplete/corrupt. // - https://github.com/dotnet/roslyn-sdk/issues/487 // - https://github.com/dotnet/roslyn-sdk/issues/590 internal static void ThrowSkipExceptionIfPackagingException(Exception e) { if (e.GetType().FullName == "NuGet.Packaging.Core.PackagingException") throw new SkipTestException($"Skipping test due to issue with test-packages ({e.Message}). See https://github.com/dotnet/roslyn-sdk/issues/590."); } private static async Task<ImmutableArray<MetadataReference>> ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies) { try { ResolveRedirect.Instance.Start(); return await referenceAssemblies.ResolveAsync(LanguageNames.CSharp, CancellationToken.None); } catch (Exception e) { ThrowSkipExceptionIfPackagingException(e); throw; } finally { ResolveRedirect.Instance.Stop(); } } private class ResolveRedirect { private const string EnvVarName = "NUGET_PACKAGES"; private static readonly ResolveRedirect s_instance = new ResolveRedirect(); public static ResolveRedirect Instance => s_instance; private int _count = 0; public void Start() { // Set the NuGet package cache location to a subdirectory such that we should always have access to it Environment.SetEnvironmentVariable(EnvVarName, Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "packages")); Interlocked.Increment(ref _count); } public void Stop() { int count = Interlocked.Decrement(ref _count); if (count == 0) { Environment.SetEnvironmentVariable(EnvVarName, null); } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Testing; using Microsoft.DotNet.XUnitExtensions; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Xunit; namespace DllImportGenerator.UnitTests { /// <summary> /// The target framework to compile against. /// </summary> /// <remarks> /// This enumeration is for testing only and is not to be confused with the product's TargetFramework enum. /// </remarks> public enum TestTargetFramework { /// <summary> /// The latest supported .NET Framework version. /// </summary> Framework, /// <summary> /// The latest supported .NET Core version. /// </summary> Core, /// <summary> /// The latest supported .NET Standard version. /// </summary> Standard, /// <summary> /// The latest supported (live-built) .NET version. /// </summary> Net, /// <summary> /// .NET version 5.0. /// </summary> Net5, /// <summary> /// .NET version 6.0. /// </summary> Net6, } public static class TestUtils { /// <summary> /// Disable binding redirect warnings. They are disabled by default by the .NET SDK, but not by Roslyn. /// See https://github.com/dotnet/roslyn/issues/19640. /// </summary> internal static ImmutableDictionary<string, ReportDiagnostic> BindingRedirectWarnings { get; } = new Dictionary<string, ReportDiagnostic>() { { "CS1701", ReportDiagnostic.Suppress }, { "CS1702", ReportDiagnostic.Suppress }, }.ToImmutableDictionary(); /// <summary> /// Assert the pre-srouce generator compilation has only /// the expected failure diagnostics. /// </summary> /// <param name="comp"></param> public static void AssertPreSourceGeneratorCompilation(Compilation comp, params string[] additionalAllowedDiagnostics) { var allowedDiagnostics = new HashSet<string>() { "CS8795", // Partial method impl missing "CS0234", // Missing type or namespace - GeneratedDllImportAttribute "CS0246", // Missing type or namespace - GeneratedDllImportAttribute "CS8019", // Unnecessary using }; foreach (string diagnostic in additionalAllowedDiagnostics) { allowedDiagnostics.Add(diagnostic); } var compDiags = comp.GetDiagnostics(); Assert.All(compDiags, diag => { Assert.Subset(allowedDiagnostics, new HashSet<string> { diag.Id }); }); } /// <summary> /// Create a compilation given source /// </summary> /// <param name="source">Source to compile</param> /// <param name="targetFramework">Target framework of the compilation</param> /// <param name="outputKind">Output type</param> /// <returns>The resulting compilation</returns> public static Task<Compilation> CreateCompilation(string source, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null) { return CreateCompilation(new[] { source }, targetFramework, outputKind, preprocessorSymbols); } /// <summary> /// Create a compilation given sources /// </summary> /// <param name="sources">Sources to compile</param> /// <param name="targetFramework">Target framework of the compilation</param> /// <param name="outputKind">Output type</param> /// <returns>The resulting compilation</returns> public static Task<Compilation> CreateCompilation(string[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary, IEnumerable<string>? preprocessorSymbols = null) { return CreateCompilation( sources.Select(source => CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(LanguageVersion.Preview, preprocessorSymbols: preprocessorSymbols))).ToArray(), targetFramework, outputKind); } /// <summary> /// Create a compilation given sources /// </summary> /// <param name="sources">Sources to compile</param> /// <param name="targetFramework">Target framework of the compilation</param> /// <param name="outputKind">Output type</param> /// <returns>The resulting compilation</returns> public static async Task<Compilation> CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework = TestTargetFramework.Net, OutputKind outputKind = OutputKind.DynamicallyLinkedLibrary) { var referenceAssemblies = await GetReferenceAssemblies(targetFramework); // [TODO] Can remove once ancillary logic is removed. if (targetFramework is TestTargetFramework.Net6 or TestTargetFramework.Net) { referenceAssemblies = referenceAssemblies.Add(GetAncillaryReference()); } return CSharpCompilation.Create("compilation", sources, referenceAssemblies, new CSharpCompilationOptions(outputKind, allowUnsafe: true, specificDiagnosticOptions: BindingRedirectWarnings)); } /// <summary> /// Get the reference assembly collection for the <see cref="TestTargetFramework"/>. /// </summary> /// <param name="targetFramework">The target framework.</param> /// <returns>The reference assembly collection and metadata references</returns> private static async Task<ImmutableArray<MetadataReference>> GetReferenceAssemblies(TestTargetFramework targetFramework = TestTargetFramework.Net) { // Compute the reference assemblies for the target framework. if (targetFramework == TestTargetFramework.Net) { return SourceGenerators.Tests.LiveReferencePack.GetMetadataReferences(); } else { var referenceAssembliesSdk = targetFramework switch { TestTargetFramework.Framework => ReferenceAssemblies.NetFramework.Net48.Default, TestTargetFramework.Standard => ReferenceAssemblies.NetStandard.NetStandard21, TestTargetFramework.Core => ReferenceAssemblies.NetCore.NetCoreApp31, TestTargetFramework.Net5 => ReferenceAssemblies.Net.Net50, TestTargetFramework.Net6 => ReferenceAssemblies.Net.Net60, _ => ReferenceAssemblies.Default }; // Update the reference assemblies to include details from the NuGet.config. var referenceAssemblies = referenceAssembliesSdk .WithNuGetConfigFilePath(Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "NuGet.config")); return await ResolveReferenceAssemblies(referenceAssemblies); } } /// <summary> /// Get the metadata reference for the ancillary interop helper assembly. /// </summary> /// <returns></returns> internal static MetadataReference GetAncillaryReference() { // Include the assembly containing the new attribute and all of its references. // [TODO] Remove once the attribute has been added to the BCL var attrAssem = typeof(GeneratedDllImportAttribute).GetTypeInfo().Assembly; return MetadataReference.CreateFromFile(attrAssem.Location); } /// <summary> /// Run the supplied generators on the compilation. /// </summary> /// <param name="comp">Compilation target</param> /// <param name="diagnostics">Resulting diagnostics</param> /// <param name="generators">Source generator instances</param> /// <returns>The resulting compilation</returns> public static Compilation RunGenerators(Compilation comp, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators) { CreateDriver(comp, null, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics); return d; } /// <summary> /// Run the supplied generators on the compilation. /// </summary> /// <param name="comp">Compilation target</param> /// <param name="diagnostics">Resulting diagnostics</param> /// <param name="generators">Source generator instances</param> /// <returns>The resulting compilation</returns> public static Compilation RunGenerators(Compilation comp, AnalyzerConfigOptionsProvider options, out ImmutableArray<Diagnostic> diagnostics, params IIncrementalGenerator[] generators) { CreateDriver(comp, options, generators).RunGeneratorsAndUpdateCompilation(comp, out var d, out diagnostics); return d; } public static GeneratorDriver CreateDriver(Compilation c, AnalyzerConfigOptionsProvider? options, IIncrementalGenerator[] generators) => CSharpGeneratorDriver.Create( ImmutableArray.Create(generators.Select(gen => gen.AsSourceGenerator()).ToArray()), parseOptions: (CSharpParseOptions)c.SyntaxTrees.First().Options, optionsProvider: options); // The non-configurable test-packages folder may be incomplete/corrupt. // - https://github.com/dotnet/roslyn-sdk/issues/487 // - https://github.com/dotnet/roslyn-sdk/issues/590 internal static void ThrowSkipExceptionIfPackagingException(Exception e) { if (e.GetType().FullName == "NuGet.Packaging.Core.PackagingException") throw new SkipTestException($"Skipping test due to issue with test-packages ({e.Message}). See https://github.com/dotnet/roslyn-sdk/issues/590."); } private static async Task<ImmutableArray<MetadataReference>> ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies) { try { ResolveRedirect.Instance.Start(); return await referenceAssemblies.ResolveAsync(LanguageNames.CSharp, CancellationToken.None); } catch (Exception e) { ThrowSkipExceptionIfPackagingException(e); throw; } finally { ResolveRedirect.Instance.Stop(); } } private class ResolveRedirect { private const string EnvVarName = "NUGET_PACKAGES"; private static readonly ResolveRedirect s_instance = new ResolveRedirect(); public static ResolveRedirect Instance => s_instance; private int _count = 0; public void Start() { // Set the NuGet package cache location to a subdirectory such that we should always have access to it Environment.SetEnvironmentVariable(EnvVarName, Path.Combine(Path.GetDirectoryName(typeof(TestUtils).Assembly.Location)!, "packages")); Interlocked.Increment(ref _count); } public void Stop() { int count = Interlocked.Decrement(ref _count); if (count == 0) { Environment.SetEnvironmentVariable(EnvVarName, null); } } } } }
1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/HardwareIntrinsics/X86/Avx1/Ceiling.Double.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void CeilingDouble() { var test = new SimpleUnaryOpTest__CeilingDouble(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); if (Avx.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleUnaryOpTest__CeilingDouble { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Double[] inArray1, Double[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Double>(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<Double> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__CeilingDouble testClass) { var result = Avx.Ceiling(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__CeilingDouble testClass) { fixed (Vector256<Double>* pFld1 = &_fld1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Vector256<Double> _clsVar1; private Vector256<Double> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__CeilingDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); } public SimpleUnaryOpTest__CeilingDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, new Double[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Avx.Ceiling( Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Avx.Ceiling( Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = Avx.Ceiling( Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Avx).GetMethod(nameof(Avx.Ceiling), new Type[] { typeof(Vector256<Double>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Avx).GetMethod(nameof(Avx.Ceiling), new Type[] { typeof(Vector256<Double>) }) .Invoke(null, new object[] { Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Avx).GetMethod(nameof(Avx.Ceiling), new Type[] { typeof(Vector256<Double>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Avx.Ceiling( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector256<Double>* pClsVar1 = &_clsVar1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pClsVar1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr); var result = Avx.Ceiling(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)); var result = Avx.Ceiling(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var op1 = Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)); var result = Avx.Ceiling(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__CeilingDouble(); var result = Avx.Ceiling(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleUnaryOpTest__CeilingDouble(); fixed (Vector256<Double>* pFld1 = &test._fld1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Avx.Ceiling(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector256<Double>* pFld1 = &_fld1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Avx.Ceiling(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = Avx.Ceiling( Avx.LoadVector256((Double*)(&test._fld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector256<Double> op1, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(Double[] firstOp, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (BitConverter.DoubleToInt64Bits(result[0]) != BitConverter.DoubleToInt64Bits(Math.Ceiling(firstOp[0]))) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (BitConverter.DoubleToInt64Bits(result[i]) != BitConverter.DoubleToInt64Bits(Math.Ceiling(firstOp[i]))) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx)}.{nameof(Avx.Ceiling)}<Double>(Vector256<Double>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; namespace JIT.HardwareIntrinsics.X86 { public static partial class Program { private static void CeilingDouble() { var test = new SimpleUnaryOpTest__CeilingDouble(); if (test.IsSupported) { // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates basic functionality works, using Load test.RunBasicScenario_Load(); // Validates basic functionality works, using LoadAligned test.RunBasicScenario_LoadAligned(); } // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates calling via reflection works, using Load test.RunReflectionScenario_Load(); // Validates calling via reflection works, using LoadAligned test.RunReflectionScenario_LoadAligned(); } // Validates passing a static member works test.RunClsVarScenario(); if (Avx.IsSupported) { // Validates passing a static member works, using pinning and Load test.RunClsVarScenario_Load(); } // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); if (Avx.IsSupported) { // Validates passing a local works, using Load test.RunLclVarScenario_Load(); // Validates passing a local works, using LoadAligned test.RunLclVarScenario_LoadAligned(); } // Validates passing the field of a local class works test.RunClassLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local class works, using pinning and Load test.RunClassLclFldScenario_Load(); } // Validates passing an instance member of a class works test.RunClassFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a class works, using pinning and Load test.RunClassFldScenario_Load(); } // Validates passing the field of a local struct works test.RunStructLclFldScenario(); if (Avx.IsSupported) { // Validates passing the field of a local struct works, using pinning and Load test.RunStructLclFldScenario_Load(); } // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (Avx.IsSupported) { // Validates passing an instance member of a struct works, using pinning and Load test.RunStructFldScenario_Load(); } } else { // Validates we throw on unsupported hardware test.RunUnsupportedScenario(); } if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class SimpleUnaryOpTest__CeilingDouble { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(Double[] inArray1, Double[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<Double>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<Double>(); if ((alignment != 32 && alignment != 16) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<Double, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector256<Double> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref testStruct._fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); return testStruct; } public void RunStructFldScenario(SimpleUnaryOpTest__CeilingDouble testClass) { var result = Avx.Ceiling(_fld1); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } public void RunStructFldScenario_Load(SimpleUnaryOpTest__CeilingDouble testClass) { fixed (Vector256<Double>* pFld1 = &_fld1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pFld1)) ); Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } } private static readonly int LargestVectorSize = 32; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static readonly int RetElementCount = Unsafe.SizeOf<Vector256<Double>>() / sizeof(Double); private static Double[] _data1 = new Double[Op1ElementCount]; private static Vector256<Double> _clsVar1; private Vector256<Double> _fld1; private DataTable _dataTable; static SimpleUnaryOpTest__CeilingDouble() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _clsVar1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); } public SimpleUnaryOpTest__CeilingDouble() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector256<Double>, byte>(ref _fld1), ref Unsafe.As<Double, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector256<Double>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetDouble(); } _dataTable = new DataTable(_data1, new Double[RetElementCount], LargestVectorSize); } public bool IsSupported => Avx.IsSupported; public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Avx.Ceiling( Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Avx.Ceiling( Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunBasicScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned)); var result = Avx.Ceiling( Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Avx).GetMethod(nameof(Avx.Ceiling), new Type[] { typeof(Vector256<Double>) }) .Invoke(null, new object[] { Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load)); var result = typeof(Avx).GetMethod(nameof(Avx.Ceiling), new Type[] { typeof(Vector256<Double>) }) .Invoke(null, new object[] { Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned)); var result = typeof(Avx).GetMethod(nameof(Avx.Ceiling), new Type[] { typeof(Vector256<Double>) }) .Invoke(null, new object[] { Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector256<Double>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = Avx.Ceiling( _clsVar1 ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunClsVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario_Load)); fixed (Vector256<Double>* pClsVar1 = &_clsVar1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pClsVar1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector256<Double>>(_dataTable.inArray1Ptr); var result = Avx.Ceiling(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load)); var op1 = Avx.LoadVector256((Double*)(_dataTable.inArray1Ptr)); var result = Avx.Ceiling(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var op1 = Avx.LoadAlignedVector256((Double*)(_dataTable.inArray1Ptr)); var result = Avx.Ceiling(op1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new SimpleUnaryOpTest__CeilingDouble(); var result = Avx.Ceiling(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load)); var test = new SimpleUnaryOpTest__CeilingDouble(); fixed (Vector256<Double>* pFld1 = &test._fld1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Avx.Ceiling(_fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load)); fixed (Vector256<Double>* pFld1 = &_fld1) { var result = Avx.Ceiling( Avx.LoadVector256((Double*)(pFld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Avx.Ceiling(test._fld1); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load)); var test = TestStruct.Create(); var result = Avx.Ceiling( Avx.LoadVector256((Double*)(&test._fld1)) ); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } public void RunStructFldScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario_Load)); var test = TestStruct.Create(); test.RunStructFldScenario_Load(this); } public void RunUnsupportedScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario)); bool succeeded = false; try { RunBasicScenario_UnsafeRead(); } catch (PlatformNotSupportedException) { succeeded = true; } if (!succeeded) { Succeeded = false; } } private void ValidateResult(Vector256<Double> op1, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { Double[] inArray1 = new Double[Op1ElementCount]; Double[] outArray = new Double[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector256<Double>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<Double, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector256<Double>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(Double[] firstOp, Double[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (BitConverter.DoubleToInt64Bits(result[0]) != BitConverter.DoubleToInt64Bits(Math.Ceiling(firstOp[0]))) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (BitConverter.DoubleToInt64Bits(result[i]) != BitConverter.DoubleToInt64Bits(Math.Ceiling(firstOp[i]))) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Avx)}.{nameof(Avx.Ceiling)}<Double>(Vector256<Double>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/HardwareIntrinsics/X86/Sse2/StoreLow.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics; namespace IntelHardwareIntrinsicTest { class Program { const int Pass = 100; const int Fail = 0; static unsafe int Main(string[] args) { int testResult = Pass; if (Sse2.IsSupported) { using (TestTable<double> doubleTable = new TestTable<double>(new double[2] { 1, -5 }, new double[2])) { var vf = Unsafe.Read<Vector128<double>>(doubleTable.inArrayPtr); Sse2.StoreLow((double*)(doubleTable.outArrayPtr), vf); if (!doubleTable.CheckResult((x, y) => BitConverter.DoubleToInt64Bits(x[0]) == BitConverter.DoubleToInt64Bits(y[0]) && BitConverter.DoubleToInt64Bits(y[1]) == 0)) { Console.WriteLine("Sse2 StoreLow failed on double:"); foreach (var item in doubleTable.outArray) { Console.Write(item + ", "); } Console.WriteLine(); testResult = Fail; } } } return testResult; } public unsafe struct TestTable<T> : IDisposable where T : struct { public T[] inArray; public T[] outArray; public void* inArrayPtr => inHandle.AddrOfPinnedObject().ToPointer(); public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer(); GCHandle inHandle; GCHandle outHandle; public TestTable(T[] a, T[] b) { this.inArray = a; this.outArray = b; inHandle = GCHandle.Alloc(inArray, GCHandleType.Pinned); outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned); } public bool CheckResult(Func<T[], T[], bool> check) { return check(inArray, outArray); } public void Dispose() { inHandle.Free(); outHandle.Free(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics.X86; using System.Runtime.Intrinsics; namespace IntelHardwareIntrinsicTest { class Program { const int Pass = 100; const int Fail = 0; static unsafe int Main(string[] args) { int testResult = Pass; if (Sse2.IsSupported) { using (TestTable<double> doubleTable = new TestTable<double>(new double[2] { 1, -5 }, new double[2])) { var vf = Unsafe.Read<Vector128<double>>(doubleTable.inArrayPtr); Sse2.StoreLow((double*)(doubleTable.outArrayPtr), vf); if (!doubleTable.CheckResult((x, y) => BitConverter.DoubleToInt64Bits(x[0]) == BitConverter.DoubleToInt64Bits(y[0]) && BitConverter.DoubleToInt64Bits(y[1]) == 0)) { Console.WriteLine("Sse2 StoreLow failed on double:"); foreach (var item in doubleTable.outArray) { Console.Write(item + ", "); } Console.WriteLine(); testResult = Fail; } } } return testResult; } public unsafe struct TestTable<T> : IDisposable where T : struct { public T[] inArray; public T[] outArray; public void* inArrayPtr => inHandle.AddrOfPinnedObject().ToPointer(); public void* outArrayPtr => outHandle.AddrOfPinnedObject().ToPointer(); GCHandle inHandle; GCHandle outHandle; public TestTable(T[] a, T[] b) { this.inArray = a; this.outArray = b; inHandle = GCHandle.Alloc(inArray, GCHandleType.Pinned); outHandle = GCHandle.Alloc(outArray, GCHandleType.Pinned); } public bool CheckResult(Func<T[], T[], bool> check) { return check(inArray, outArray); } public void Dispose() { inHandle.Free(); outHandle.Free(); } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/jit64/localloc/eh/eh02.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /* * Test reading localloc variable from finally block. */ using System; using LocallocTesting; internal class LocallocTest { public static unsafe int Main() { bool testPassed = true; ulong local1 = Global.INITIAL_VALUE; ulong local2 = local1 + 1; int size = 0; #if LOCALLOC_SMALL Int32* intArray1 = stackalloc Int32[1]; Int32* intArray2 = stackalloc Int32[1]; size = 1; #elif LOCALLOC_LARGE Int32* intArray1 = stackalloc Int32[0x1000]; Int32* intArray2 = stackalloc Int32[0x1000]; size = 0x1000; #else Int32* intArray1 = stackalloc Int32[Global.stackAllocSize]; Int32* intArray2 = stackalloc Int32[Global.stackAllocSize]; size = Global.stackAllocSize; #endif try { try { Global.initializeStack(intArray1, size, 1000); Global.initializeStack(intArray2, size, 2000); throw new Exception("Test Exception"); } finally { if (!Global.verifyStack("intArray1", intArray1, size, 1000)) { testPassed = false; } if (!Global.verifyStack("intArray2", intArray2, size, 2000)) { testPassed = false; } } } catch { } if (!testPassed) return 1; if (!Global.verifyStack("intArray1", intArray1, size, 1000)) { return 1; } if (!Global.verifyStack("intArray2", intArray2, size, 2000)) { return 1; } if (!Global.verifyLocal("local1", local1, Global.INITIAL_VALUE)) { return 1; } if (!Global.verifyLocal("local2", local2, Global.INITIAL_VALUE + 1)) { return 1; } Console.WriteLine("Passed\n"); return 100; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /* * Test reading localloc variable from finally block. */ using System; using LocallocTesting; internal class LocallocTest { public static unsafe int Main() { bool testPassed = true; ulong local1 = Global.INITIAL_VALUE; ulong local2 = local1 + 1; int size = 0; #if LOCALLOC_SMALL Int32* intArray1 = stackalloc Int32[1]; Int32* intArray2 = stackalloc Int32[1]; size = 1; #elif LOCALLOC_LARGE Int32* intArray1 = stackalloc Int32[0x1000]; Int32* intArray2 = stackalloc Int32[0x1000]; size = 0x1000; #else Int32* intArray1 = stackalloc Int32[Global.stackAllocSize]; Int32* intArray2 = stackalloc Int32[Global.stackAllocSize]; size = Global.stackAllocSize; #endif try { try { Global.initializeStack(intArray1, size, 1000); Global.initializeStack(intArray2, size, 2000); throw new Exception("Test Exception"); } finally { if (!Global.verifyStack("intArray1", intArray1, size, 1000)) { testPassed = false; } if (!Global.verifyStack("intArray2", intArray2, size, 2000)) { testPassed = false; } } } catch { } if (!testPassed) return 1; if (!Global.verifyStack("intArray1", intArray1, size, 1000)) { return 1; } if (!Global.verifyStack("intArray2", intArray2, size, 2000)) { return 1; } if (!Global.verifyLocal("local1", local1, Global.INITIAL_VALUE)) { return 1; } if (!Global.verifyLocal("local2", local2, Global.INITIAL_VALUE + 1)) { return 1; } Console.WriteLine("Passed\n"); return 100; } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternBuilder.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Xml.XPath; using System.Xml.Schema; using System.Xml.Xsl.Qil; using System.Xml.Xsl.XPath; using System.Diagnostics.CodeAnalysis; namespace System.Xml.Xsl.Xslt { using T = XmlQueryTypeFactory; internal sealed class XPathPatternBuilder : XPathPatternParser.IPatternBuilder { private readonly XPathPredicateEnvironment _predicateEnvironment; private readonly XPathBuilder _predicateBuilder; private bool _inTheBuild; private readonly XPathQilFactory _f; private readonly QilNode _fixupNode; private readonly IXPathEnvironment _environment; public XPathPatternBuilder(IXPathEnvironment environment) { Debug.Assert(environment != null); _environment = environment; _f = environment.Factory; _predicateEnvironment = new XPathPredicateEnvironment(environment); _predicateBuilder = new XPathBuilder(_predicateEnvironment); _fixupNode = _f.Unknown(T.NodeNotRtfS); } public QilNode FixupNode { get { return _fixupNode; } } public void StartBuild() { Debug.Assert(!_inTheBuild, "XPathBuilder is busy!"); _inTheBuild = true; return; } [Conditional("DEBUG")] public void AssertFilter(QilLoop filter) { Debug.Assert(filter.NodeType == QilNodeType.Filter, "XPathPatternBuilder expected to generate list of Filters on top level"); Debug.Assert(filter.Variable.XmlType!.IsSubtypeOf(T.NodeNotRtf)); Debug.Assert(filter.Variable.Binding!.NodeType == QilNodeType.Unknown); // fixupNode Debug.Assert(filter.Body.XmlType!.IsSubtypeOf(T.Boolean)); } private void FixupFilterBinding(QilLoop filter, QilNode newBinding) { AssertFilter(filter); filter.Variable.Binding = newBinding; } [return: NotNullIfNotNull("result")] public QilNode? EndBuild(QilNode? result) { Debug.Assert(_inTheBuild, "StartBuild() wasn't called"); if (result == null) { // Special door to clean builder state in exception handlers } // All these variables will be positive for "false() and (. = position() + last())" // since QilPatternFactory eliminates the right operand of 'and' Debug.Assert(_predicateEnvironment.numFixupCurrent >= 0, "Context fixup error"); Debug.Assert(_predicateEnvironment.numFixupPosition >= 0, "Context fixup error"); Debug.Assert(_predicateEnvironment.numFixupLast >= 0, "Context fixup error"); _inTheBuild = false; return result; } public QilNode Operator(XPathOperator op, QilNode? left, QilNode? right) { Debug.Assert(op == XPathOperator.Union); Debug.Assert(left != null); Debug.Assert(right != null); // It is important to not create nested lists here Debug.Assert(right.NodeType == QilNodeType.Filter, "LocationPathPattern must be compiled into a filter"); if (left.NodeType == QilNodeType.Sequence) { ((QilList)left).Add(right); return left; } else { Debug.Assert(left.NodeType == QilNodeType.Filter, "LocationPathPattern must be compiled into a filter"); return _f.Sequence(left, right); } } private static QilLoop BuildAxisFilter(QilPatternFactory f, QilIterator itr, XPathAxis xpathAxis, XPathNodeType nodeType, string? name, string? nsUri) { QilNode nameTest = ( name != null && nsUri != null ? f.Eq(f.NameOf(itr), f.QName(name, nsUri)) : // ns:bar || bar nsUri != null ? f.Eq(f.NamespaceUriOf(itr), f.String(nsUri)) : // ns:* name != null ? f.Eq(f.LocalNameOf(itr), f.String(name)) : // *:foo /*name == nsUri == null*/ f.True() // * ); XmlNodeKindFlags intersection = XPathBuilder.AxisTypeMask(itr.XmlType!.NodeKinds, nodeType, xpathAxis); QilNode typeTest = ( intersection == 0 ? f.False() : // input & required doesn't intersect intersection == itr.XmlType.NodeKinds ? f.True() : // input is subset of required /*else*/ f.IsType(itr, T.NodeChoice(intersection)) ); QilLoop filter = f.BaseFactory.Filter(itr, f.And(typeTest, nameTest)); filter.XmlType = T.PrimeProduct(T.NodeChoice(intersection), filter.XmlType!.Cardinality); return filter; } public QilNode Axis(XPathAxis xpathAxis, XPathNodeType nodeType, string? prefix, string? name) { Debug.Assert( xpathAxis == XPathAxis.Child || xpathAxis == XPathAxis.Attribute || xpathAxis == XPathAxis.DescendantOrSelf || xpathAxis == XPathAxis.Root ); QilLoop result; double priority; switch (xpathAxis) { case XPathAxis.DescendantOrSelf: Debug.Assert(nodeType == XPathNodeType.All && prefix == null && name == null, " // is the only d-o-s axes that we can have in pattern"); return _f.Nop(_fixupNode); // We using Nop as a flag that DescendantOrSelf exis was used between steps. case XPathAxis.Root: QilIterator i; result = _f.BaseFactory.Filter(i = _f.For(_fixupNode), _f.IsType(i, T.Document)); priority = 0.5; break; default: string? nsUri = prefix == null ? null : _environment.ResolvePrefix(prefix); result = BuildAxisFilter(_f, _f.For(_fixupNode), xpathAxis, nodeType, name, nsUri); switch (nodeType) { case XPathNodeType.Element: case XPathNodeType.Attribute: if (name != null) { priority = 0; } else { if (prefix != null) { priority = -0.25; } else { priority = -0.5; } } break; case XPathNodeType.ProcessingInstruction: priority = name != null ? 0 : -0.5; break; default: priority = -0.5; break; } break; } SetPriority(result, priority); SetLastParent(result, result); return result; } // a/b/c -> self::c[parent::b[parent::a]] // a/b//c -> self::c[ancestor::b[parent::a]] // a/b -> self::b[parent::a] // -> JoinStep(Axis('a'), Axis('b')) // -> Filter('b' & Parent(Filter('a'))) // a//b // -> JoinStep(Axis('a'), JoingStep(Axis(DescendantOrSelf), Axis('b'))) // -> JoinStep(Filter('a'), JoingStep(Nop(null), Filter('b'))) // -> JoinStep(Filter('a'), Nop(Filter('b'))) // -> Filter('b' & Ancestor(Filter('a'))) public QilNode JoinStep(QilNode left, QilNode right) { Debug.Assert(left != null); Debug.Assert(right != null); if (left.NodeType == QilNodeType.Nop) { QilUnary nop = (QilUnary)left; Debug.Assert(nop.Child == _fixupNode); nop.Child = right; // We use Nop as a flag that DescendantOrSelf axis was used between steps. return nop; } Debug.Assert(GetLastParent(left) == left, "Left is always single axis and never the step"); Debug.Assert(left.NodeType == QilNodeType.Filter); CleanAnnotation(left); QilLoop parentFilter = (QilLoop)left; bool ancestor = false; { if (right.NodeType == QilNodeType.Nop) { ancestor = true; QilUnary nop = (QilUnary)right; Debug.Assert(nop.Child != null); right = nop.Child; } } Debug.Assert(right.NodeType == QilNodeType.Filter); QilLoop? lastParent = GetLastParent(right); Debug.Assert(lastParent != null); FixupFilterBinding(parentFilter, ancestor ? _f.Ancestor(lastParent.Variable) : _f.Parent(lastParent.Variable)); lastParent.Body = _f.And(lastParent.Body, _f.Not(_f.IsEmpty(parentFilter))); SetPriority(right, 0.5); SetLastParent(right, parentFilter); return right; } QilNode IXPathBuilder<QilNode>.Predicate(QilNode node, QilNode condition, bool isReverseStep) { Debug.Fail("Should not call to this function."); return null; } //The structure of result is a Filter, variable is current node, body is the match condition. //Previous predicate build logic in XPathPatternBuilder is match from right to left, which have 2^n complexiy when have lots of position predicates. TFS #368771 //Now change the logic to: If predicates contains position/last predicates, given the current node, filter out all the nodes that match the predicates, //and then check if current node is in the result set. public QilNode BuildPredicates(QilNode nodeset, List<QilNode> predicates) { //convert predicates to boolean type List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count); foreach (var predicate in predicates) { convertedPredicates.Add(XPathBuilder.PredicateToBoolean(predicate, _f, _predicateEnvironment)); } QilLoop nodeFilter = (QilLoop)nodeset; QilIterator current = nodeFilter.Variable; //If no last() and position() in predicates, use nodeFilter.Variable to fixup current //because all the predicates only based on the input variable, no matter what other predicates are. if (_predicateEnvironment.numFixupLast == 0 && _predicateEnvironment.numFixupPosition == 0) { foreach (var predicate in convertedPredicates) { nodeFilter.Body = _f.And(nodeFilter.Body, predicate); } nodeFilter.Body = _predicateEnvironment.fixupVisitor.Fixup(nodeFilter.Body, current, null); } //If any preidcate contains last() or position() node, then the current node is based on previous predicates, //for instance, a[...][2] is match second node after filter 'a[...]' instead of second 'a'. else { //filter out the siblings QilIterator parentIter = _f.For(_f.Parent(current)); QilNode sibling = _f.Content(parentIter); //generate filter based on input filter QilLoop siblingFilter = (QilLoop)nodeset.DeepClone(_f.BaseFactory); siblingFilter.Variable.Binding = sibling; siblingFilter = (QilLoop)_f.Loop(parentIter, siblingFilter); //build predicates from left to right to get all the matching nodes QilNode matchingSet = siblingFilter; foreach (var predicate in convertedPredicates) { matchingSet = XPathBuilder.BuildOnePredicate(matchingSet, predicate, /*isReverseStep*/false, _f, _predicateEnvironment.fixupVisitor, ref _predicateEnvironment.numFixupCurrent, ref _predicateEnvironment.numFixupPosition, ref _predicateEnvironment.numFixupLast); } //check if the matching nodes contains the current node QilIterator matchNodeIter = _f.For(matchingSet); QilNode filterCurrent = _f.Filter(matchNodeIter, _f.Is(matchNodeIter, current)); nodeFilter.Body = _f.Not(_f.IsEmpty(filterCurrent)); //for passing type check, explicit say the result is target type nodeFilter.Body = _f.And(_f.IsType(current, nodeFilter.XmlType!), nodeFilter.Body); } SetPriority(nodeset, 0.5); return nodeset; } public QilNode Function(string prefix, string name, IList<QilNode> args) { Debug.Assert(prefix.Length == 0); QilIterator i = _f.For(_fixupNode); QilNode matches; if (name == "id") { Debug.Assert( args.Count == 1 && args[0].NodeType == QilNodeType.LiteralString, "Function id() must have one literal string argument" ); matches = _f.Id(i, args[0]); } else { Debug.Assert(name == "key", "Unexpected function"); Debug.Assert( args.Count == 2 && args[0].NodeType == QilNodeType.LiteralString && args[1].NodeType == QilNodeType.LiteralString, "Function key() must have two literal string arguments" ); matches = _environment.ResolveFunction(prefix, name, args, new XsltFunctionFocus(i)); } QilIterator j; QilLoop result = _f.BaseFactory.Filter(i, _f.Not(_f.IsEmpty(_f.Filter(j = _f.For(matches), _f.Is(j, i))))); SetPriority(result, 0.5); SetLastParent(result, result); return result; } public QilNode String(string value) { return _f.String(value); } // As argument of id() or key() function public QilNode Number(double value) { //Internal Error: Literal number is not allowed in XSLT pattern outside of predicate. throw new XmlException(SR.Xml_InternalError); } public QilNode Variable(string prefix, string name) { //Internal Error: Variable is not allowed in XSLT pattern outside of predicate. throw new XmlException(SR.Xml_InternalError); } // -------------------------------------- Priority / Parent --------------------------------------- private sealed class Annotation { public double Priority; public QilLoop? Parent; } public static void SetPriority(QilNode node, double priority) { Annotation ann = (Annotation?)node.Annotation ?? new Annotation(); ann.Priority = priority; node.Annotation = ann; } public static double GetPriority(QilNode node) { return ((Annotation)node.Annotation!).Priority; } private static void SetLastParent(QilNode node, QilLoop parent) { Debug.Assert(parent.NodeType == QilNodeType.Filter); Annotation ann = (Annotation?)node.Annotation ?? new Annotation(); ann.Parent = parent; node.Annotation = ann; } private static QilLoop? GetLastParent(QilNode node) { return ((Annotation)node.Annotation!).Parent; } public static void CleanAnnotation(QilNode node) { node.Annotation = null; } // -------------------------------------- GetPredicateBuilder() --------------------------------------- public IXPathBuilder<QilNode> GetPredicateBuilder(QilNode ctx) { QilLoop context = (QilLoop)ctx; Debug.Assert(context != null, "Predicate always has step so it can't have context == null"); Debug.Assert(context.Variable.NodeType == QilNodeType.For, "It shouldn't be Let, becaus predicates in PatternBuilder don't produce cached tuples."); return _predicateBuilder; } private sealed class XPathPredicateEnvironment : IXPathEnvironment { private readonly IXPathEnvironment _baseEnvironment; private readonly XPathQilFactory _f; public readonly XPathBuilder.FixupVisitor fixupVisitor; private readonly QilNode _fixupCurrent, _fixupPosition, _fixupLast; // Number of unresolved fixup nodes public int numFixupCurrent, numFixupPosition, numFixupLast; public XPathPredicateEnvironment(IXPathEnvironment baseEnvironment) { _baseEnvironment = baseEnvironment; _f = baseEnvironment.Factory; _fixupCurrent = _f.Unknown(T.NodeNotRtf); _fixupPosition = _f.Unknown(T.DoubleX); _fixupLast = _f.Unknown(T.DoubleX); this.fixupVisitor = new XPathBuilder.FixupVisitor(_f, _fixupCurrent, _fixupPosition, _fixupLast); } /* ---------------------------------------------------------------------------- IXPathEnvironment interface */ public XPathQilFactory Factory { get { return _f; } } public QilNode ResolveVariable(string prefix, string name) { return _baseEnvironment.ResolveVariable(prefix, name); } public QilNode ResolveFunction(string prefix, string name, IList<QilNode> args, IFocus env) { return _baseEnvironment.ResolveFunction(prefix, name, args, env); } public string ResolvePrefix(string prefix) { return _baseEnvironment.ResolvePrefix(prefix); } public QilNode GetCurrent() { numFixupCurrent++; return _fixupCurrent; } public QilNode GetPosition() { numFixupPosition++; return _fixupPosition; } public QilNode GetLast() { numFixupLast++; return _fixupLast; } } private sealed class XsltFunctionFocus : IFocus { private readonly QilIterator _current; public XsltFunctionFocus(QilIterator current) { Debug.Assert(current != null); _current = current; } /* ---------------------------------------------------------------------------- IFocus interface */ public QilNode GetCurrent() { return _current; } public QilNode GetPosition() { Debug.Fail("GetPosition() must not be called"); return null; } public QilNode GetLast() { Debug.Fail("GetLast() must not be called"); return null; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Xml.XPath; using System.Xml.Schema; using System.Xml.Xsl.Qil; using System.Xml.Xsl.XPath; using System.Diagnostics.CodeAnalysis; namespace System.Xml.Xsl.Xslt { using T = XmlQueryTypeFactory; internal sealed class XPathPatternBuilder : XPathPatternParser.IPatternBuilder { private readonly XPathPredicateEnvironment _predicateEnvironment; private readonly XPathBuilder _predicateBuilder; private bool _inTheBuild; private readonly XPathQilFactory _f; private readonly QilNode _fixupNode; private readonly IXPathEnvironment _environment; public XPathPatternBuilder(IXPathEnvironment environment) { Debug.Assert(environment != null); _environment = environment; _f = environment.Factory; _predicateEnvironment = new XPathPredicateEnvironment(environment); _predicateBuilder = new XPathBuilder(_predicateEnvironment); _fixupNode = _f.Unknown(T.NodeNotRtfS); } public QilNode FixupNode { get { return _fixupNode; } } public void StartBuild() { Debug.Assert(!_inTheBuild, "XPathBuilder is busy!"); _inTheBuild = true; return; } [Conditional("DEBUG")] public void AssertFilter(QilLoop filter) { Debug.Assert(filter.NodeType == QilNodeType.Filter, "XPathPatternBuilder expected to generate list of Filters on top level"); Debug.Assert(filter.Variable.XmlType!.IsSubtypeOf(T.NodeNotRtf)); Debug.Assert(filter.Variable.Binding!.NodeType == QilNodeType.Unknown); // fixupNode Debug.Assert(filter.Body.XmlType!.IsSubtypeOf(T.Boolean)); } private void FixupFilterBinding(QilLoop filter, QilNode newBinding) { AssertFilter(filter); filter.Variable.Binding = newBinding; } [return: NotNullIfNotNull("result")] public QilNode? EndBuild(QilNode? result) { Debug.Assert(_inTheBuild, "StartBuild() wasn't called"); if (result == null) { // Special door to clean builder state in exception handlers } // All these variables will be positive for "false() and (. = position() + last())" // since QilPatternFactory eliminates the right operand of 'and' Debug.Assert(_predicateEnvironment.numFixupCurrent >= 0, "Context fixup error"); Debug.Assert(_predicateEnvironment.numFixupPosition >= 0, "Context fixup error"); Debug.Assert(_predicateEnvironment.numFixupLast >= 0, "Context fixup error"); _inTheBuild = false; return result; } public QilNode Operator(XPathOperator op, QilNode? left, QilNode? right) { Debug.Assert(op == XPathOperator.Union); Debug.Assert(left != null); Debug.Assert(right != null); // It is important to not create nested lists here Debug.Assert(right.NodeType == QilNodeType.Filter, "LocationPathPattern must be compiled into a filter"); if (left.NodeType == QilNodeType.Sequence) { ((QilList)left).Add(right); return left; } else { Debug.Assert(left.NodeType == QilNodeType.Filter, "LocationPathPattern must be compiled into a filter"); return _f.Sequence(left, right); } } private static QilLoop BuildAxisFilter(QilPatternFactory f, QilIterator itr, XPathAxis xpathAxis, XPathNodeType nodeType, string? name, string? nsUri) { QilNode nameTest = ( name != null && nsUri != null ? f.Eq(f.NameOf(itr), f.QName(name, nsUri)) : // ns:bar || bar nsUri != null ? f.Eq(f.NamespaceUriOf(itr), f.String(nsUri)) : // ns:* name != null ? f.Eq(f.LocalNameOf(itr), f.String(name)) : // *:foo /*name == nsUri == null*/ f.True() // * ); XmlNodeKindFlags intersection = XPathBuilder.AxisTypeMask(itr.XmlType!.NodeKinds, nodeType, xpathAxis); QilNode typeTest = ( intersection == 0 ? f.False() : // input & required doesn't intersect intersection == itr.XmlType.NodeKinds ? f.True() : // input is subset of required /*else*/ f.IsType(itr, T.NodeChoice(intersection)) ); QilLoop filter = f.BaseFactory.Filter(itr, f.And(typeTest, nameTest)); filter.XmlType = T.PrimeProduct(T.NodeChoice(intersection), filter.XmlType!.Cardinality); return filter; } public QilNode Axis(XPathAxis xpathAxis, XPathNodeType nodeType, string? prefix, string? name) { Debug.Assert( xpathAxis == XPathAxis.Child || xpathAxis == XPathAxis.Attribute || xpathAxis == XPathAxis.DescendantOrSelf || xpathAxis == XPathAxis.Root ); QilLoop result; double priority; switch (xpathAxis) { case XPathAxis.DescendantOrSelf: Debug.Assert(nodeType == XPathNodeType.All && prefix == null && name == null, " // is the only d-o-s axes that we can have in pattern"); return _f.Nop(_fixupNode); // We using Nop as a flag that DescendantOrSelf exis was used between steps. case XPathAxis.Root: QilIterator i; result = _f.BaseFactory.Filter(i = _f.For(_fixupNode), _f.IsType(i, T.Document)); priority = 0.5; break; default: string? nsUri = prefix == null ? null : _environment.ResolvePrefix(prefix); result = BuildAxisFilter(_f, _f.For(_fixupNode), xpathAxis, nodeType, name, nsUri); switch (nodeType) { case XPathNodeType.Element: case XPathNodeType.Attribute: if (name != null) { priority = 0; } else { if (prefix != null) { priority = -0.25; } else { priority = -0.5; } } break; case XPathNodeType.ProcessingInstruction: priority = name != null ? 0 : -0.5; break; default: priority = -0.5; break; } break; } SetPriority(result, priority); SetLastParent(result, result); return result; } // a/b/c -> self::c[parent::b[parent::a]] // a/b//c -> self::c[ancestor::b[parent::a]] // a/b -> self::b[parent::a] // -> JoinStep(Axis('a'), Axis('b')) // -> Filter('b' & Parent(Filter('a'))) // a//b // -> JoinStep(Axis('a'), JoingStep(Axis(DescendantOrSelf), Axis('b'))) // -> JoinStep(Filter('a'), JoingStep(Nop(null), Filter('b'))) // -> JoinStep(Filter('a'), Nop(Filter('b'))) // -> Filter('b' & Ancestor(Filter('a'))) public QilNode JoinStep(QilNode left, QilNode right) { Debug.Assert(left != null); Debug.Assert(right != null); if (left.NodeType == QilNodeType.Nop) { QilUnary nop = (QilUnary)left; Debug.Assert(nop.Child == _fixupNode); nop.Child = right; // We use Nop as a flag that DescendantOrSelf axis was used between steps. return nop; } Debug.Assert(GetLastParent(left) == left, "Left is always single axis and never the step"); Debug.Assert(left.NodeType == QilNodeType.Filter); CleanAnnotation(left); QilLoop parentFilter = (QilLoop)left; bool ancestor = false; { if (right.NodeType == QilNodeType.Nop) { ancestor = true; QilUnary nop = (QilUnary)right; Debug.Assert(nop.Child != null); right = nop.Child; } } Debug.Assert(right.NodeType == QilNodeType.Filter); QilLoop? lastParent = GetLastParent(right); Debug.Assert(lastParent != null); FixupFilterBinding(parentFilter, ancestor ? _f.Ancestor(lastParent.Variable) : _f.Parent(lastParent.Variable)); lastParent.Body = _f.And(lastParent.Body, _f.Not(_f.IsEmpty(parentFilter))); SetPriority(right, 0.5); SetLastParent(right, parentFilter); return right; } QilNode IXPathBuilder<QilNode>.Predicate(QilNode node, QilNode condition, bool isReverseStep) { Debug.Fail("Should not call to this function."); return null; } //The structure of result is a Filter, variable is current node, body is the match condition. //Previous predicate build logic in XPathPatternBuilder is match from right to left, which have 2^n complexiy when have lots of position predicates. TFS #368771 //Now change the logic to: If predicates contains position/last predicates, given the current node, filter out all the nodes that match the predicates, //and then check if current node is in the result set. public QilNode BuildPredicates(QilNode nodeset, List<QilNode> predicates) { //convert predicates to boolean type List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count); foreach (var predicate in predicates) { convertedPredicates.Add(XPathBuilder.PredicateToBoolean(predicate, _f, _predicateEnvironment)); } QilLoop nodeFilter = (QilLoop)nodeset; QilIterator current = nodeFilter.Variable; //If no last() and position() in predicates, use nodeFilter.Variable to fixup current //because all the predicates only based on the input variable, no matter what other predicates are. if (_predicateEnvironment.numFixupLast == 0 && _predicateEnvironment.numFixupPosition == 0) { foreach (var predicate in convertedPredicates) { nodeFilter.Body = _f.And(nodeFilter.Body, predicate); } nodeFilter.Body = _predicateEnvironment.fixupVisitor.Fixup(nodeFilter.Body, current, null); } //If any preidcate contains last() or position() node, then the current node is based on previous predicates, //for instance, a[...][2] is match second node after filter 'a[...]' instead of second 'a'. else { //filter out the siblings QilIterator parentIter = _f.For(_f.Parent(current)); QilNode sibling = _f.Content(parentIter); //generate filter based on input filter QilLoop siblingFilter = (QilLoop)nodeset.DeepClone(_f.BaseFactory); siblingFilter.Variable.Binding = sibling; siblingFilter = (QilLoop)_f.Loop(parentIter, siblingFilter); //build predicates from left to right to get all the matching nodes QilNode matchingSet = siblingFilter; foreach (var predicate in convertedPredicates) { matchingSet = XPathBuilder.BuildOnePredicate(matchingSet, predicate, /*isReverseStep*/false, _f, _predicateEnvironment.fixupVisitor, ref _predicateEnvironment.numFixupCurrent, ref _predicateEnvironment.numFixupPosition, ref _predicateEnvironment.numFixupLast); } //check if the matching nodes contains the current node QilIterator matchNodeIter = _f.For(matchingSet); QilNode filterCurrent = _f.Filter(matchNodeIter, _f.Is(matchNodeIter, current)); nodeFilter.Body = _f.Not(_f.IsEmpty(filterCurrent)); //for passing type check, explicit say the result is target type nodeFilter.Body = _f.And(_f.IsType(current, nodeFilter.XmlType!), nodeFilter.Body); } SetPriority(nodeset, 0.5); return nodeset; } public QilNode Function(string prefix, string name, IList<QilNode> args) { Debug.Assert(prefix.Length == 0); QilIterator i = _f.For(_fixupNode); QilNode matches; if (name == "id") { Debug.Assert( args.Count == 1 && args[0].NodeType == QilNodeType.LiteralString, "Function id() must have one literal string argument" ); matches = _f.Id(i, args[0]); } else { Debug.Assert(name == "key", "Unexpected function"); Debug.Assert( args.Count == 2 && args[0].NodeType == QilNodeType.LiteralString && args[1].NodeType == QilNodeType.LiteralString, "Function key() must have two literal string arguments" ); matches = _environment.ResolveFunction(prefix, name, args, new XsltFunctionFocus(i)); } QilIterator j; QilLoop result = _f.BaseFactory.Filter(i, _f.Not(_f.IsEmpty(_f.Filter(j = _f.For(matches), _f.Is(j, i))))); SetPriority(result, 0.5); SetLastParent(result, result); return result; } public QilNode String(string value) { return _f.String(value); } // As argument of id() or key() function public QilNode Number(double value) { //Internal Error: Literal number is not allowed in XSLT pattern outside of predicate. throw new XmlException(SR.Xml_InternalError); } public QilNode Variable(string prefix, string name) { //Internal Error: Variable is not allowed in XSLT pattern outside of predicate. throw new XmlException(SR.Xml_InternalError); } // -------------------------------------- Priority / Parent --------------------------------------- private sealed class Annotation { public double Priority; public QilLoop? Parent; } public static void SetPriority(QilNode node, double priority) { Annotation ann = (Annotation?)node.Annotation ?? new Annotation(); ann.Priority = priority; node.Annotation = ann; } public static double GetPriority(QilNode node) { return ((Annotation)node.Annotation!).Priority; } private static void SetLastParent(QilNode node, QilLoop parent) { Debug.Assert(parent.NodeType == QilNodeType.Filter); Annotation ann = (Annotation?)node.Annotation ?? new Annotation(); ann.Parent = parent; node.Annotation = ann; } private static QilLoop? GetLastParent(QilNode node) { return ((Annotation)node.Annotation!).Parent; } public static void CleanAnnotation(QilNode node) { node.Annotation = null; } // -------------------------------------- GetPredicateBuilder() --------------------------------------- public IXPathBuilder<QilNode> GetPredicateBuilder(QilNode ctx) { QilLoop context = (QilLoop)ctx; Debug.Assert(context != null, "Predicate always has step so it can't have context == null"); Debug.Assert(context.Variable.NodeType == QilNodeType.For, "It shouldn't be Let, becaus predicates in PatternBuilder don't produce cached tuples."); return _predicateBuilder; } private sealed class XPathPredicateEnvironment : IXPathEnvironment { private readonly IXPathEnvironment _baseEnvironment; private readonly XPathQilFactory _f; public readonly XPathBuilder.FixupVisitor fixupVisitor; private readonly QilNode _fixupCurrent, _fixupPosition, _fixupLast; // Number of unresolved fixup nodes public int numFixupCurrent, numFixupPosition, numFixupLast; public XPathPredicateEnvironment(IXPathEnvironment baseEnvironment) { _baseEnvironment = baseEnvironment; _f = baseEnvironment.Factory; _fixupCurrent = _f.Unknown(T.NodeNotRtf); _fixupPosition = _f.Unknown(T.DoubleX); _fixupLast = _f.Unknown(T.DoubleX); this.fixupVisitor = new XPathBuilder.FixupVisitor(_f, _fixupCurrent, _fixupPosition, _fixupLast); } /* ---------------------------------------------------------------------------- IXPathEnvironment interface */ public XPathQilFactory Factory { get { return _f; } } public QilNode ResolveVariable(string prefix, string name) { return _baseEnvironment.ResolveVariable(prefix, name); } public QilNode ResolveFunction(string prefix, string name, IList<QilNode> args, IFocus env) { return _baseEnvironment.ResolveFunction(prefix, name, args, env); } public string ResolvePrefix(string prefix) { return _baseEnvironment.ResolvePrefix(prefix); } public QilNode GetCurrent() { numFixupCurrent++; return _fixupCurrent; } public QilNode GetPosition() { numFixupPosition++; return _fixupPosition; } public QilNode GetLast() { numFixupLast++; return _fixupLast; } } private sealed class XsltFunctionFocus : IFocus { private readonly QilIterator _current; public XsltFunctionFocus(QilIterator current) { Debug.Assert(current != null); _current = current; } /* ---------------------------------------------------------------------------- IFocus interface */ public QilNode GetCurrent() { return _current; } public QilNode GetPosition() { Debug.Fail("GetPosition() must not be called"); return null; } public QilNode GetLast() { Debug.Fail("GetLast() must not be called"); return null; } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ComTypes/IStream.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.InteropServices.ComTypes { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct STATSTG { public string pwcsName; public int type; public long cbSize; public FILETIME mtime; public FILETIME ctime; public FILETIME atime; public int grfMode; public int grfLocksSupported; public Guid clsid; public int grfStateBits; public int reserved; } [Guid("0000000c-0000-0000-C000-000000000046")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] public interface IStream { // ISequentialStream portion void Read([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), Out] byte[] pv, int cb, IntPtr pcbRead); void Write([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] byte[] pv, int cb, IntPtr pcbWritten); // IStream portion void Seek(long dlibMove, int dwOrigin, IntPtr plibNewPosition); void SetSize(long libNewSize); void CopyTo(IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten); void Commit(int grfCommitFlags); void Revert(); void LockRegion(long libOffset, long cb, int dwLockType); void UnlockRegion(long libOffset, long cb, int dwLockType); void Stat(out STATSTG pstatstg, int grfStatFlag); void Clone(out IStream ppstm); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.InteropServices.ComTypes { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct STATSTG { public string pwcsName; public int type; public long cbSize; public FILETIME mtime; public FILETIME ctime; public FILETIME atime; public int grfMode; public int grfLocksSupported; public Guid clsid; public int grfStateBits; public int reserved; } [Guid("0000000c-0000-0000-C000-000000000046")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [ComImport] public interface IStream { // ISequentialStream portion void Read([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1), Out] byte[] pv, int cb, IntPtr pcbRead); void Write([MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] byte[] pv, int cb, IntPtr pcbWritten); // IStream portion void Seek(long dlibMove, int dwOrigin, IntPtr plibNewPosition); void SetSize(long libNewSize); void CopyTo(IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten); void Commit(int grfCommitFlags); void Revert(); void LockRegion(long libOffset, long cb, int dwLockType); void UnlockRegion(long libOffset, long cb, int dwLockType); void Stat(out STATSTG pstatstg, int grfStatFlag); void Clone(out IStream ppstm); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/Loader/binding/tracing/Resource.fr-FR.resx
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="Message" xml:space="preserve"> <value>FR-FR</value> </data> </root>
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="Message" xml:space="preserve"> <value>FR-FR</value> </data> </root>
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Private.Xml/tests/Writers/XmlWriterApi/TCWriteBuffer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using OLEDB.Test.ModuleCore; using Xunit; namespace System.Xml.Tests { public abstract class TCWriteBuffer { public void VerifyInvalidWrite(XmlWriterUtils utils, string methodName, int iBufferSize, int iIndex, int iCount, Type exceptionType) { byte[] byteBuffer = new byte[iBufferSize]; for (int i = 0; i < iBufferSize; i++) byteBuffer[i] = (byte)(i + '0'); char[] charBuffer = new char[iBufferSize]; for (int i = 0; i < iBufferSize; i++) charBuffer[i] = (char)(i + '0'); XmlWriter w = utils.CreateWriter(); w.WriteStartElement("root"); try { switch (methodName) { case "WriteBase64": w.WriteBase64(byteBuffer, iIndex, iCount); break; case "WriteRaw": w.WriteRaw(charBuffer, iIndex, iCount); break; case "WriteBinHex": w.WriteBinHex(byteBuffer, iIndex, iCount); break; case "WriteChars": w.WriteChars(charBuffer, iIndex, iCount); break; default: CError.Compare(false, "Unexpected method name " + methodName); break; } } catch (Exception e) { CError.WriteLineIgnore("Exception: " + e.ToString()); if (exceptionType.FullName.Equals(e.GetType().FullName)) { return; } else { CError.WriteLine("Did not throw exception of type {0}", exceptionType); } } w.Flush(); Assert.True(false, "Expected exception"); } public byte[] StringToByteArray(string src) { byte[] base64 = new byte[src.Length * 2]; for (int i = 0; i < src.Length; i++) { byte[] temp = System.BitConverter.GetBytes(src[i]); base64[2 * i] = temp[0]; base64[2 * i + 1] = temp[1]; } return base64; } public static void ensureSpace(ref byte[] buffer, int len) { if (len >= buffer.Length) { int originalLen = buffer.Length; byte[] newBuffer = new byte[(int)(len * 2)]; for (int i = 0; i < originalLen; newBuffer[i] = buffer[i++]) { // Intentionally Empty } buffer = newBuffer; } } public static void WriteToBuffer(ref byte[] destBuff, ref int len, byte srcByte) { ensureSpace(ref destBuff, len); destBuff[len++] = srcByte; } public static void WriteToBuffer(ref byte[] destBuff, ref int len, byte[] srcBuff) { int srcArrayLen = srcBuff.Length; WriteToBuffer(ref destBuff, ref len, srcBuff, 0, (int)srcArrayLen); } public static void WriteToBuffer(ref byte[] destBuff, ref int destStart, byte[] srcBuff, int srcStart, int count) { ensureSpace(ref destBuff, destStart + count - 1); for (int i = srcStart; i < srcStart + count; i++) { destBuff[destStart++] = srcBuff[i]; } } public static void WriteToBuffer(ref byte[] destBuffer, ref int destBuffLen, string strValue) { for (int i = 0; i < strValue.Length; i++) { WriteToBuffer(ref destBuffer, ref destBuffLen, System.BitConverter.GetBytes(strValue[i])); } WriteToBuffer(ref destBuffer, ref destBuffLen, System.BitConverter.GetBytes('\0')); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using OLEDB.Test.ModuleCore; using Xunit; namespace System.Xml.Tests { public abstract class TCWriteBuffer { public void VerifyInvalidWrite(XmlWriterUtils utils, string methodName, int iBufferSize, int iIndex, int iCount, Type exceptionType) { byte[] byteBuffer = new byte[iBufferSize]; for (int i = 0; i < iBufferSize; i++) byteBuffer[i] = (byte)(i + '0'); char[] charBuffer = new char[iBufferSize]; for (int i = 0; i < iBufferSize; i++) charBuffer[i] = (char)(i + '0'); XmlWriter w = utils.CreateWriter(); w.WriteStartElement("root"); try { switch (methodName) { case "WriteBase64": w.WriteBase64(byteBuffer, iIndex, iCount); break; case "WriteRaw": w.WriteRaw(charBuffer, iIndex, iCount); break; case "WriteBinHex": w.WriteBinHex(byteBuffer, iIndex, iCount); break; case "WriteChars": w.WriteChars(charBuffer, iIndex, iCount); break; default: CError.Compare(false, "Unexpected method name " + methodName); break; } } catch (Exception e) { CError.WriteLineIgnore("Exception: " + e.ToString()); if (exceptionType.FullName.Equals(e.GetType().FullName)) { return; } else { CError.WriteLine("Did not throw exception of type {0}", exceptionType); } } w.Flush(); Assert.True(false, "Expected exception"); } public byte[] StringToByteArray(string src) { byte[] base64 = new byte[src.Length * 2]; for (int i = 0; i < src.Length; i++) { byte[] temp = System.BitConverter.GetBytes(src[i]); base64[2 * i] = temp[0]; base64[2 * i + 1] = temp[1]; } return base64; } public static void ensureSpace(ref byte[] buffer, int len) { if (len >= buffer.Length) { int originalLen = buffer.Length; byte[] newBuffer = new byte[(int)(len * 2)]; for (int i = 0; i < originalLen; newBuffer[i] = buffer[i++]) { // Intentionally Empty } buffer = newBuffer; } } public static void WriteToBuffer(ref byte[] destBuff, ref int len, byte srcByte) { ensureSpace(ref destBuff, len); destBuff[len++] = srcByte; } public static void WriteToBuffer(ref byte[] destBuff, ref int len, byte[] srcBuff) { int srcArrayLen = srcBuff.Length; WriteToBuffer(ref destBuff, ref len, srcBuff, 0, (int)srcArrayLen); } public static void WriteToBuffer(ref byte[] destBuff, ref int destStart, byte[] srcBuff, int srcStart, int count) { ensureSpace(ref destBuff, destStart + count - 1); for (int i = srcStart; i < srcStart + count; i++) { destBuff[destStart++] = srcBuff[i]; } } public static void WriteToBuffer(ref byte[] destBuffer, ref int destBuffLen, string strValue) { for (int i = 0; i < strValue.Length; i++) { WriteToBuffer(ref destBuffer, ref destBuffLen, System.BitConverter.GetBytes(strValue[i])); } WriteToBuffer(ref destBuffer, ref destBuffLen, System.BitConverter.GetBytes('\0')); } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/jit64/valuetypes/nullable/castclass/interface/castclass-interface015.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // <Area> Nullable - CastClass </Area> // <Title> Nullable type with castclass expr </Title> // <Description> // checking type of ulong using cast expr // </Description> // <RelatedBugs> </RelatedBugs> //<Expects Status=success></Expects> // <Code> using System.Runtime.InteropServices; using System; internal class NullableTest { private static bool BoxUnboxToNQ(object o) { return Helper.Compare((ulong)(IComparable)o, Helper.Create(default(ulong))); } private static bool BoxUnboxToQ(object o) { return Helper.Compare((ulong?)(IComparable)o, Helper.Create(default(ulong))); } private static int Main() { ulong? s = Helper.Create(default(ulong)); if (BoxUnboxToNQ(s) && BoxUnboxToQ(s)) return ExitCode.Passed; else return ExitCode.Failed; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // <Area> Nullable - CastClass </Area> // <Title> Nullable type with castclass expr </Title> // <Description> // checking type of ulong using cast expr // </Description> // <RelatedBugs> </RelatedBugs> //<Expects Status=success></Expects> // <Code> using System.Runtime.InteropServices; using System; internal class NullableTest { private static bool BoxUnboxToNQ(object o) { return Helper.Compare((ulong)(IComparable)o, Helper.Create(default(ulong))); } private static bool BoxUnboxToQ(object o) { return Helper.Compare((ulong?)(IComparable)o, Helper.Create(default(ulong))); } private static int Main() { ulong? s = Helper.Create(default(ulong)); if (BoxUnboxToNQ(s) && BoxUnboxToQ(s)) return ExitCode.Passed; else return ExitCode.Failed; } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/HardwareIntrinsics/General/Vector64_1/op_OnesComplement.UInt16.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_OnesComplementUInt16() { var test = new VectorUnaryOpTest__op_OnesComplementUInt16(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorUnaryOpTest__op_OnesComplementUInt16 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<UInt16> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); return testStruct; } public void RunStructFldScenario(VectorUnaryOpTest__op_OnesComplementUInt16 testClass) { var result = ~_fld1; Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static Vector64<UInt16> _clsVar1; private Vector64<UInt16> _fld1; private DataTable _dataTable; static VectorUnaryOpTest__op_OnesComplementUInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); } public VectorUnaryOpTest__op_OnesComplementUInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, new UInt16[RetElementCount], LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = ~Unsafe.Read<Vector64<UInt16>>(_dataTable.inArray1Ptr); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector64<UInt16>).GetMethod("op_OnesComplement", new Type[] { typeof(Vector64<UInt16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<UInt16>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = ~_clsVar1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<UInt16>>(_dataTable.inArray1Ptr); var result = ~op1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorUnaryOpTest__op_OnesComplementUInt16(); var result = ~test._fld1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = ~_fld1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = ~test._fld1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector64<UInt16> op1, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(UInt16[] firstOp, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != (ushort)(~firstOp[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != (ushort)(~firstOp[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.op_OnesComplement<UInt16>(Vector64<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_OnesComplementUInt16() { var test = new VectorUnaryOpTest__op_OnesComplementUInt16(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorUnaryOpTest__op_OnesComplementUInt16 { private struct DataTable { private byte[] inArray1; private byte[] outArray; private GCHandle inHandle1; private GCHandle outHandle; private ulong alignment; public DataTable(UInt16[] inArray1, UInt16[] outArray, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt16>(); int sizeOfoutArray = outArray.Length * Unsafe.SizeOf<UInt16>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfoutArray) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.outArray = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.outHandle = GCHandle.Alloc(this.outArray, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt16, byte>(ref inArray1[0]), (uint)sizeOfinArray1); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* outArrayPtr => Align((byte*)(outHandle.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); outHandle.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector64<UInt16> _fld1; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt16>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); return testStruct; } public void RunStructFldScenario(VectorUnaryOpTest__op_OnesComplementUInt16 testClass) { var result = ~_fld1; Unsafe.Write(testClass._dataTable.outArrayPtr, result); testClass.ValidateResult(_fld1, testClass._dataTable.outArrayPtr); } } private static readonly int LargestVectorSize = 8; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector64<UInt16>>() / sizeof(UInt16); private static readonly int RetElementCount = Unsafe.SizeOf<Vector64<UInt16>>() / sizeof(UInt16); private static UInt16[] _data1 = new UInt16[Op1ElementCount]; private static Vector64<UInt16> _clsVar1; private Vector64<UInt16> _fld1; private DataTable _dataTable; static VectorUnaryOpTest__op_OnesComplementUInt16() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt16>, byte>(ref _clsVar1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); } public VectorUnaryOpTest__op_OnesComplementUInt16() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector64<UInt16>, byte>(ref _fld1), ref Unsafe.As<UInt16, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt16(); } _dataTable = new DataTable(_data1, new UInt16[RetElementCount], LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = ~Unsafe.Read<Vector64<UInt16>>(_dataTable.inArray1Ptr); Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector64<UInt16>).GetMethod("op_OnesComplement", new Type[] { typeof(Vector64<UInt16>) }) .Invoke(null, new object[] { Unsafe.Read<Vector64<UInt16>>(_dataTable.inArray1Ptr) }); Unsafe.Write(_dataTable.outArrayPtr, (Vector64<UInt16>)(result)); ValidateResult(_dataTable.inArray1Ptr, _dataTable.outArrayPtr); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = ~_clsVar1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_clsVar1, _dataTable.outArrayPtr); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector64<UInt16>>(_dataTable.inArray1Ptr); var result = ~op1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(op1, _dataTable.outArrayPtr); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorUnaryOpTest__op_OnesComplementUInt16(); var result = ~test._fld1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = ~_fld1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(_fld1, _dataTable.outArrayPtr); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = ~test._fld1; Unsafe.Write(_dataTable.outArrayPtr, result); ValidateResult(test._fld1, _dataTable.outArrayPtr); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector64<UInt16> op1, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), op1); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(void* op1, void* result, [CallerMemberName] string method = "") { UInt16[] inArray1 = new UInt16[Op1ElementCount]; UInt16[] outArray = new UInt16[RetElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt16, byte>(ref outArray[0]), ref Unsafe.AsRef<byte>(result), (uint)Unsafe.SizeOf<Vector64<UInt16>>()); ValidateResult(inArray1, outArray, method); } private void ValidateResult(UInt16[] firstOp, UInt16[] result, [CallerMemberName] string method = "") { bool succeeded = true; if (result[0] != (ushort)(~firstOp[0])) { succeeded = false; } else { for (var i = 1; i < RetElementCount; i++) { if (result[i] != (ushort)(~firstOp[i])) { succeeded = false; break; } } } if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector64)}.op_OnesComplement<UInt16>(Vector64<UInt16>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" firstOp: ({string.Join(", ", firstOp)})"); TestLibrary.TestFramework.LogInformation($" result: ({string.Join(", ", result)})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/Regression/JitBlue/DevDiv_541653/DevDiv_541653.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // The bug captured by this test was a case where: // - We have a double register pair that was previous occupied by a double lclVar. // - That lclVar becomes dead, but has subsequent references, so it remains as the // previousInterval on the RegRecord. // - The first float half is then assigned to another lclVar. It is live across a // loop backedge, so it is live at the end of the loop, but is then released before // the next block is allocated. // - At this time, the double lclVar is restored to that RegRecord (as inactive), but // the loop over the lclVars sees only the second half, and asserts because it doesn't // expect to ever encounter an interval in the second half (it should have been skipped). using System; using System.Runtime.CompilerServices; public class DevDiv_541643 { public const int Pass = 100; public const int Fail = -1; [MethodImplAttribute(MethodImplOptions.NoInlining)] public static float GetFloat(int i) { return (float)i; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static double GetDouble(int i) { return (double)i; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static int GetInt(float f) { return (int)f; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static int GetInt(double d) { return (int)d; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static int test(int count) { double d = GetDouble(0); // Use d; it will be dead until we redefine it below. int result = (int)d; // Now define our float lclVar and use it in a loop. float f = GetFloat(1); for (int i = 0; i < count; i++) { result += GetInt(f); } // Finally, redefine d and use it. d = GetDouble(3); for (int i = 0; i < count; i++) { result += GetInt(d); } Console.WriteLine("Result: " + result); return result; } public static int Main() { int result = test(10); return Pass; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // The bug captured by this test was a case where: // - We have a double register pair that was previous occupied by a double lclVar. // - That lclVar becomes dead, but has subsequent references, so it remains as the // previousInterval on the RegRecord. // - The first float half is then assigned to another lclVar. It is live across a // loop backedge, so it is live at the end of the loop, but is then released before // the next block is allocated. // - At this time, the double lclVar is restored to that RegRecord (as inactive), but // the loop over the lclVars sees only the second half, and asserts because it doesn't // expect to ever encounter an interval in the second half (it should have been skipped). using System; using System.Runtime.CompilerServices; public class DevDiv_541643 { public const int Pass = 100; public const int Fail = -1; [MethodImplAttribute(MethodImplOptions.NoInlining)] public static float GetFloat(int i) { return (float)i; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static double GetDouble(int i) { return (double)i; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static int GetInt(float f) { return (int)f; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static int GetInt(double d) { return (int)d; } [MethodImplAttribute(MethodImplOptions.NoInlining)] public static int test(int count) { double d = GetDouble(0); // Use d; it will be dead until we redefine it below. int result = (int)d; // Now define our float lclVar and use it in a loop. float f = GetFloat(1); for (int i = 0; i < count; i++) { result += GetInt(f); } // Finally, redefine d and use it. d = GetDouble(3); for (int i = 0; i < count; i++) { result += GetInt(d); } Console.WriteLine("Result: " + result); return result; } public static int Main() { int result = test(10); return Pass; } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.IO.FileSystem.DriveInfo/src/System/IO/DriveType.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace System.IO { // Matches Win32's DRIVE_XXX #defines from winbase.h public enum DriveType { Unknown = 0, NoRootDirectory = 1, Removable = 2, Fixed = 3, Network = 4, CDRom = 5, Ram = 6 } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; namespace System.IO { // Matches Win32's DRIVE_XXX #defines from winbase.h public enum DriveType { Unknown = 0, NoRootDirectory = 1, Removable = 2, Fixed = 3, Network = 4, CDRom = 5, Ram = 6 } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/baseservices/exceptions/generics/try-catch-struct03.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public struct ValX0 {} public struct ValY0 {} public struct ValX1<T> {} public struct ValY1<T> {} public struct ValX2<T,U> {} public struct ValY2<T,U>{} public struct ValX3<T,U,V>{} public struct ValY3<T,U,V>{} public class RefX0 {} public class RefY0 {} public class RefX1<T> {} public class RefY1<T> {} public class RefX2<T,U> {} public class RefY2<T,U>{} public class RefX3<T,U,V>{} public class RefY3<T,U,V>{} public class GenException<T> : Exception {} public struct Gen<T> { public void InternalExceptionTest(bool throwException) { string ExceptionClass = typeof(GenException<T>).ToString(); try { if (throwException) { throw new GenException<T>(); } if (throwException) { Test_try_catch_struct03.Eval(false); } } catch(GenException<System.InvalidCastException>) { //this should never bee hit! Test_try_catch_struct03.Eval(false); } } public void ExceptionTest(bool throwException) { try { InternalExceptionTest(throwException); Test_try_catch_struct03.Eval(!throwException); } catch { Test_try_catch_struct03.Eval(throwException); } } } public class Test_try_catch_struct03 { public static int counter = 0; public static bool result = true; public static void Eval(bool exp) { counter++; if (!exp) { result = exp; Console.WriteLine("Test Failed at location: " + counter); } } public static int Main() { new Gen<int>().ExceptionTest(true); new Gen<double>().ExceptionTest(true); new Gen<string>().ExceptionTest(true); new Gen<object>().ExceptionTest(true); new Gen<Guid>().ExceptionTest(true); new Gen<int[]>().ExceptionTest(true); new Gen<double[,]>().ExceptionTest(true); new Gen<string[][][]>().ExceptionTest(true); new Gen<object[,,,]>().ExceptionTest(true); new Gen<Guid[][,,,][]>().ExceptionTest(true); new Gen<RefX1<int>[]>().ExceptionTest(true); new Gen<RefX1<double>[,]>().ExceptionTest(true); new Gen<RefX1<string>[][][]>().ExceptionTest(true); new Gen<RefX1<object>[,,,]>().ExceptionTest(true); new Gen<RefX1<Guid>[][,,,][]>().ExceptionTest(true); new Gen<RefX2<int,int>[]>().ExceptionTest(true); new Gen<RefX2<double,double>[,]>().ExceptionTest(true); new Gen<RefX2<string,string>[][][]>().ExceptionTest(true); new Gen<RefX2<object,object>[,,,]>().ExceptionTest(true); new Gen<RefX2<Guid,Guid>[][,,,][]>().ExceptionTest(true); new Gen<ValX1<int>[]>().ExceptionTest(true); new Gen<ValX1<double>[,]>().ExceptionTest(true); new Gen<ValX1<string>[][][]>().ExceptionTest(true); new Gen<ValX1<object>[,,,]>().ExceptionTest(true); new Gen<ValX1<Guid>[][,,,][]>().ExceptionTest(true); new Gen<ValX2<int,int>[]>().ExceptionTest(true); new Gen<ValX2<double,double>[,]>().ExceptionTest(true); new Gen<ValX2<string,string>[][][]>().ExceptionTest(true); new Gen<ValX2<object,object>[,,,]>().ExceptionTest(true); new Gen<ValX2<Guid,Guid>[][,,,][]>().ExceptionTest(true); new Gen<RefX1<int>>().ExceptionTest(true); new Gen<RefX1<ValX1<int>>>().ExceptionTest(true); new Gen<RefX2<int,string>>().ExceptionTest(true); new Gen<RefX3<int,string,Guid>>().ExceptionTest(true); new Gen<RefX1<RefX1<int>>>().ExceptionTest(true); new Gen<RefX1<RefX1<RefX1<string>>>>().ExceptionTest(true); new Gen<RefX1<RefX1<RefX1<RefX1<Guid>>>>>().ExceptionTest(true); new Gen<RefX1<RefX2<int,string>>>().ExceptionTest(true); new Gen<RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>>().ExceptionTest(true); new Gen<RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>().ExceptionTest(true); new Gen<ValX1<int>>().ExceptionTest(true); new Gen<ValX1<RefX1<int>>>().ExceptionTest(true); new Gen<ValX2<int,string>>().ExceptionTest(true); new Gen<ValX3<int,string,Guid>>().ExceptionTest(true); new Gen<ValX1<ValX1<int>>>().ExceptionTest(true); new Gen<ValX1<ValX1<ValX1<string>>>>().ExceptionTest(true); new Gen<ValX1<ValX1<ValX1<ValX1<Guid>>>>>().ExceptionTest(true); new Gen<ValX1<ValX2<int,string>>>().ExceptionTest(true); new Gen<ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>>().ExceptionTest(true); new Gen<ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>().ExceptionTest(true); if (result) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; public struct ValX0 {} public struct ValY0 {} public struct ValX1<T> {} public struct ValY1<T> {} public struct ValX2<T,U> {} public struct ValY2<T,U>{} public struct ValX3<T,U,V>{} public struct ValY3<T,U,V>{} public class RefX0 {} public class RefY0 {} public class RefX1<T> {} public class RefY1<T> {} public class RefX2<T,U> {} public class RefY2<T,U>{} public class RefX3<T,U,V>{} public class RefY3<T,U,V>{} public class GenException<T> : Exception {} public struct Gen<T> { public void InternalExceptionTest(bool throwException) { string ExceptionClass = typeof(GenException<T>).ToString(); try { if (throwException) { throw new GenException<T>(); } if (throwException) { Test_try_catch_struct03.Eval(false); } } catch(GenException<System.InvalidCastException>) { //this should never bee hit! Test_try_catch_struct03.Eval(false); } } public void ExceptionTest(bool throwException) { try { InternalExceptionTest(throwException); Test_try_catch_struct03.Eval(!throwException); } catch { Test_try_catch_struct03.Eval(throwException); } } } public class Test_try_catch_struct03 { public static int counter = 0; public static bool result = true; public static void Eval(bool exp) { counter++; if (!exp) { result = exp; Console.WriteLine("Test Failed at location: " + counter); } } public static int Main() { new Gen<int>().ExceptionTest(true); new Gen<double>().ExceptionTest(true); new Gen<string>().ExceptionTest(true); new Gen<object>().ExceptionTest(true); new Gen<Guid>().ExceptionTest(true); new Gen<int[]>().ExceptionTest(true); new Gen<double[,]>().ExceptionTest(true); new Gen<string[][][]>().ExceptionTest(true); new Gen<object[,,,]>().ExceptionTest(true); new Gen<Guid[][,,,][]>().ExceptionTest(true); new Gen<RefX1<int>[]>().ExceptionTest(true); new Gen<RefX1<double>[,]>().ExceptionTest(true); new Gen<RefX1<string>[][][]>().ExceptionTest(true); new Gen<RefX1<object>[,,,]>().ExceptionTest(true); new Gen<RefX1<Guid>[][,,,][]>().ExceptionTest(true); new Gen<RefX2<int,int>[]>().ExceptionTest(true); new Gen<RefX2<double,double>[,]>().ExceptionTest(true); new Gen<RefX2<string,string>[][][]>().ExceptionTest(true); new Gen<RefX2<object,object>[,,,]>().ExceptionTest(true); new Gen<RefX2<Guid,Guid>[][,,,][]>().ExceptionTest(true); new Gen<ValX1<int>[]>().ExceptionTest(true); new Gen<ValX1<double>[,]>().ExceptionTest(true); new Gen<ValX1<string>[][][]>().ExceptionTest(true); new Gen<ValX1<object>[,,,]>().ExceptionTest(true); new Gen<ValX1<Guid>[][,,,][]>().ExceptionTest(true); new Gen<ValX2<int,int>[]>().ExceptionTest(true); new Gen<ValX2<double,double>[,]>().ExceptionTest(true); new Gen<ValX2<string,string>[][][]>().ExceptionTest(true); new Gen<ValX2<object,object>[,,,]>().ExceptionTest(true); new Gen<ValX2<Guid,Guid>[][,,,][]>().ExceptionTest(true); new Gen<RefX1<int>>().ExceptionTest(true); new Gen<RefX1<ValX1<int>>>().ExceptionTest(true); new Gen<RefX2<int,string>>().ExceptionTest(true); new Gen<RefX3<int,string,Guid>>().ExceptionTest(true); new Gen<RefX1<RefX1<int>>>().ExceptionTest(true); new Gen<RefX1<RefX1<RefX1<string>>>>().ExceptionTest(true); new Gen<RefX1<RefX1<RefX1<RefX1<Guid>>>>>().ExceptionTest(true); new Gen<RefX1<RefX2<int,string>>>().ExceptionTest(true); new Gen<RefX2<RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>,RefX2<RefX1<int>,RefX3<int,string, RefX1<RefX2<int,string>>>>>>().ExceptionTest(true); new Gen<RefX3<RefX1<int[][,,,]>,RefX2<object[,,,][][],Guid[][][]>,RefX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>().ExceptionTest(true); new Gen<ValX1<int>>().ExceptionTest(true); new Gen<ValX1<RefX1<int>>>().ExceptionTest(true); new Gen<ValX2<int,string>>().ExceptionTest(true); new Gen<ValX3<int,string,Guid>>().ExceptionTest(true); new Gen<ValX1<ValX1<int>>>().ExceptionTest(true); new Gen<ValX1<ValX1<ValX1<string>>>>().ExceptionTest(true); new Gen<ValX1<ValX1<ValX1<ValX1<Guid>>>>>().ExceptionTest(true); new Gen<ValX1<ValX2<int,string>>>().ExceptionTest(true); new Gen<ValX2<ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>,ValX2<ValX1<int>,ValX3<int,string, ValX1<ValX2<int,string>>>>>>().ExceptionTest(true); new Gen<ValX3<ValX1<int[][,,,]>,ValX2<object[,,,][][],Guid[][][]>,ValX3<double[,,,,,,,,,,],Guid[][][][,,,,][,,,,][][][],string[][][][][][][][][][][]>>>().ExceptionTest(true); if (result) { Console.WriteLine("Test Passed"); return 100; } else { Console.WriteLine("Test Failed"); return 1; } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/Common/src/Interop/Unix/System.Native/Interop.Exit.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; internal static partial class Interop { internal unsafe partial class Sys { [DoesNotReturn] [GeneratedDllImport(Interop.Libraries.SystemNative, EntryPoint = "SystemNative_Exit")] internal static partial void Exit(int exitCode); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; internal static partial class Interop { internal unsafe partial class Sys { [DoesNotReturn] [GeneratedDllImport(Interop.Libraries.SystemNative, EntryPoint = "SystemNative_Exit")] internal static partial void Exit(int exitCode); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/Common/src/Interop/Android/System.Security.Cryptography.Native.Android/Interop.Rsa.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Security.Cryptography; using Microsoft.Win32.SafeHandles; internal static partial class Interop { internal static partial class AndroidCrypto { [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaCreate")] internal static partial SafeRsaHandle RsaCreate(); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaUpRef")] [return: MarshalAs(UnmanagedType.Bool)] internal static partial bool RsaUpRef(IntPtr rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaDestroy")] internal static partial void RsaDestroy(IntPtr rsa); internal static SafeRsaHandle DecodeRsaSubjectPublicKeyInfo(ReadOnlySpan<byte> buf) => DecodeRsaSubjectPublicKeyInfo(ref MemoryMarshal.GetReference(buf), buf.Length); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_DecodeRsaSubjectPublicKeyInfo")] private static partial SafeRsaHandle DecodeRsaSubjectPublicKeyInfo(ref byte buf, int len); internal static int RsaPublicEncrypt( int flen, ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa, RsaPadding padding) => RsaPublicEncrypt(flen, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa, padding); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaPublicEncrypt")] private static partial int RsaPublicEncrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding); internal static int RsaPrivateDecrypt( int flen, ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa, RsaPadding padding) => RsaPrivateDecrypt(flen, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa, padding); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaPrivateDecrypt")] private static partial int RsaPrivateDecrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding); internal static int RsaSignPrimitive( ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa) => RsaSignPrimitive(from.Length, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaSignPrimitive")] private static partial int RsaSignPrimitive( int flen, ref byte from, ref byte to, SafeRsaHandle rsa); internal static int RsaVerificationPrimitive( ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa) => RsaVerificationPrimitive(from.Length, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaVerificationPrimitive")] private static partial int RsaVerificationPrimitive( int flen, ref byte from, ref byte to, SafeRsaHandle rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaSize")] internal static partial int RsaSize(SafeRsaHandle rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaGenerateKeyEx")] internal static partial int RsaGenerateKeyEx(SafeRsaHandle rsa, int bits); internal static RSAParameters ExportRsaParameters(SafeRsaHandle key, bool includePrivateParameters) { Debug.Assert( key != null && !key.IsInvalid, "Callers should check the key is invalid and throw an exception with a message"); if (key == null || key.IsInvalid) { throw new CryptographicException(); } SafeBignumHandle n, e, d, p, dmp1, q, dmq1, iqmp; if (!GetRsaParameters(key, out n, out e, out d, out p, out dmp1, out q, out dmq1, out iqmp)) { n.Dispose(); e.Dispose(); d.Dispose(); p.Dispose(); dmp1.Dispose(); q.Dispose(); dmq1.Dispose(); iqmp.Dispose(); throw new CryptographicException(); } using (n) using (e) using (d) using (p) using (dmp1) using (q) using (dmq1) using (iqmp) { int modulusSize = RsaSize(key); // RSACryptoServiceProvider expects P, DP, Q, DQ, and InverseQ to all // be padded up to half the modulus size. int halfModulus = modulusSize / 2; RSAParameters rsaParameters = new RSAParameters { Modulus = Crypto.ExtractBignum(n, modulusSize)!, Exponent = Crypto.ExtractBignum(e, 0)!, }; if (includePrivateParameters) { rsaParameters.D = Crypto.ExtractBignum(d, modulusSize); rsaParameters.P = Crypto.ExtractBignum(p, halfModulus); rsaParameters.DP = Crypto.ExtractBignum(dmp1, halfModulus); rsaParameters.Q = Crypto.ExtractBignum(q, halfModulus); rsaParameters.DQ = Crypto.ExtractBignum(dmq1, halfModulus); rsaParameters.InverseQ = Crypto.ExtractBignum(iqmp, halfModulus); } return rsaParameters; } } [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_GetRsaParameters")] [return: MarshalAs(UnmanagedType.Bool)] private static partial bool GetRsaParameters( SafeRsaHandle key, out SafeBignumHandle n, out SafeBignumHandle e, out SafeBignumHandle d, out SafeBignumHandle p, out SafeBignumHandle dmp1, out SafeBignumHandle q, out SafeBignumHandle dmq1, out SafeBignumHandle iqmp); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_SetRsaParameters")] [return: MarshalAs(UnmanagedType.Bool)] internal static partial bool SetRsaParameters( SafeRsaHandle key, byte[]? n, int nLength, byte[]? e, int eLength, byte[]? d, int dLength, byte[]? p, int pLength, byte[]? dmp1, int dmp1Length, byte[]? q, int qLength, byte[]? dmq1, int dmq1Length, byte[]? iqmp, int iqmpLength); internal enum RsaPadding : int { Pkcs1 = 0, OaepSHA1 = 1, NoPadding = 2, } } } namespace System.Security.Cryptography { internal sealed class SafeRsaHandle : SafeKeyHandle { public SafeRsaHandle() { } public SafeRsaHandle(IntPtr ptr) { SetHandle(ptr); } protected override bool ReleaseHandle() { Interop.AndroidCrypto.RsaDestroy(handle); SetHandle(IntPtr.Zero); return true; } internal override SafeRsaHandle DuplicateHandle() => DuplicateHandle(DangerousGetHandle()); internal static SafeRsaHandle DuplicateHandle(IntPtr handle) { Debug.Assert(handle != IntPtr.Zero); // Reliability: Allocate the SafeHandle before calling RSA_up_ref so // that we don't lose a tracked reference in low-memory situations. SafeRsaHandle safeHandle = new SafeRsaHandle(); if (!Interop.AndroidCrypto.RsaUpRef(handle)) { throw new CryptographicException(); } safeHandle.SetHandle(handle); return safeHandle; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Security.Cryptography; using Microsoft.Win32.SafeHandles; internal static partial class Interop { internal static partial class AndroidCrypto { [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaCreate")] internal static partial SafeRsaHandle RsaCreate(); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaUpRef")] [return: MarshalAs(UnmanagedType.Bool)] internal static partial bool RsaUpRef(IntPtr rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaDestroy")] internal static partial void RsaDestroy(IntPtr rsa); internal static SafeRsaHandle DecodeRsaSubjectPublicKeyInfo(ReadOnlySpan<byte> buf) => DecodeRsaSubjectPublicKeyInfo(ref MemoryMarshal.GetReference(buf), buf.Length); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_DecodeRsaSubjectPublicKeyInfo")] private static partial SafeRsaHandle DecodeRsaSubjectPublicKeyInfo(ref byte buf, int len); internal static int RsaPublicEncrypt( int flen, ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa, RsaPadding padding) => RsaPublicEncrypt(flen, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa, padding); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaPublicEncrypt")] private static partial int RsaPublicEncrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding); internal static int RsaPrivateDecrypt( int flen, ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa, RsaPadding padding) => RsaPrivateDecrypt(flen, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa, padding); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaPrivateDecrypt")] private static partial int RsaPrivateDecrypt( int flen, ref byte from, ref byte to, SafeRsaHandle rsa, RsaPadding padding); internal static int RsaSignPrimitive( ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa) => RsaSignPrimitive(from.Length, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaSignPrimitive")] private static partial int RsaSignPrimitive( int flen, ref byte from, ref byte to, SafeRsaHandle rsa); internal static int RsaVerificationPrimitive( ReadOnlySpan<byte> from, Span<byte> to, SafeRsaHandle rsa) => RsaVerificationPrimitive(from.Length, ref MemoryMarshal.GetReference(from), ref MemoryMarshal.GetReference(to), rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaVerificationPrimitive")] private static partial int RsaVerificationPrimitive( int flen, ref byte from, ref byte to, SafeRsaHandle rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaSize")] internal static partial int RsaSize(SafeRsaHandle rsa); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_RsaGenerateKeyEx")] internal static partial int RsaGenerateKeyEx(SafeRsaHandle rsa, int bits); internal static RSAParameters ExportRsaParameters(SafeRsaHandle key, bool includePrivateParameters) { Debug.Assert( key != null && !key.IsInvalid, "Callers should check the key is invalid and throw an exception with a message"); if (key == null || key.IsInvalid) { throw new CryptographicException(); } SafeBignumHandle n, e, d, p, dmp1, q, dmq1, iqmp; if (!GetRsaParameters(key, out n, out e, out d, out p, out dmp1, out q, out dmq1, out iqmp)) { n.Dispose(); e.Dispose(); d.Dispose(); p.Dispose(); dmp1.Dispose(); q.Dispose(); dmq1.Dispose(); iqmp.Dispose(); throw new CryptographicException(); } using (n) using (e) using (d) using (p) using (dmp1) using (q) using (dmq1) using (iqmp) { int modulusSize = RsaSize(key); // RSACryptoServiceProvider expects P, DP, Q, DQ, and InverseQ to all // be padded up to half the modulus size. int halfModulus = modulusSize / 2; RSAParameters rsaParameters = new RSAParameters { Modulus = Crypto.ExtractBignum(n, modulusSize)!, Exponent = Crypto.ExtractBignum(e, 0)!, }; if (includePrivateParameters) { rsaParameters.D = Crypto.ExtractBignum(d, modulusSize); rsaParameters.P = Crypto.ExtractBignum(p, halfModulus); rsaParameters.DP = Crypto.ExtractBignum(dmp1, halfModulus); rsaParameters.Q = Crypto.ExtractBignum(q, halfModulus); rsaParameters.DQ = Crypto.ExtractBignum(dmq1, halfModulus); rsaParameters.InverseQ = Crypto.ExtractBignum(iqmp, halfModulus); } return rsaParameters; } } [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_GetRsaParameters")] [return: MarshalAs(UnmanagedType.Bool)] private static partial bool GetRsaParameters( SafeRsaHandle key, out SafeBignumHandle n, out SafeBignumHandle e, out SafeBignumHandle d, out SafeBignumHandle p, out SafeBignumHandle dmp1, out SafeBignumHandle q, out SafeBignumHandle dmq1, out SafeBignumHandle iqmp); [GeneratedDllImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_SetRsaParameters")] [return: MarshalAs(UnmanagedType.Bool)] internal static partial bool SetRsaParameters( SafeRsaHandle key, byte[]? n, int nLength, byte[]? e, int eLength, byte[]? d, int dLength, byte[]? p, int pLength, byte[]? dmp1, int dmp1Length, byte[]? q, int qLength, byte[]? dmq1, int dmq1Length, byte[]? iqmp, int iqmpLength); internal enum RsaPadding : int { Pkcs1 = 0, OaepSHA1 = 1, NoPadding = 2, } } } namespace System.Security.Cryptography { internal sealed class SafeRsaHandle : SafeKeyHandle { public SafeRsaHandle() { } public SafeRsaHandle(IntPtr ptr) { SetHandle(ptr); } protected override bool ReleaseHandle() { Interop.AndroidCrypto.RsaDestroy(handle); SetHandle(IntPtr.Zero); return true; } internal override SafeRsaHandle DuplicateHandle() => DuplicateHandle(DangerousGetHandle()); internal static SafeRsaHandle DuplicateHandle(IntPtr handle) { Debug.Assert(handle != IntPtr.Zero); // Reliability: Allocate the SafeHandle before calling RSA_up_ref so // that we don't lose a tracked reference in low-memory situations. SafeRsaHandle safeHandle = new SafeRsaHandle(); if (!Interop.AndroidCrypto.RsaUpRef(handle)) { throw new CryptographicException(); } safeHandle.SetHandle(handle); return safeHandle; } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationGeneratedCode.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Xml.Serialization { using System; using System.IO; using System.Collections; using System.ComponentModel; using System.Threading; using System.Reflection; using System.Security; using System.Globalization; using System.Diagnostics.CodeAnalysis; ///<internalonly/> public abstract class XmlSerializationGeneratedCode { internal void Init(TempAssembly? tempAssembly) { } // this method must be called at the end of serialization internal void Dispose() { } } internal class XmlSerializationCodeGen { private readonly IndentedWriter _writer; private int _nextMethodNumber; private readonly Hashtable _methodNames = new Hashtable(); private readonly ReflectionAwareCodeGen _raCodeGen; private readonly TypeScope[] _scopes; private readonly TypeDesc? _stringTypeDesc; private readonly TypeDesc? _qnameTypeDesc; private readonly string _access; private readonly string _className; private TypeMapping[]? _referencedMethods; private int _references; private readonly Hashtable _generatedMethods = new Hashtable(); [RequiresUnreferencedCode("Calls GetTypeDesc")] internal XmlSerializationCodeGen(IndentedWriter writer, TypeScope[] scopes, string access, string className) { _writer = writer; _scopes = scopes; if (scopes.Length > 0) { _stringTypeDesc = scopes[0].GetTypeDesc(typeof(string)); _qnameTypeDesc = scopes[0].GetTypeDesc(typeof(XmlQualifiedName)); } _raCodeGen = new ReflectionAwareCodeGen(writer); _className = className; _access = access; } internal IndentedWriter Writer { get { return _writer; } } internal int NextMethodNumber { get { return _nextMethodNumber; } set { _nextMethodNumber = value; } } internal ReflectionAwareCodeGen RaCodeGen { get { return _raCodeGen; } } internal TypeDesc? StringTypeDesc { get { return _stringTypeDesc; } } internal TypeDesc? QnameTypeDesc { get { return _qnameTypeDesc; } } internal string ClassName { get { return _className; } } internal string Access { get { return _access; } } internal TypeScope[] Scopes { get { return _scopes; } } internal Hashtable MethodNames { get { return _methodNames; } } internal Hashtable GeneratedMethods { get { return _generatedMethods; } } [RequiresUnreferencedCode("calls WriteStructMethod")] internal virtual void GenerateMethod(TypeMapping mapping) { } [RequiresUnreferencedCode("calls GenerateMethod")] internal void GenerateReferencedMethods() { while (_references > 0) { TypeMapping mapping = _referencedMethods![--_references]; GenerateMethod(mapping); } } internal string? ReferenceMapping(TypeMapping mapping) { if (!mapping.IsSoap) { if (_generatedMethods[mapping] == null) { _referencedMethods = EnsureArrayIndex(_referencedMethods!, _references); _referencedMethods[_references++] = mapping; } } return (string?)_methodNames[mapping]; } private TypeMapping[] EnsureArrayIndex(TypeMapping[] a, int index) { if (a == null) return new TypeMapping[32]; if (index < a.Length) return a; TypeMapping[] b = new TypeMapping[a.Length + 32]; Array.Copy(a, b, index); return b; } internal void WriteQuotedCSharpString(string? value) { _raCodeGen.WriteQuotedCSharpString(value); } internal void GenerateHashtableGetBegin(string privateName, string publicName) { _writer.Write(typeof(Hashtable).FullName); _writer.Write(" "); _writer.Write(privateName); _writer.WriteLine(" = null;"); _writer.Write("public override "); _writer.Write(typeof(Hashtable).FullName); _writer.Write(" "); _writer.Write(publicName); _writer.WriteLine(" {"); _writer.Indent++; _writer.WriteLine("get {"); _writer.Indent++; _writer.Write("if ("); _writer.Write(privateName); _writer.WriteLine(" == null) {"); _writer.Indent++; _writer.Write(typeof(Hashtable).FullName); _writer.Write(" _tmp = new "); _writer.Write(typeof(Hashtable).FullName); _writer.WriteLine("();"); } internal void GenerateHashtableGetEnd(string privateName) { _writer.Write("if ("); _writer.Write(privateName); _writer.Write(" == null) "); _writer.Write(privateName); _writer.WriteLine(" = _tmp;"); _writer.Indent--; _writer.WriteLine("}"); _writer.Write("return "); _writer.Write(privateName); _writer.WriteLine(";"); _writer.Indent--; _writer.WriteLine("}"); _writer.Indent--; _writer.WriteLine("}"); } internal void GeneratePublicMethods(string privateName, string publicName, string?[] methods, XmlMapping[] xmlMappings) { GenerateHashtableGetBegin(privateName, publicName); if (methods != null && methods.Length != 0 && xmlMappings != null && xmlMappings.Length == methods.Length) { for (int i = 0; i < methods.Length; i++) { if (methods[i] == null) continue; _writer.Write("_tmp["); WriteQuotedCSharpString(xmlMappings[i].Key); _writer.Write("] = "); WriteQuotedCSharpString(methods[i]); _writer.WriteLine(";"); } } GenerateHashtableGetEnd(privateName); } internal void GenerateSupportedTypes(Type?[] types) { _writer.Write("public override "); _writer.Write(typeof(bool).FullName); _writer.Write(" CanSerialize("); _writer.Write(typeof(Type).FullName); _writer.WriteLine(" type) {"); _writer.Indent++; Hashtable uniqueTypes = new Hashtable(); for (int i = 0; i < types.Length; i++) { Type? type = types[i]; if (type == null) continue; if (!type.IsPublic && !type.IsNestedPublic) continue; if (uniqueTypes[type] != null) continue; if (DynamicAssemblies.IsTypeDynamic(type)) continue; if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments())) continue; uniqueTypes[type] = type; _writer.Write("if (type == typeof("); _writer.Write(CodeIdentifier.GetCSharpName(type)); _writer.WriteLine(")) return true;"); } _writer.WriteLine("return false;"); _writer.Indent--; _writer.WriteLine("}"); } internal string GenerateBaseSerializer(string baseSerializer, string readerClass, string writerClass, CodeIdentifiers classes) { baseSerializer = CodeIdentifier.MakeValid(baseSerializer); baseSerializer = classes.AddUnique(baseSerializer, baseSerializer); _writer.WriteLine(); _writer.Write("public abstract class "); _writer.Write(CodeIdentifier.GetCSharpName(baseSerializer)); _writer.Write(" : "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); _writer.WriteLine(" {"); _writer.Indent++; _writer.Write("protected override "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); _writer.WriteLine(" CreateReader() {"); _writer.Indent++; _writer.Write("return new "); _writer.Write(readerClass); _writer.WriteLine("();"); _writer.Indent--; _writer.WriteLine("}"); _writer.Write("protected override "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); _writer.WriteLine(" CreateWriter() {"); _writer.Indent++; _writer.Write("return new "); _writer.Write(writerClass); _writer.WriteLine("();"); _writer.Indent--; _writer.WriteLine("}"); _writer.Indent--; _writer.WriteLine("}"); return baseSerializer; } internal string GenerateTypedSerializer(string? readMethod, string? writeMethod, XmlMapping mapping, CodeIdentifiers classes, string baseSerializer, string readerClass, string writerClass) { string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.Name)); serializerName = classes.AddUnique($"{serializerName}Serializer", mapping); _writer.WriteLine(); _writer.Write("public sealed class "); _writer.Write(CodeIdentifier.GetCSharpName(serializerName)); _writer.Write(" : "); _writer.Write(baseSerializer); _writer.WriteLine(" {"); _writer.Indent++; _writer.WriteLine(); _writer.Write("public override "); _writer.Write(typeof(bool).FullName); _writer.Write(" CanDeserialize("); _writer.Write(typeof(XmlReader).FullName); _writer.WriteLine(" xmlReader) {"); _writer.Indent++; if (mapping.Accessor.Any) { _writer.WriteLine("return true;"); } else { _writer.Write("return xmlReader.IsStartElement("); WriteQuotedCSharpString(mapping.Accessor.Name); _writer.Write(", "); WriteQuotedCSharpString(mapping.Accessor.Namespace); _writer.WriteLine(");"); } _writer.Indent--; _writer.WriteLine("}"); if (writeMethod != null) { _writer.WriteLine(); _writer.Write("protected override void Serialize(object objectToSerialize, "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); _writer.WriteLine(" writer) {"); _writer.Indent++; _writer.Write("(("); _writer.Write(writerClass); _writer.Write(")writer)."); _writer.Write(writeMethod); _writer.Write("("); if (mapping is XmlMembersMapping) { _writer.Write("(object[])"); } _writer.WriteLine("objectToSerialize);"); _writer.Indent--; _writer.WriteLine("}"); } if (readMethod != null) { _writer.WriteLine(); _writer.Write("protected override object Deserialize("); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); _writer.WriteLine(" reader) {"); _writer.Indent++; _writer.Write("return (("); _writer.Write(readerClass); _writer.Write(")reader)."); _writer.Write(readMethod); _writer.WriteLine("();"); _writer.Indent--; _writer.WriteLine("}"); } _writer.Indent--; _writer.WriteLine("}"); return serializerName; } private void GenerateTypedSerializers(Hashtable serializers) { string privateName = "typedSerializers"; GenerateHashtableGetBegin(privateName, "TypedSerializers"); foreach (string key in serializers.Keys) { _writer.Write("_tmp.Add("); WriteQuotedCSharpString(key); _writer.Write(", new "); _writer.Write((string?)serializers[key]); _writer.WriteLine("());"); } GenerateHashtableGetEnd("typedSerializers"); } //GenerateGetSerializer(serializers, xmlMappings); private void GenerateGetSerializer(Hashtable serializers, XmlMapping[] xmlMappings) { _writer.Write("public override "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); _writer.Write(" GetSerializer("); _writer.Write(typeof(Type).FullName); _writer.WriteLine(" type) {"); _writer.Indent++; for (int i = 0; i < xmlMappings.Length; i++) { if (xmlMappings[i] is XmlTypeMapping) { Type? type = xmlMappings[i].Accessor.Mapping!.TypeDesc!.Type; if (type == null) continue; if (!type.IsPublic && !type.IsNestedPublic) continue; if (DynamicAssemblies.IsTypeDynamic(type)) continue; if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments())) continue; _writer.Write("if (type == typeof("); _writer.Write(CodeIdentifier.GetCSharpName(type)); _writer.Write(")) return new "); _writer.Write((string?)serializers[xmlMappings[i].Key!]); _writer.WriteLine("();"); } } _writer.WriteLine("return null;"); _writer.Indent--; _writer.WriteLine("}"); } internal void GenerateSerializerContract(string className, XmlMapping[] xmlMappings, Type?[] types, string readerType, string?[] readMethods, string writerType, string?[] writerMethods, Hashtable serializers) { _writer.WriteLine(); _writer.Write("public class XmlSerializerContract : global::"); _writer.Write(typeof(System.Xml.Serialization.XmlSerializerImplementation).FullName); _writer.WriteLine(" {"); _writer.Indent++; _writer.Write("public override global::"); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); _writer.Write(" Reader { get { return new "); _writer.Write(readerType); _writer.WriteLine("(); } }"); _writer.Write("public override global::"); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); _writer.Write(" Writer { get { return new "); _writer.Write(writerType); _writer.WriteLine("(); } }"); GeneratePublicMethods(nameof(readMethods), "ReadMethods", readMethods, xmlMappings); GeneratePublicMethods("writeMethods", "WriteMethods", writerMethods, xmlMappings); GenerateTypedSerializers(serializers); GenerateSupportedTypes(types); GenerateGetSerializer(serializers, xmlMappings); _writer.Indent--; _writer.WriteLine("}"); } internal static bool IsWildcard(SpecialMapping mapping) { if (mapping is SerializableMapping) return ((SerializableMapping)mapping).IsAny; return mapping.TypeDesc!.CanBeElementValue; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Xml.Serialization { using System; using System.IO; using System.Collections; using System.ComponentModel; using System.Threading; using System.Reflection; using System.Security; using System.Globalization; using System.Diagnostics.CodeAnalysis; ///<internalonly/> public abstract class XmlSerializationGeneratedCode { internal void Init(TempAssembly? tempAssembly) { } // this method must be called at the end of serialization internal void Dispose() { } } internal class XmlSerializationCodeGen { private readonly IndentedWriter _writer; private int _nextMethodNumber; private readonly Hashtable _methodNames = new Hashtable(); private readonly ReflectionAwareCodeGen _raCodeGen; private readonly TypeScope[] _scopes; private readonly TypeDesc? _stringTypeDesc; private readonly TypeDesc? _qnameTypeDesc; private readonly string _access; private readonly string _className; private TypeMapping[]? _referencedMethods; private int _references; private readonly Hashtable _generatedMethods = new Hashtable(); [RequiresUnreferencedCode("Calls GetTypeDesc")] internal XmlSerializationCodeGen(IndentedWriter writer, TypeScope[] scopes, string access, string className) { _writer = writer; _scopes = scopes; if (scopes.Length > 0) { _stringTypeDesc = scopes[0].GetTypeDesc(typeof(string)); _qnameTypeDesc = scopes[0].GetTypeDesc(typeof(XmlQualifiedName)); } _raCodeGen = new ReflectionAwareCodeGen(writer); _className = className; _access = access; } internal IndentedWriter Writer { get { return _writer; } } internal int NextMethodNumber { get { return _nextMethodNumber; } set { _nextMethodNumber = value; } } internal ReflectionAwareCodeGen RaCodeGen { get { return _raCodeGen; } } internal TypeDesc? StringTypeDesc { get { return _stringTypeDesc; } } internal TypeDesc? QnameTypeDesc { get { return _qnameTypeDesc; } } internal string ClassName { get { return _className; } } internal string Access { get { return _access; } } internal TypeScope[] Scopes { get { return _scopes; } } internal Hashtable MethodNames { get { return _methodNames; } } internal Hashtable GeneratedMethods { get { return _generatedMethods; } } [RequiresUnreferencedCode("calls WriteStructMethod")] internal virtual void GenerateMethod(TypeMapping mapping) { } [RequiresUnreferencedCode("calls GenerateMethod")] internal void GenerateReferencedMethods() { while (_references > 0) { TypeMapping mapping = _referencedMethods![--_references]; GenerateMethod(mapping); } } internal string? ReferenceMapping(TypeMapping mapping) { if (!mapping.IsSoap) { if (_generatedMethods[mapping] == null) { _referencedMethods = EnsureArrayIndex(_referencedMethods!, _references); _referencedMethods[_references++] = mapping; } } return (string?)_methodNames[mapping]; } private TypeMapping[] EnsureArrayIndex(TypeMapping[] a, int index) { if (a == null) return new TypeMapping[32]; if (index < a.Length) return a; TypeMapping[] b = new TypeMapping[a.Length + 32]; Array.Copy(a, b, index); return b; } internal void WriteQuotedCSharpString(string? value) { _raCodeGen.WriteQuotedCSharpString(value); } internal void GenerateHashtableGetBegin(string privateName, string publicName) { _writer.Write(typeof(Hashtable).FullName); _writer.Write(" "); _writer.Write(privateName); _writer.WriteLine(" = null;"); _writer.Write("public override "); _writer.Write(typeof(Hashtable).FullName); _writer.Write(" "); _writer.Write(publicName); _writer.WriteLine(" {"); _writer.Indent++; _writer.WriteLine("get {"); _writer.Indent++; _writer.Write("if ("); _writer.Write(privateName); _writer.WriteLine(" == null) {"); _writer.Indent++; _writer.Write(typeof(Hashtable).FullName); _writer.Write(" _tmp = new "); _writer.Write(typeof(Hashtable).FullName); _writer.WriteLine("();"); } internal void GenerateHashtableGetEnd(string privateName) { _writer.Write("if ("); _writer.Write(privateName); _writer.Write(" == null) "); _writer.Write(privateName); _writer.WriteLine(" = _tmp;"); _writer.Indent--; _writer.WriteLine("}"); _writer.Write("return "); _writer.Write(privateName); _writer.WriteLine(";"); _writer.Indent--; _writer.WriteLine("}"); _writer.Indent--; _writer.WriteLine("}"); } internal void GeneratePublicMethods(string privateName, string publicName, string?[] methods, XmlMapping[] xmlMappings) { GenerateHashtableGetBegin(privateName, publicName); if (methods != null && methods.Length != 0 && xmlMappings != null && xmlMappings.Length == methods.Length) { for (int i = 0; i < methods.Length; i++) { if (methods[i] == null) continue; _writer.Write("_tmp["); WriteQuotedCSharpString(xmlMappings[i].Key); _writer.Write("] = "); WriteQuotedCSharpString(methods[i]); _writer.WriteLine(";"); } } GenerateHashtableGetEnd(privateName); } internal void GenerateSupportedTypes(Type?[] types) { _writer.Write("public override "); _writer.Write(typeof(bool).FullName); _writer.Write(" CanSerialize("); _writer.Write(typeof(Type).FullName); _writer.WriteLine(" type) {"); _writer.Indent++; Hashtable uniqueTypes = new Hashtable(); for (int i = 0; i < types.Length; i++) { Type? type = types[i]; if (type == null) continue; if (!type.IsPublic && !type.IsNestedPublic) continue; if (uniqueTypes[type] != null) continue; if (DynamicAssemblies.IsTypeDynamic(type)) continue; if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments())) continue; uniqueTypes[type] = type; _writer.Write("if (type == typeof("); _writer.Write(CodeIdentifier.GetCSharpName(type)); _writer.WriteLine(")) return true;"); } _writer.WriteLine("return false;"); _writer.Indent--; _writer.WriteLine("}"); } internal string GenerateBaseSerializer(string baseSerializer, string readerClass, string writerClass, CodeIdentifiers classes) { baseSerializer = CodeIdentifier.MakeValid(baseSerializer); baseSerializer = classes.AddUnique(baseSerializer, baseSerializer); _writer.WriteLine(); _writer.Write("public abstract class "); _writer.Write(CodeIdentifier.GetCSharpName(baseSerializer)); _writer.Write(" : "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); _writer.WriteLine(" {"); _writer.Indent++; _writer.Write("protected override "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); _writer.WriteLine(" CreateReader() {"); _writer.Indent++; _writer.Write("return new "); _writer.Write(readerClass); _writer.WriteLine("();"); _writer.Indent--; _writer.WriteLine("}"); _writer.Write("protected override "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); _writer.WriteLine(" CreateWriter() {"); _writer.Indent++; _writer.Write("return new "); _writer.Write(writerClass); _writer.WriteLine("();"); _writer.Indent--; _writer.WriteLine("}"); _writer.Indent--; _writer.WriteLine("}"); return baseSerializer; } internal string GenerateTypedSerializer(string? readMethod, string? writeMethod, XmlMapping mapping, CodeIdentifiers classes, string baseSerializer, string readerClass, string writerClass) { string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.Name)); serializerName = classes.AddUnique($"{serializerName}Serializer", mapping); _writer.WriteLine(); _writer.Write("public sealed class "); _writer.Write(CodeIdentifier.GetCSharpName(serializerName)); _writer.Write(" : "); _writer.Write(baseSerializer); _writer.WriteLine(" {"); _writer.Indent++; _writer.WriteLine(); _writer.Write("public override "); _writer.Write(typeof(bool).FullName); _writer.Write(" CanDeserialize("); _writer.Write(typeof(XmlReader).FullName); _writer.WriteLine(" xmlReader) {"); _writer.Indent++; if (mapping.Accessor.Any) { _writer.WriteLine("return true;"); } else { _writer.Write("return xmlReader.IsStartElement("); WriteQuotedCSharpString(mapping.Accessor.Name); _writer.Write(", "); WriteQuotedCSharpString(mapping.Accessor.Namespace); _writer.WriteLine(");"); } _writer.Indent--; _writer.WriteLine("}"); if (writeMethod != null) { _writer.WriteLine(); _writer.Write("protected override void Serialize(object objectToSerialize, "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); _writer.WriteLine(" writer) {"); _writer.Indent++; _writer.Write("(("); _writer.Write(writerClass); _writer.Write(")writer)."); _writer.Write(writeMethod); _writer.Write("("); if (mapping is XmlMembersMapping) { _writer.Write("(object[])"); } _writer.WriteLine("objectToSerialize);"); _writer.Indent--; _writer.WriteLine("}"); } if (readMethod != null) { _writer.WriteLine(); _writer.Write("protected override object Deserialize("); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); _writer.WriteLine(" reader) {"); _writer.Indent++; _writer.Write("return (("); _writer.Write(readerClass); _writer.Write(")reader)."); _writer.Write(readMethod); _writer.WriteLine("();"); _writer.Indent--; _writer.WriteLine("}"); } _writer.Indent--; _writer.WriteLine("}"); return serializerName; } private void GenerateTypedSerializers(Hashtable serializers) { string privateName = "typedSerializers"; GenerateHashtableGetBegin(privateName, "TypedSerializers"); foreach (string key in serializers.Keys) { _writer.Write("_tmp.Add("); WriteQuotedCSharpString(key); _writer.Write(", new "); _writer.Write((string?)serializers[key]); _writer.WriteLine("());"); } GenerateHashtableGetEnd("typedSerializers"); } //GenerateGetSerializer(serializers, xmlMappings); private void GenerateGetSerializer(Hashtable serializers, XmlMapping[] xmlMappings) { _writer.Write("public override "); _writer.Write(typeof(System.Xml.Serialization.XmlSerializer).FullName); _writer.Write(" GetSerializer("); _writer.Write(typeof(Type).FullName); _writer.WriteLine(" type) {"); _writer.Indent++; for (int i = 0; i < xmlMappings.Length; i++) { if (xmlMappings[i] is XmlTypeMapping) { Type? type = xmlMappings[i].Accessor.Mapping!.TypeDesc!.Type; if (type == null) continue; if (!type.IsPublic && !type.IsNestedPublic) continue; if (DynamicAssemblies.IsTypeDynamic(type)) continue; if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments())) continue; _writer.Write("if (type == typeof("); _writer.Write(CodeIdentifier.GetCSharpName(type)); _writer.Write(")) return new "); _writer.Write((string?)serializers[xmlMappings[i].Key!]); _writer.WriteLine("();"); } } _writer.WriteLine("return null;"); _writer.Indent--; _writer.WriteLine("}"); } internal void GenerateSerializerContract(string className, XmlMapping[] xmlMappings, Type?[] types, string readerType, string?[] readMethods, string writerType, string?[] writerMethods, Hashtable serializers) { _writer.WriteLine(); _writer.Write("public class XmlSerializerContract : global::"); _writer.Write(typeof(System.Xml.Serialization.XmlSerializerImplementation).FullName); _writer.WriteLine(" {"); _writer.Indent++; _writer.Write("public override global::"); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationReader).FullName); _writer.Write(" Reader { get { return new "); _writer.Write(readerType); _writer.WriteLine("(); } }"); _writer.Write("public override global::"); _writer.Write(typeof(System.Xml.Serialization.XmlSerializationWriter).FullName); _writer.Write(" Writer { get { return new "); _writer.Write(writerType); _writer.WriteLine("(); } }"); GeneratePublicMethods(nameof(readMethods), "ReadMethods", readMethods, xmlMappings); GeneratePublicMethods("writeMethods", "WriteMethods", writerMethods, xmlMappings); GenerateTypedSerializers(serializers); GenerateSupportedTypes(types); GenerateGetSerializer(serializers, xmlMappings); _writer.Indent--; _writer.WriteLine("}"); } internal static bool IsWildcard(SpecialMapping mapping) { if (mapping is SerializableMapping) return ((SerializableMapping)mapping).IsAny; return mapping.TypeDesc!.CanBeElementValue; } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Linq.Parallel/src/System/Linq/Parallel/QueryOperators/Inlined/DecimalMinMaxAggregationOperator.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // DecimalMinMaxAggregationOperator.cs // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Diagnostics; using System.Threading; namespace System.Linq.Parallel { /// <summary> /// An inlined min/max aggregation and its enumerator, for decimals. /// </summary> internal sealed class DecimalMinMaxAggregationOperator : InlinedAggregationOperator<decimal, decimal, decimal> { private readonly int _sign; // The sign (-1 for min, 1 for max). //--------------------------------------------------------------------------------------- // Constructs a new instance of a min/max associative operator. // internal DecimalMinMaxAggregationOperator(IEnumerable<decimal> child, int sign) : base(child) { Debug.Assert(sign == -1 || sign == 1, "invalid sign"); _sign = sign; } //--------------------------------------------------------------------------------------- // Executes the entire query tree, and aggregates the intermediate results into the // final result based on the binary operators and final reduction. // // Return Value: // The single result of aggregation. // protected override decimal InternalAggregate(ref Exception? singularExceptionToThrow) { // Because the final reduction is typically much cheaper than the intermediate // reductions over the individual partitions, and because each parallel partition // will do a lot of work to produce a single output element, we prefer to turn off // pipelining, and process the final reductions serially. using (IEnumerator<decimal> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, true)) { // Throw an error for empty results. if (!enumerator.MoveNext()) { singularExceptionToThrow = new InvalidOperationException(SR.NoElements); return default(decimal); } decimal best = enumerator.Current; // Based on the sign, do either a min or max reduction. if (_sign == -1) { while (enumerator.MoveNext()) { decimal current = enumerator.Current; if (current < best) { best = current; } } } else { while (enumerator.MoveNext()) { decimal current = enumerator.Current; if (current > best) { best = current; } } } return best; } } //--------------------------------------------------------------------------------------- // Creates an enumerator that is used internally for the final aggregation step. // protected override QueryOperatorEnumerator<decimal, int> CreateEnumerator<TKey>( int index, int count, QueryOperatorEnumerator<decimal, TKey> source, object? sharedData, CancellationToken cancellationToken) { return new DecimalMinMaxAggregationOperatorEnumerator<TKey>(source, index, _sign, cancellationToken); } //--------------------------------------------------------------------------------------- // This enumerator type encapsulates the intermediary aggregation over the underlying // (possibly partitioned) data source. // private sealed class DecimalMinMaxAggregationOperatorEnumerator<TKey> : InlinedAggregationOperatorEnumerator<decimal> { private readonly QueryOperatorEnumerator<decimal, TKey> _source; // The source data. private readonly int _sign; // The sign for comparisons (-1 means min, 1 means max). //--------------------------------------------------------------------------------------- // Instantiates a new aggregation operator. // internal DecimalMinMaxAggregationOperatorEnumerator(QueryOperatorEnumerator<decimal, TKey> source, int partitionIndex, int sign, CancellationToken cancellationToken) : base(partitionIndex, cancellationToken) { Debug.Assert(source != null); _source = source; _sign = sign; } //--------------------------------------------------------------------------------------- // Tallies up the min/max of the underlying data source, walking the entire thing the first // time MoveNext is called on this object. // protected override bool MoveNextCore(ref decimal currentElement) { // Based on the sign, do either a min or max reduction. QueryOperatorEnumerator<decimal, TKey> source = _source; TKey keyUnused = default(TKey)!; if (source.MoveNext(ref currentElement, ref keyUnused)) { int i = 0; // We just scroll through the enumerator and find the min or max. if (_sign == -1) { decimal elem = default(decimal); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (elem < currentElement) { currentElement = elem; } } } else { decimal elem = default(decimal); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (elem > currentElement) { currentElement = elem; } } } return true; } return false; } //--------------------------------------------------------------------------------------- // Dispose of resources associated with the underlying enumerator. // protected override void Dispose(bool disposing) { Debug.Assert(_source != null); _source.Dispose(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // DecimalMinMaxAggregationOperator.cs // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Diagnostics; using System.Threading; namespace System.Linq.Parallel { /// <summary> /// An inlined min/max aggregation and its enumerator, for decimals. /// </summary> internal sealed class DecimalMinMaxAggregationOperator : InlinedAggregationOperator<decimal, decimal, decimal> { private readonly int _sign; // The sign (-1 for min, 1 for max). //--------------------------------------------------------------------------------------- // Constructs a new instance of a min/max associative operator. // internal DecimalMinMaxAggregationOperator(IEnumerable<decimal> child, int sign) : base(child) { Debug.Assert(sign == -1 || sign == 1, "invalid sign"); _sign = sign; } //--------------------------------------------------------------------------------------- // Executes the entire query tree, and aggregates the intermediate results into the // final result based on the binary operators and final reduction. // // Return Value: // The single result of aggregation. // protected override decimal InternalAggregate(ref Exception? singularExceptionToThrow) { // Because the final reduction is typically much cheaper than the intermediate // reductions over the individual partitions, and because each parallel partition // will do a lot of work to produce a single output element, we prefer to turn off // pipelining, and process the final reductions serially. using (IEnumerator<decimal> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, true)) { // Throw an error for empty results. if (!enumerator.MoveNext()) { singularExceptionToThrow = new InvalidOperationException(SR.NoElements); return default(decimal); } decimal best = enumerator.Current; // Based on the sign, do either a min or max reduction. if (_sign == -1) { while (enumerator.MoveNext()) { decimal current = enumerator.Current; if (current < best) { best = current; } } } else { while (enumerator.MoveNext()) { decimal current = enumerator.Current; if (current > best) { best = current; } } } return best; } } //--------------------------------------------------------------------------------------- // Creates an enumerator that is used internally for the final aggregation step. // protected override QueryOperatorEnumerator<decimal, int> CreateEnumerator<TKey>( int index, int count, QueryOperatorEnumerator<decimal, TKey> source, object? sharedData, CancellationToken cancellationToken) { return new DecimalMinMaxAggregationOperatorEnumerator<TKey>(source, index, _sign, cancellationToken); } //--------------------------------------------------------------------------------------- // This enumerator type encapsulates the intermediary aggregation over the underlying // (possibly partitioned) data source. // private sealed class DecimalMinMaxAggregationOperatorEnumerator<TKey> : InlinedAggregationOperatorEnumerator<decimal> { private readonly QueryOperatorEnumerator<decimal, TKey> _source; // The source data. private readonly int _sign; // The sign for comparisons (-1 means min, 1 means max). //--------------------------------------------------------------------------------------- // Instantiates a new aggregation operator. // internal DecimalMinMaxAggregationOperatorEnumerator(QueryOperatorEnumerator<decimal, TKey> source, int partitionIndex, int sign, CancellationToken cancellationToken) : base(partitionIndex, cancellationToken) { Debug.Assert(source != null); _source = source; _sign = sign; } //--------------------------------------------------------------------------------------- // Tallies up the min/max of the underlying data source, walking the entire thing the first // time MoveNext is called on this object. // protected override bool MoveNextCore(ref decimal currentElement) { // Based on the sign, do either a min or max reduction. QueryOperatorEnumerator<decimal, TKey> source = _source; TKey keyUnused = default(TKey)!; if (source.MoveNext(ref currentElement, ref keyUnused)) { int i = 0; // We just scroll through the enumerator and find the min or max. if (_sign == -1) { decimal elem = default(decimal); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (elem < currentElement) { currentElement = elem; } } } else { decimal elem = default(decimal); while (source.MoveNext(ref elem, ref keyUnused)) { if ((i++ & CancellationState.POLL_INTERVAL) == 0) _cancellationToken.ThrowIfCancellationRequested(); if (elem > currentElement) { currentElement = elem; } } } return true; } return false; } //--------------------------------------------------------------------------------------- // Dispose of resources associated with the underlying enumerator. // protected override void Dispose(bool disposing) { Debug.Assert(_source != null); _source.Dispose(); } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNamedNodemap.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; namespace System.Xml { // Represents a collection of nodes that can be accessed by name or index. public partial class XmlNamedNodeMap : IEnumerable { internal XmlNode parent; internal SmallXmlNodeList nodes; internal XmlNamedNodeMap(XmlNode parent) { this.parent = parent; } // Retrieves a XmlNode specified by name. public virtual XmlNode? GetNamedItem(string name) { int offset = FindNodeOffset(name); if (offset >= 0) return (XmlNode)nodes[offset]; return null; } // Adds a XmlNode using its Name property public virtual XmlNode? SetNamedItem(XmlNode? node) { if (node == null) return null; int offset = FindNodeOffset(node.LocalName, node.NamespaceURI); if (offset == -1) { AddNode(node); return null; } else { return ReplaceNodeAt(offset, node); } } // Removes the node specified by name. public virtual XmlNode? RemoveNamedItem(string name) { int offset = FindNodeOffset(name); if (offset >= 0) { return RemoveNodeAt(offset); } return null; } // Gets the number of nodes in this XmlNamedNodeMap. public virtual int Count { get { return nodes.Count; } } // Retrieves the node at the specified index in this XmlNamedNodeMap. public virtual XmlNode? Item(int index) { if (index < 0 || index >= nodes.Count) return null; try { return (XmlNode)nodes[index]; } catch (ArgumentOutOfRangeException) { throw new IndexOutOfRangeException(SR.Xdom_IndexOutOfRange); } } // // DOM Level 2 // // Retrieves a node specified by LocalName and NamespaceURI. public virtual XmlNode? GetNamedItem(string localName, string? namespaceURI) { int offset = FindNodeOffset(localName, namespaceURI); if (offset >= 0) return (XmlNode)nodes[offset]; return null; } // Removes a node specified by local name and namespace URI. public virtual XmlNode? RemoveNamedItem(string localName, string? namespaceURI) { int offset = FindNodeOffset(localName, namespaceURI); if (offset >= 0) { return RemoveNodeAt(offset); } return null; } public virtual IEnumerator GetEnumerator() { return nodes.GetEnumerator(); } internal int FindNodeOffset(string name) { int c = this.Count; for (int i = 0; i < c; i++) { XmlNode node = (XmlNode)nodes[i]; if (name == node.Name) return i; } return -1; } internal int FindNodeOffset(string localName, string? namespaceURI) { int c = this.Count; for (int i = 0; i < c; i++) { XmlNode node = (XmlNode)nodes[i]; if (node.LocalName == localName && node.NamespaceURI == namespaceURI) return i; } return -1; } internal virtual XmlNode AddNode(XmlNode node) { XmlNode? oldParent; if (node.NodeType == XmlNodeType.Attribute) oldParent = ((XmlAttribute)node).OwnerElement; else oldParent = node.ParentNode; string? nodeValue = node.Value; XmlNodeChangedEventArgs? args = parent.GetEventArgs(node, oldParent, parent, nodeValue, nodeValue, XmlNodeChangedAction.Insert); if (args != null) parent.BeforeEvent(args); nodes.Add(node); node.SetParent(parent); if (args != null) parent.AfterEvent(args); return node; } internal virtual XmlNode AddNodeForLoad(XmlNode node, XmlDocument doc) { XmlNodeChangedEventArgs? args = doc.GetInsertEventArgsForLoad(node, parent); if (args != null) { doc.BeforeEvent(args); } nodes.Add(node); node.SetParent(parent); if (args != null) { doc.AfterEvent(args); } return node; } internal virtual XmlNode RemoveNodeAt(int i) { XmlNode oldNode = (XmlNode)nodes[i]; string? oldNodeValue = oldNode.Value; XmlNodeChangedEventArgs? args = parent.GetEventArgs(oldNode, parent, null, oldNodeValue, oldNodeValue, XmlNodeChangedAction.Remove); if (args != null) parent.BeforeEvent(args); nodes.RemoveAt(i); oldNode.SetParent(null); if (args != null) parent.AfterEvent(args); return oldNode; } internal XmlNode ReplaceNodeAt(int i, XmlNode node) { XmlNode oldNode = RemoveNodeAt(i); InsertNodeAt(i, node); return oldNode; } internal virtual XmlNode InsertNodeAt(int i, XmlNode node) { XmlNode? oldParent; if (node.NodeType == XmlNodeType.Attribute) oldParent = ((XmlAttribute)node).OwnerElement; else oldParent = node.ParentNode; string? nodeValue = node.Value; XmlNodeChangedEventArgs? args = parent.GetEventArgs(node, oldParent, parent, nodeValue, nodeValue, XmlNodeChangedAction.Insert); if (args != null) parent.BeforeEvent(args); nodes.Insert(i, node); node.SetParent(parent); if (args != null) parent.AfterEvent(args); return node; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; namespace System.Xml { // Represents a collection of nodes that can be accessed by name or index. public partial class XmlNamedNodeMap : IEnumerable { internal XmlNode parent; internal SmallXmlNodeList nodes; internal XmlNamedNodeMap(XmlNode parent) { this.parent = parent; } // Retrieves a XmlNode specified by name. public virtual XmlNode? GetNamedItem(string name) { int offset = FindNodeOffset(name); if (offset >= 0) return (XmlNode)nodes[offset]; return null; } // Adds a XmlNode using its Name property public virtual XmlNode? SetNamedItem(XmlNode? node) { if (node == null) return null; int offset = FindNodeOffset(node.LocalName, node.NamespaceURI); if (offset == -1) { AddNode(node); return null; } else { return ReplaceNodeAt(offset, node); } } // Removes the node specified by name. public virtual XmlNode? RemoveNamedItem(string name) { int offset = FindNodeOffset(name); if (offset >= 0) { return RemoveNodeAt(offset); } return null; } // Gets the number of nodes in this XmlNamedNodeMap. public virtual int Count { get { return nodes.Count; } } // Retrieves the node at the specified index in this XmlNamedNodeMap. public virtual XmlNode? Item(int index) { if (index < 0 || index >= nodes.Count) return null; try { return (XmlNode)nodes[index]; } catch (ArgumentOutOfRangeException) { throw new IndexOutOfRangeException(SR.Xdom_IndexOutOfRange); } } // // DOM Level 2 // // Retrieves a node specified by LocalName and NamespaceURI. public virtual XmlNode? GetNamedItem(string localName, string? namespaceURI) { int offset = FindNodeOffset(localName, namespaceURI); if (offset >= 0) return (XmlNode)nodes[offset]; return null; } // Removes a node specified by local name and namespace URI. public virtual XmlNode? RemoveNamedItem(string localName, string? namespaceURI) { int offset = FindNodeOffset(localName, namespaceURI); if (offset >= 0) { return RemoveNodeAt(offset); } return null; } public virtual IEnumerator GetEnumerator() { return nodes.GetEnumerator(); } internal int FindNodeOffset(string name) { int c = this.Count; for (int i = 0; i < c; i++) { XmlNode node = (XmlNode)nodes[i]; if (name == node.Name) return i; } return -1; } internal int FindNodeOffset(string localName, string? namespaceURI) { int c = this.Count; for (int i = 0; i < c; i++) { XmlNode node = (XmlNode)nodes[i]; if (node.LocalName == localName && node.NamespaceURI == namespaceURI) return i; } return -1; } internal virtual XmlNode AddNode(XmlNode node) { XmlNode? oldParent; if (node.NodeType == XmlNodeType.Attribute) oldParent = ((XmlAttribute)node).OwnerElement; else oldParent = node.ParentNode; string? nodeValue = node.Value; XmlNodeChangedEventArgs? args = parent.GetEventArgs(node, oldParent, parent, nodeValue, nodeValue, XmlNodeChangedAction.Insert); if (args != null) parent.BeforeEvent(args); nodes.Add(node); node.SetParent(parent); if (args != null) parent.AfterEvent(args); return node; } internal virtual XmlNode AddNodeForLoad(XmlNode node, XmlDocument doc) { XmlNodeChangedEventArgs? args = doc.GetInsertEventArgsForLoad(node, parent); if (args != null) { doc.BeforeEvent(args); } nodes.Add(node); node.SetParent(parent); if (args != null) { doc.AfterEvent(args); } return node; } internal virtual XmlNode RemoveNodeAt(int i) { XmlNode oldNode = (XmlNode)nodes[i]; string? oldNodeValue = oldNode.Value; XmlNodeChangedEventArgs? args = parent.GetEventArgs(oldNode, parent, null, oldNodeValue, oldNodeValue, XmlNodeChangedAction.Remove); if (args != null) parent.BeforeEvent(args); nodes.RemoveAt(i); oldNode.SetParent(null); if (args != null) parent.AfterEvent(args); return oldNode; } internal XmlNode ReplaceNodeAt(int i, XmlNode node) { XmlNode oldNode = RemoveNodeAt(i); InsertNodeAt(i, node); return oldNode; } internal virtual XmlNode InsertNodeAt(int i, XmlNode node) { XmlNode? oldParent; if (node.NodeType == XmlNodeType.Attribute) oldParent = ((XmlAttribute)node).OwnerElement; else oldParent = node.ParentNode; string? nodeValue = node.Value; XmlNodeChangedEventArgs? args = parent.GetEventArgs(node, oldParent, parent, nodeValue, nodeValue, XmlNodeChangedAction.Insert); if (args != null) parent.BeforeEvent(args); nodes.Insert(i, node); node.SetParent(parent); if (args != null) parent.AfterEvent(args); return node; } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/Microsoft.VisualBasic.Core/tests/InteractionTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace Microsoft.VisualBasic.Tests { public class InteractionTests { [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void AppActivate_ProcessId() { InvokeMissingMethod(() => Interaction.AppActivate(42)); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void AppActivate_Title() { InvokeMissingMethod(() => Interaction.AppActivate("MyProcess")); } [Theory] [MemberData(nameof(CallByName_TestData))] public void CallByName(object instance, string methodName, CallType useCallType, object[] args, Func<object, object> getResult, object expected) { Assert.Equal(getResult is null ? expected : null, Interaction.CallByName(instance, methodName, useCallType, args)); if (getResult != null) { Assert.Equal(expected, getResult(instance)); } } [Theory] [MemberData(nameof(CallByName_ArgumentException_TestData))] public void CallByName_ArgumentException(object instance, string methodName, CallType useCallType, object[] args) { Assert.Throws<ArgumentException>(() => Interaction.CallByName(instance, methodName, useCallType, args)); } [Theory] [MemberData(nameof(CallByName_MissingMemberException_TestData))] public void CallByName_MissingMemberException(object instance, string methodName, CallType useCallType, object[] args) { Assert.Throws<MissingMemberException>(() => Interaction.CallByName(instance, methodName, useCallType, args)); } public static IEnumerable<object[]> CallByName_TestData() { yield return new object[] { new Class(), "Method", CallType.Method, new object[] { 1, 2 }, null, 3 }; yield return new object[] { new Class(), "Method", CallType.Get, new object[] { 2, 3 }, null, 5 }; yield return new object[] { new Class(), "P", CallType.Get, new object[0], null, 0 }; yield return new object[] { new Class(), "Item", CallType.Get, new object[] { 2 }, null, 2 }; yield return new object[] { new Class(), "P", CallType.Set, new object[] { 3 }, new Func<object, object>(obj => ((Class)obj).Value), 3 }; yield return new object[] { new Class(), "Item", CallType.Let, new object[] { 4, 5 }, new Func<object, object>(obj => ((Class)obj).Value), 9 }; } public static IEnumerable<object[]> CallByName_ArgumentException_TestData() { yield return new object[] { null, null, default(CallType), new object[0] }; yield return new object[] { new Class(), "Method", default(CallType), new object[] { 1, 2 } }; yield return new object[] { new Class(), "Method", (CallType)int.MaxValue, new object[] { 1, 2 } }; } public static IEnumerable<object[]> CallByName_MissingMemberException_TestData() { yield return new object[] { new Class(), "Method", CallType.Method, new object[0] }; yield return new object[] { new Class(), "Q", CallType.Get, new object[0] }; } private sealed class Class { public int Value; public int Method(int x, int y) => x + y; public int P { get { return Value; } set { Value = value; } } public object this[object index] { get { return Value + (int)index; } set { Value = (int)value + (int)index; } } } [Fact] public void Choose() { object[] x = { "Choice1", "Choice2", "Choice3", "Choice4", "Choice5", "Choice6" }; Assert.Null(Interaction.Choose(5)); Assert.Null(Interaction.Choose(0, x)); // < 1 Assert.Null(Interaction.Choose(x.Length + 1, x)); // > UpperBound Assert.Equal(2, Interaction.Choose(2, 1, 2, 3)); Assert.Equal("Choice3", Interaction.Choose(3, x[0], x[1], x[2])); for (int i = 1; i <= x.Length; i++) { Assert.Equal(x[i - 1], Interaction.Choose(i, x)); } } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50572", TestPlatforms.Android)] [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Command() { var expected = Environment.CommandLine; var actual = Interaction.Command(); Assert.False(string.IsNullOrEmpty(actual)); Assert.EndsWith(actual, expected); } [Fact] public void CreateObject() { Assert.Throws<NullReferenceException>(() => Interaction.CreateObject(null)); Assert.Throws<Exception>(() => Interaction.CreateObject("")); // Not tested: valid ProgID. } [Theory] [MemberData(nameof(IIf_TestData))] public void IIf(bool expression, object truePart, object falsePart, object expected) { Assert.Equal(expected, Interaction.IIf(expression, truePart, falsePart)); } public static IEnumerable<object[]> IIf_TestData() { yield return new object[] { false, 1, null, null }; yield return new object[] { true, 1, null, 1 }; yield return new object[] { false, null, 2, 2 }; yield return new object[] { true, null, 2, null }; yield return new object[] { false, 3, "str", "str" }; yield return new object[] { true, 3, "str", 3 }; } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void DeleteSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.DeleteSetting(AppName: "", Section: null, Key: null)); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.DeleteSetting(AppName: "", Section: null, Key: null)); } // Not tested: valid arguments. } [Fact] public void Environ_Index() { var pairs = GetEnvironmentVariables(); int n = Math.Min(pairs.Length, 255); // Exception.ToString() called to verify message is constructed successfully. _ = Assert.Throws<ArgumentException>(() => Interaction.Environ(0)).ToString(); _ = Assert.Throws<ArgumentException>(() => Interaction.Environ(256)).ToString(); for (int i = 0; i < n; i++) { var pair = pairs[i]; Assert.Equal($"{pair.Item1}={pair.Item2}", Interaction.Environ(i + 1)); } for (int i = n; i < 255; i++) { Assert.Equal("", Interaction.Environ(i + 1)); } } [Fact] public void Environ_Name() { var pairs = GetEnvironmentVariables(); // Exception.ToString() called to verify message is constructed successfully. _ = Assert.Throws<ArgumentException>(() => Interaction.Environ("")).ToString(); _ = Assert.Throws<ArgumentException>(() => Interaction.Environ(" ")).ToString(); foreach (var (key, value) in pairs) { Assert.Equal(value, Interaction.Environ(key)); } if (pairs.Length > 0) { var (key, value) = pairs[pairs.Length - 1]; Assert.Equal(value, Interaction.Environ(" " + key)); Assert.Equal(value, Interaction.Environ(key + " ")); Assert.Null(Interaction.Environ(key + "z")); } } private static (string, string)[] GetEnvironmentVariables() { var pairs = new List<(string, string)>(); var vars = Environment.GetEnvironmentVariables(); foreach (var key in vars.Keys) { pairs.Add(((string)key, (string)vars[key])); } return pairs.OrderBy(pair => pair.Item1).ToArray(); } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void GetAllSettings() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.GetAllSettings(AppName: "", Section: "")); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.GetAllSettings(AppName: "", Section: "")); } // Not tested: valid arguments. } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void GetSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.GetSetting(AppName: "", Section: "", Key: "", Default: "")); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.GetSetting(AppName: "", Section: "", Key: "", Default: "")); } // Not tested: valid arguments. } [Fact] public void GetObject() { Assert.Throws<Exception>(() => Interaction.GetObject()); Assert.Throws<Exception>(() => Interaction.GetObject("", null)); Assert.Throws<Exception>(() => Interaction.GetObject(null, "")); Assert.Throws<Exception>(() => Interaction.GetObject("", "")); // Not tested: valid arguments. } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void InputBox() { InvokeMissingMethod(() => Interaction.InputBox("Prompt", Title: "", DefaultResponse: "", XPos: -1, YPos: -1)); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void MsgBox() { InvokeMissingMethod(() => Interaction.MsgBox("Prompt", Buttons: MsgBoxStyle.ApplicationModal, Title: null)); } [Theory] [InlineData(0, 1, 2, 1, " :0")] [InlineData(1, 1, 2, 1, "1:1")] [InlineData(2, 1, 2, 1, "2:2")] [InlineData(3, 1, 2, 1, "3: ")] [InlineData(10, 1, 9, 1, "10: ")] [InlineData(-1, 0, 1, 1, " :-1")] [InlineData(-50, 0, 1, 1, " :-1")] [InlineData(0, 1, 100, 10, " : 0")] [InlineData(1, 1, 100, 10, " 1: 10")] [InlineData(15, 1, 100, 10, " 11: 20")] [InlineData(25, 1, 100, 10, " 21: 30")] [InlineData(35, 1, 100, 10, " 31: 40")] [InlineData(45, 1, 100, 10, " 41: 50")] [InlineData(50, 40, 100, 10, " 50: 59")] [InlineData(120, 100, 200, 10, "120:129")] [InlineData(150, 100, 120, 10, "121: ")] [InlineData(5001, 1, 10000, 100, " 5001: 5100")] [InlineData(1, 0, 1, long.MaxValue, " 0: 1")] [InlineData(1, 0, long.MaxValue - 1, long.MaxValue, " 0:9223372036854775806")] [InlineData(long.MaxValue, 0, long.MaxValue - 1, 1, "9223372036854775807: ")] [InlineData(long.MaxValue - 1, 0, long.MaxValue - 1, 1, "9223372036854775806:9223372036854775806")] public void Partition(long Number, long Start, long Stop, long Interval, string expected) { Assert.Equal(expected, Interaction.Partition(Number, Start, Stop, Interval)); } [Theory] [InlineData(0, -1, 100, 10)] // Start < 0 [InlineData(0, 100, 100, 10)] // Stop <= Start [InlineData(0, 1, 100, 0)] // Interval < 1 public void Partition_Invalid(long Number, long Start, long Stop, long Interval) { Assert.Throws<ArgumentException>(() => Interaction.Partition(Number, Start, Stop, Interval)); } [Theory] [InlineData(1, 0, long.MaxValue, 1)] // Stop + 1 [InlineData(1, 0, long.MaxValue, long.MaxValue)] [InlineData(2, 1, 2, long.MaxValue)] // Lower + Interval [InlineData(long.MaxValue - 1, long.MaxValue - 1, long.MaxValue, 1)] public void Partition_Overflow(long Number, long Start, long Stop, long Interval) { Assert.Throws<OverflowException>(() => Interaction.Partition(Number, Start, Stop, Interval)); } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void SaveSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.SaveSetting(AppName: "", Section: "", Key: "", Setting: "")); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.SaveSetting(AppName: "", Section: "", Key: "", Setting: "")); } // Not tested: valid arguments. } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void Shell() { InvokeMissingMethod(() => Interaction.Shell("MyPath", Style: AppWinStyle.NormalFocus, Wait: false, Timeout: -1)); } [Theory] [InlineData(null, null)] // empty [InlineData(new object[0], null)] // empty [InlineData(new object[] { false, "red", false, "green", false, "blue" }, null)] // none [InlineData(new object[] { true, "red", false, "green", false, "blue" }, "red")] [InlineData(new object[] { false, "red", true, "green", false, "blue" }, "green")] [InlineData(new object[] { false, "red", false, "green", true, "blue" }, "blue")] public void Switch(object[] VarExpr, object expected) { Assert.Equal(expected, Interaction.Switch(VarExpr)); } [Fact] public void Switch_Invalid() { Assert.Throws<ArgumentException>(() => Interaction.Switch(true, "a", false)); } // Methods that rely on reflection of missing assembly. private static void InvokeMissingMethod(Action action) { // Exception.ToString() called to verify message is constructed successfully. _ = Assert.Throws<PlatformNotSupportedException>(action).ToString(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace Microsoft.VisualBasic.Tests { public class InteractionTests { [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void AppActivate_ProcessId() { InvokeMissingMethod(() => Interaction.AppActivate(42)); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void AppActivate_Title() { InvokeMissingMethod(() => Interaction.AppActivate("MyProcess")); } [Theory] [MemberData(nameof(CallByName_TestData))] public void CallByName(object instance, string methodName, CallType useCallType, object[] args, Func<object, object> getResult, object expected) { Assert.Equal(getResult is null ? expected : null, Interaction.CallByName(instance, methodName, useCallType, args)); if (getResult != null) { Assert.Equal(expected, getResult(instance)); } } [Theory] [MemberData(nameof(CallByName_ArgumentException_TestData))] public void CallByName_ArgumentException(object instance, string methodName, CallType useCallType, object[] args) { Assert.Throws<ArgumentException>(() => Interaction.CallByName(instance, methodName, useCallType, args)); } [Theory] [MemberData(nameof(CallByName_MissingMemberException_TestData))] public void CallByName_MissingMemberException(object instance, string methodName, CallType useCallType, object[] args) { Assert.Throws<MissingMemberException>(() => Interaction.CallByName(instance, methodName, useCallType, args)); } public static IEnumerable<object[]> CallByName_TestData() { yield return new object[] { new Class(), "Method", CallType.Method, new object[] { 1, 2 }, null, 3 }; yield return new object[] { new Class(), "Method", CallType.Get, new object[] { 2, 3 }, null, 5 }; yield return new object[] { new Class(), "P", CallType.Get, new object[0], null, 0 }; yield return new object[] { new Class(), "Item", CallType.Get, new object[] { 2 }, null, 2 }; yield return new object[] { new Class(), "P", CallType.Set, new object[] { 3 }, new Func<object, object>(obj => ((Class)obj).Value), 3 }; yield return new object[] { new Class(), "Item", CallType.Let, new object[] { 4, 5 }, new Func<object, object>(obj => ((Class)obj).Value), 9 }; } public static IEnumerable<object[]> CallByName_ArgumentException_TestData() { yield return new object[] { null, null, default(CallType), new object[0] }; yield return new object[] { new Class(), "Method", default(CallType), new object[] { 1, 2 } }; yield return new object[] { new Class(), "Method", (CallType)int.MaxValue, new object[] { 1, 2 } }; } public static IEnumerable<object[]> CallByName_MissingMemberException_TestData() { yield return new object[] { new Class(), "Method", CallType.Method, new object[0] }; yield return new object[] { new Class(), "Q", CallType.Get, new object[0] }; } private sealed class Class { public int Value; public int Method(int x, int y) => x + y; public int P { get { return Value; } set { Value = value; } } public object this[object index] { get { return Value + (int)index; } set { Value = (int)value + (int)index; } } } [Fact] public void Choose() { object[] x = { "Choice1", "Choice2", "Choice3", "Choice4", "Choice5", "Choice6" }; Assert.Null(Interaction.Choose(5)); Assert.Null(Interaction.Choose(0, x)); // < 1 Assert.Null(Interaction.Choose(x.Length + 1, x)); // > UpperBound Assert.Equal(2, Interaction.Choose(2, 1, 2, 3)); Assert.Equal("Choice3", Interaction.Choose(3, x[0], x[1], x[2])); for (int i = 1; i <= x.Length; i++) { Assert.Equal(x[i - 1], Interaction.Choose(i, x)); } } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/50572", TestPlatforms.Android)] [ActiveIssue("https://github.com/dotnet/runtime/issues/51392", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)] public void Command() { var expected = Environment.CommandLine; var actual = Interaction.Command(); Assert.False(string.IsNullOrEmpty(actual)); Assert.EndsWith(actual, expected); } [Fact] public void CreateObject() { Assert.Throws<NullReferenceException>(() => Interaction.CreateObject(null)); Assert.Throws<Exception>(() => Interaction.CreateObject("")); // Not tested: valid ProgID. } [Theory] [MemberData(nameof(IIf_TestData))] public void IIf(bool expression, object truePart, object falsePart, object expected) { Assert.Equal(expected, Interaction.IIf(expression, truePart, falsePart)); } public static IEnumerable<object[]> IIf_TestData() { yield return new object[] { false, 1, null, null }; yield return new object[] { true, 1, null, 1 }; yield return new object[] { false, null, 2, 2 }; yield return new object[] { true, null, 2, null }; yield return new object[] { false, 3, "str", "str" }; yield return new object[] { true, 3, "str", 3 }; } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void DeleteSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.DeleteSetting(AppName: "", Section: null, Key: null)); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.DeleteSetting(AppName: "", Section: null, Key: null)); } // Not tested: valid arguments. } [Fact] public void Environ_Index() { var pairs = GetEnvironmentVariables(); int n = Math.Min(pairs.Length, 255); // Exception.ToString() called to verify message is constructed successfully. _ = Assert.Throws<ArgumentException>(() => Interaction.Environ(0)).ToString(); _ = Assert.Throws<ArgumentException>(() => Interaction.Environ(256)).ToString(); for (int i = 0; i < n; i++) { var pair = pairs[i]; Assert.Equal($"{pair.Item1}={pair.Item2}", Interaction.Environ(i + 1)); } for (int i = n; i < 255; i++) { Assert.Equal("", Interaction.Environ(i + 1)); } } [Fact] public void Environ_Name() { var pairs = GetEnvironmentVariables(); // Exception.ToString() called to verify message is constructed successfully. _ = Assert.Throws<ArgumentException>(() => Interaction.Environ("")).ToString(); _ = Assert.Throws<ArgumentException>(() => Interaction.Environ(" ")).ToString(); foreach (var (key, value) in pairs) { Assert.Equal(value, Interaction.Environ(key)); } if (pairs.Length > 0) { var (key, value) = pairs[pairs.Length - 1]; Assert.Equal(value, Interaction.Environ(" " + key)); Assert.Equal(value, Interaction.Environ(key + " ")); Assert.Null(Interaction.Environ(key + "z")); } } private static (string, string)[] GetEnvironmentVariables() { var pairs = new List<(string, string)>(); var vars = Environment.GetEnvironmentVariables(); foreach (var key in vars.Keys) { pairs.Add(((string)key, (string)vars[key])); } return pairs.OrderBy(pair => pair.Item1).ToArray(); } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void GetAllSettings() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.GetAllSettings(AppName: "", Section: "")); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.GetAllSettings(AppName: "", Section: "")); } // Not tested: valid arguments. } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void GetSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.GetSetting(AppName: "", Section: "", Key: "", Default: "")); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.GetSetting(AppName: "", Section: "", Key: "", Default: "")); } // Not tested: valid arguments. } [Fact] public void GetObject() { Assert.Throws<Exception>(() => Interaction.GetObject()); Assert.Throws<Exception>(() => Interaction.GetObject("", null)); Assert.Throws<Exception>(() => Interaction.GetObject(null, "")); Assert.Throws<Exception>(() => Interaction.GetObject("", "")); // Not tested: valid arguments. } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void InputBox() { InvokeMissingMethod(() => Interaction.InputBox("Prompt", Title: "", DefaultResponse: "", XPos: -1, YPos: -1)); } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void MsgBox() { InvokeMissingMethod(() => Interaction.MsgBox("Prompt", Buttons: MsgBoxStyle.ApplicationModal, Title: null)); } [Theory] [InlineData(0, 1, 2, 1, " :0")] [InlineData(1, 1, 2, 1, "1:1")] [InlineData(2, 1, 2, 1, "2:2")] [InlineData(3, 1, 2, 1, "3: ")] [InlineData(10, 1, 9, 1, "10: ")] [InlineData(-1, 0, 1, 1, " :-1")] [InlineData(-50, 0, 1, 1, " :-1")] [InlineData(0, 1, 100, 10, " : 0")] [InlineData(1, 1, 100, 10, " 1: 10")] [InlineData(15, 1, 100, 10, " 11: 20")] [InlineData(25, 1, 100, 10, " 21: 30")] [InlineData(35, 1, 100, 10, " 31: 40")] [InlineData(45, 1, 100, 10, " 41: 50")] [InlineData(50, 40, 100, 10, " 50: 59")] [InlineData(120, 100, 200, 10, "120:129")] [InlineData(150, 100, 120, 10, "121: ")] [InlineData(5001, 1, 10000, 100, " 5001: 5100")] [InlineData(1, 0, 1, long.MaxValue, " 0: 1")] [InlineData(1, 0, long.MaxValue - 1, long.MaxValue, " 0:9223372036854775806")] [InlineData(long.MaxValue, 0, long.MaxValue - 1, 1, "9223372036854775807: ")] [InlineData(long.MaxValue - 1, 0, long.MaxValue - 1, 1, "9223372036854775806:9223372036854775806")] public void Partition(long Number, long Start, long Stop, long Interval, string expected) { Assert.Equal(expected, Interaction.Partition(Number, Start, Stop, Interval)); } [Theory] [InlineData(0, -1, 100, 10)] // Start < 0 [InlineData(0, 100, 100, 10)] // Stop <= Start [InlineData(0, 1, 100, 0)] // Interval < 1 public void Partition_Invalid(long Number, long Start, long Stop, long Interval) { Assert.Throws<ArgumentException>(() => Interaction.Partition(Number, Start, Stop, Interval)); } [Theory] [InlineData(1, 0, long.MaxValue, 1)] // Stop + 1 [InlineData(1, 0, long.MaxValue, long.MaxValue)] [InlineData(2, 1, 2, long.MaxValue)] // Lower + Interval [InlineData(long.MaxValue - 1, long.MaxValue - 1, long.MaxValue, 1)] public void Partition_Overflow(long Number, long Start, long Stop, long Interval) { Assert.Throws<OverflowException>(() => Interaction.Partition(Number, Start, Stop, Interval)); } [Fact] [ActiveIssue("https://github.com/dotnet/runtime/issues/2139", TestRuntimes.Mono)] public void SaveSetting() { if (!PlatformDetection.IsInAppContainer) { Assert.Throws<ArgumentException>(() => Interaction.SaveSetting(AppName: "", Section: "", Key: "", Setting: "")); } else { Assert.Throws<PlatformNotSupportedException>(() => Interaction.SaveSetting(AppName: "", Section: "", Key: "", Setting: "")); } // Not tested: valid arguments. } [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNetCore))] public void Shell() { InvokeMissingMethod(() => Interaction.Shell("MyPath", Style: AppWinStyle.NormalFocus, Wait: false, Timeout: -1)); } [Theory] [InlineData(null, null)] // empty [InlineData(new object[0], null)] // empty [InlineData(new object[] { false, "red", false, "green", false, "blue" }, null)] // none [InlineData(new object[] { true, "red", false, "green", false, "blue" }, "red")] [InlineData(new object[] { false, "red", true, "green", false, "blue" }, "green")] [InlineData(new object[] { false, "red", false, "green", true, "blue" }, "blue")] public void Switch(object[] VarExpr, object expected) { Assert.Equal(expected, Interaction.Switch(VarExpr)); } [Fact] public void Switch_Invalid() { Assert.Throws<ArgumentException>(() => Interaction.Switch(true, "a", false)); } // Methods that rely on reflection of missing assembly. private static void InvokeMissingMethod(Action action) { // Exception.ToString() called to verify message is constructed successfully. _ = Assert.Throws<PlatformNotSupportedException>(action).ToString(); } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/SHAHashProvider.Browser.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Diagnostics; using Internal.Cryptography; using static System.Numerics.BitOperations; namespace System.Security.Cryptography { internal sealed class SHAHashProvider : HashProvider { private int hashSizeInBytes; private SHAManagedImplementationBase impl; private MemoryStream? buffer; public SHAHashProvider(string hashAlgorithmId) { switch (hashAlgorithmId) { case HashAlgorithmNames.SHA1: impl = new SHA1ManagedImplementation(); hashSizeInBytes = 20; break; case HashAlgorithmNames.SHA256: impl = new SHA256ManagedImplementation(); hashSizeInBytes = 32; break; case HashAlgorithmNames.SHA384: impl = new SHA384ManagedImplementation(); hashSizeInBytes = 48; break; case HashAlgorithmNames.SHA512: impl = new SHA512ManagedImplementation(); hashSizeInBytes = 64; break; default: throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmId)); } } public override void AppendHashData(ReadOnlySpan<byte> data) { if (buffer == null) { buffer = new MemoryStream(1000); } buffer.Write(data); } public override int FinalizeHashAndReset(Span<byte> destination) { GetCurrentHash(destination); buffer = null; return hashSizeInBytes; } public override int GetCurrentHash(Span<byte> destination) { Debug.Assert(destination.Length >= hashSizeInBytes); impl.Initialize(); if (buffer != null) { impl.HashCore(buffer.GetBuffer(), 0, (int)buffer.Length); } impl.HashFinal().CopyTo(destination); return hashSizeInBytes; } public override int HashSizeInBytes => hashSizeInBytes; public override void Reset() { buffer = null; impl.Initialize(); } public override void Dispose(bool disposing) { } private abstract class SHAManagedImplementationBase { public abstract void Initialize(); public abstract void HashCore(byte[] partIn, int ibStart, int cbSize); public abstract byte[] HashFinal(); } private sealed class SHA1ManagedImplementation : SHAManagedImplementationBase { // It's ok to use a "non-secret purposes" hashing implementation here, as this is only // used in wasm scenarios, and as of the current release we don't make any security guarantees // about our crypto primitives in wasm environments. private Sha1ForNonSecretPurposes _state; // mutable struct - don't make readonly public override void Initialize() { _state = default; _state.Start(); } public override void HashCore(byte[] partIn, int ibStart, int cbSize) { _state.Append(partIn.AsSpan(ibStart, cbSize)); } public override byte[] HashFinal() { byte[] output = new byte[20]; _state.Finish(output); return output; } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/sha256managed.cs private sealed class SHA256ManagedImplementation : SHAManagedImplementationBase { private byte[] _buffer; private long _count; // Number of bytes in the hashed message private uint[] _stateSHA256; private uint[] _W; public SHA256ManagedImplementation() { _stateSHA256 = new uint[8]; _buffer = new byte[64]; _W = new uint[64]; InitializeState(); } public override void Initialize() { InitializeState(); // Zeroize potentially sensitive information. Array.Clear(_buffer, 0, _buffer.Length); Array.Clear(_W, 0, _W.Length); } private void InitializeState() { _count = 0; _stateSHA256[0] = 0x6a09e667; _stateSHA256[1] = 0xbb67ae85; _stateSHA256[2] = 0x3c6ef372; _stateSHA256[3] = 0xa54ff53a; _stateSHA256[4] = 0x510e527f; _stateSHA256[5] = 0x9b05688c; _stateSHA256[6] = 0x1f83d9ab; _stateSHA256[7] = 0x5be0cd19; } /* SHA256 block update operation. Continues an SHA message-digest operation, processing another message block, and updating the context. */ public override unsafe void HashCore(byte[] partIn, int ibStart, int cbSize) { int bufferLen; int partInLen = cbSize; int partInBase = ibStart; /* Compute length of buffer */ bufferLen = (int)(_count & 0x3f); /* Update number of bytes */ _count += partInLen; fixed (uint* stateSHA256 = _stateSHA256) { fixed (byte* buffer = _buffer) { fixed (uint* expandedBuffer = _W) { if ((bufferLen > 0) && (bufferLen + partInLen >= 64)) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, 64 - bufferLen); partInBase += (64 - bufferLen); partInLen -= (64 - bufferLen); SHATransform(expandedBuffer, stateSHA256, buffer); bufferLen = 0; } /* Copy input to temporary buffer and hash */ while (partInLen >= 64) { Buffer.BlockCopy(partIn, partInBase, _buffer, 0, 64); partInBase += 64; partInLen -= 64; SHATransform(expandedBuffer, stateSHA256, buffer); } if (partInLen > 0) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen); } } } } } /* SHA256 finalization. Ends an SHA256 message-digest operation, writing the message digest. */ public override byte[] HashFinal() { byte[] pad; int padLen; long bitCount; byte[] hash = new byte[32]; // HashSizeValue = 256 /* Compute padding: 80 00 00 ... 00 00 <bit count> */ padLen = 64 - (int)(_count & 0x3f); if (padLen <= 8) padLen += 64; pad = new byte[padLen]; pad[0] = 0x80; // Convert count to bit count bitCount = _count * 8; pad[padLen - 8] = (byte)((bitCount >> 56) & 0xff); pad[padLen - 7] = (byte)((bitCount >> 48) & 0xff); pad[padLen - 6] = (byte)((bitCount >> 40) & 0xff); pad[padLen - 5] = (byte)((bitCount >> 32) & 0xff); pad[padLen - 4] = (byte)((bitCount >> 24) & 0xff); pad[padLen - 3] = (byte)((bitCount >> 16) & 0xff); pad[padLen - 2] = (byte)((bitCount >> 8) & 0xff); pad[padLen - 1] = (byte)((bitCount >> 0) & 0xff); /* Digest padding */ HashCore(pad, 0, pad.Length); /* Store digest */ SHAUtils.DWORDToBigEndian(hash, _stateSHA256, 8); return hash; } private static readonly uint[] _K = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 }; private static unsafe void SHATransform(uint* expandedBuffer, uint* state, byte* block) { uint a, b, c, d, e, f, h, g; uint aa, bb, cc, dd, ee, ff, hh, gg; uint T1; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7]; // fill in the first 16 bytes of W. SHAUtils.DWORDFromBigEndian(expandedBuffer, 16, block); SHA256Expand(expandedBuffer); /* Apply the SHA256 compression function */ // We are trying to be smart here and avoid as many copies as we can // The perf gain with this method over the straightforward modify and shift // forward is >= 20%, so it's worth the pain for (int j = 0; j < 64;) { T1 = h + Sigma_1(e) + Ch(e, f, g) + _K[j] + expandedBuffer[j]; ee = d + T1; aa = T1 + Sigma_0(a) + Maj(a, b, c); j++; T1 = g + Sigma_1(ee) + Ch(ee, e, f) + _K[j] + expandedBuffer[j]; ff = c + T1; bb = T1 + Sigma_0(aa) + Maj(aa, a, b); j++; T1 = f + Sigma_1(ff) + Ch(ff, ee, e) + _K[j] + expandedBuffer[j]; gg = b + T1; cc = T1 + Sigma_0(bb) + Maj(bb, aa, a); j++; T1 = e + Sigma_1(gg) + Ch(gg, ff, ee) + _K[j] + expandedBuffer[j]; hh = a + T1; dd = T1 + Sigma_0(cc) + Maj(cc, bb, aa); j++; T1 = ee + Sigma_1(hh) + Ch(hh, gg, ff) + _K[j] + expandedBuffer[j]; h = aa + T1; d = T1 + Sigma_0(dd) + Maj(dd, cc, bb); j++; T1 = ff + Sigma_1(h) + Ch(h, hh, gg) + _K[j] + expandedBuffer[j]; g = bb + T1; c = T1 + Sigma_0(d) + Maj(d, dd, cc); j++; T1 = gg + Sigma_1(g) + Ch(g, h, hh) + _K[j] + expandedBuffer[j]; f = cc + T1; b = T1 + Sigma_0(c) + Maj(c, d, dd); j++; T1 = hh + Sigma_1(f) + Ch(f, g, h) + _K[j] + expandedBuffer[j]; e = dd + T1; a = T1 + Sigma_0(b) + Maj(b, c, d); j++; } state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; state[5] += f; state[6] += g; state[7] += h; } private static uint Ch(uint x, uint y, uint z) { return ((x & y) ^ ((x ^ 0xffffffff) & z)); } private static uint Maj(uint x, uint y, uint z) { return ((x & y) ^ (x & z) ^ (y & z)); } private static uint sigma_0(uint x) { return (RotateRight(x, 7) ^ RotateRight(x, 18) ^ (x >> 3)); } private static uint sigma_1(uint x) { return (RotateRight(x, 17) ^ RotateRight(x, 19) ^ (x >> 10)); } private static uint Sigma_0(uint x) { return (RotateRight(x, 2) ^ RotateRight(x, 13) ^ RotateRight(x, 22)); } private static uint Sigma_1(uint x) { return (RotateRight(x, 6) ^ RotateRight(x, 11) ^ RotateRight(x, 25)); } /* This function creates W_16,...,W_63 according to the formula W_j <- sigma_1(W_{j-2}) + W_{j-7} + sigma_0(W_{j-15}) + W_{j-16}; */ private static unsafe void SHA256Expand(uint* x) { for (int i = 16; i < 64; i++) { x[i] = sigma_1(x[i - 2]) + x[i - 7] + sigma_0(x[i - 15]) + x[i - 16]; } } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/sha384managed.cs private sealed class SHA384ManagedImplementation : SHAManagedImplementationBase { private byte[] _buffer; private ulong _count; // Number of bytes in the hashed message private ulong[] _stateSHA384; private ulong[] _W; public SHA384ManagedImplementation() { _stateSHA384 = new ulong[8]; _buffer = new byte[128]; _W = new ulong[80]; InitializeState(); } public override void Initialize() { InitializeState(); // Zeroize potentially sensitive information. Array.Clear(_buffer, 0, _buffer.Length); Array.Clear(_W, 0, _W.Length); } private void InitializeState() { _count = 0; _stateSHA384[0] = 0xcbbb9d5dc1059ed8; _stateSHA384[1] = 0x629a292a367cd507; _stateSHA384[2] = 0x9159015a3070dd17; _stateSHA384[3] = 0x152fecd8f70e5939; _stateSHA384[4] = 0x67332667ffc00b31; _stateSHA384[5] = 0x8eb44a8768581511; _stateSHA384[6] = 0xdb0c2e0d64f98fa7; _stateSHA384[7] = 0x47b5481dbefa4fa4; } /* SHA384 block update operation. Continues an SHA message-digest operation, processing another message block, and updating the context. */ public override unsafe void HashCore(byte[] partIn, int ibStart, int cbSize) { int bufferLen; int partInLen = cbSize; int partInBase = ibStart; /* Compute length of buffer */ bufferLen = (int)(_count & 0x7f); /* Update number of bytes */ _count += (ulong)partInLen; fixed (ulong* stateSHA384 = _stateSHA384) { fixed (byte* buffer = _buffer) { fixed (ulong* expandedBuffer = _W) { if ((bufferLen > 0) && (bufferLen + partInLen >= 128)) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, 128 - bufferLen); partInBase += (128 - bufferLen); partInLen -= (128 - bufferLen); SHATransform(expandedBuffer, stateSHA384, buffer); bufferLen = 0; } /* Copy input to temporary buffer and hash */ while (partInLen >= 128) { Buffer.BlockCopy(partIn, partInBase, _buffer, 0, 128); partInBase += 128; partInLen -= 128; SHATransform(expandedBuffer, stateSHA384, buffer); } if (partInLen > 0) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen); } } } } } /* SHA384 finalization. Ends an SHA384 message-digest operation, writing the message digest. */ public override byte[] HashFinal() { byte[] pad; int padLen; ulong bitCount; byte[] hash = new byte[48]; // HashSizeValue = 384 /* Compute padding: 80 00 00 ... 00 00 <bit count> */ padLen = 128 - (int)(_count & 0x7f); if (padLen <= 16) padLen += 128; pad = new byte[padLen]; pad[0] = 0x80; // Convert count to bit count bitCount = _count * 8; // bitCount is at most 8 * 128 = 1024. Its representation as a 128-bit number has all bits set to zero // except eventually the 11 lower bits //pad[padLen-16] = (byte) ((bitCount >> 120) & 0xff); //pad[padLen-15] = (byte) ((bitCount >> 112) & 0xff); //pad[padLen-14] = (byte) ((bitCount >> 104) & 0xff); //pad[padLen-13] = (byte) ((bitCount >> 96) & 0xff); //pad[padLen-12] = (byte) ((bitCount >> 88) & 0xff); //pad[padLen-11] = (byte) ((bitCount >> 80) & 0xff); //pad[padLen-10] = (byte) ((bitCount >> 72) & 0xff); //pad[padLen-9] = (byte) ((bitCount >> 64) & 0xff); pad[padLen - 8] = (byte)((bitCount >> 56) & 0xff); pad[padLen - 7] = (byte)((bitCount >> 48) & 0xff); pad[padLen - 6] = (byte)((bitCount >> 40) & 0xff); pad[padLen - 5] = (byte)((bitCount >> 32) & 0xff); pad[padLen - 4] = (byte)((bitCount >> 24) & 0xff); pad[padLen - 3] = (byte)((bitCount >> 16) & 0xff); pad[padLen - 2] = (byte)((bitCount >> 8) & 0xff); pad[padLen - 1] = (byte)((bitCount >> 0) & 0xff); /* Digest padding */ HashCore(pad, 0, pad.Length); /* Store digest */ SHAUtils.QuadWordToBigEndian(hash, _stateSHA384, 6); return hash; } private static readonly ulong[] _K = { 0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, 0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe, 0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235, 0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65, 0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab, 0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725, 0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed, 0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b, 0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218, 0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53, 0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373, 0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec, 0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c, 0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6, 0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817, }; private static unsafe void SHATransform(ulong* expandedBuffer, ulong* state, byte* block) { ulong a, b, c, d, e, f, g, h; ulong aa, bb, cc, dd, ee, ff, hh, gg; ulong T1; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7]; // fill in the first 16 blocks of W. SHAUtils.QuadWordFromBigEndian(expandedBuffer, 16, block); SHA384Expand(expandedBuffer); /* Apply the SHA384 compression function */ // We are trying to be smart here and avoid as many copies as we can // The perf gain with this method over the straightforward modify and shift // forward is >= 20%, so it's worth the pain for (int j = 0; j < 80;) { T1 = h + Sigma_1(e) + Ch(e, f, g) + _K[j] + expandedBuffer[j]; ee = d + T1; aa = T1 + Sigma_0(a) + Maj(a, b, c); j++; T1 = g + Sigma_1(ee) + Ch(ee, e, f) + _K[j] + expandedBuffer[j]; ff = c + T1; bb = T1 + Sigma_0(aa) + Maj(aa, a, b); j++; T1 = f + Sigma_1(ff) + Ch(ff, ee, e) + _K[j] + expandedBuffer[j]; gg = b + T1; cc = T1 + Sigma_0(bb) + Maj(bb, aa, a); j++; T1 = e + Sigma_1(gg) + Ch(gg, ff, ee) + _K[j] + expandedBuffer[j]; hh = a + T1; dd = T1 + Sigma_0(cc) + Maj(cc, bb, aa); j++; T1 = ee + Sigma_1(hh) + Ch(hh, gg, ff) + _K[j] + expandedBuffer[j]; h = aa + T1; d = T1 + Sigma_0(dd) + Maj(dd, cc, bb); j++; T1 = ff + Sigma_1(h) + Ch(h, hh, gg) + _K[j] + expandedBuffer[j]; g = bb + T1; c = T1 + Sigma_0(d) + Maj(d, dd, cc); j++; T1 = gg + Sigma_1(g) + Ch(g, h, hh) + _K[j] + expandedBuffer[j]; f = cc + T1; b = T1 + Sigma_0(c) + Maj(c, d, dd); j++; T1 = hh + Sigma_1(f) + Ch(f, g, h) + _K[j] + expandedBuffer[j]; e = dd + T1; a = T1 + Sigma_0(b) + Maj(b, c, d); j++; } state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; state[5] += f; state[6] += g; state[7] += h; } private static ulong RotateRight(ulong x, int n) { return (((x) >> (n)) | ((x) << (64 - (n)))); } private static ulong Ch(ulong x, ulong y, ulong z) { return ((x & y) ^ ((x ^ 0xffffffffffffffff) & z)); } private static ulong Maj(ulong x, ulong y, ulong z) { return ((x & y) ^ (x & z) ^ (y & z)); } private static ulong Sigma_0(ulong x) { return (RotateRight(x, 28) ^ RotateRight(x, 34) ^ RotateRight(x, 39)); } private static ulong Sigma_1(ulong x) { return (RotateRight(x, 14) ^ RotateRight(x, 18) ^ RotateRight(x, 41)); } private static ulong sigma_0(ulong x) { return (RotateRight(x, 1) ^ RotateRight(x, 8) ^ (x >> 7)); } private static ulong sigma_1(ulong x) { return (RotateRight(x, 19) ^ RotateRight(x, 61) ^ (x >> 6)); } /* This function creates W_16,...,W_79 according to the formula W_j <- sigma_1(W_{j-2}) + W_{j-7} + sigma_0(W_{j-15}) + W_{j-16}; */ private static unsafe void SHA384Expand(ulong* x) { for (int i = 16; i < 80; i++) { x[i] = sigma_1(x[i - 2]) + x[i - 7] + sigma_0(x[i - 15]) + x[i - 16]; } } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/sha512managed.cs private sealed class SHA512ManagedImplementation : SHAManagedImplementationBase { private byte[] _buffer; private ulong _count; // Number of bytes in the hashed message private ulong[] _stateSHA512; private ulong[] _W; public SHA512ManagedImplementation() { _stateSHA512 = new ulong[8]; _buffer = new byte[128]; _W = new ulong[80]; InitializeState(); } public override void Initialize() { InitializeState(); // Zeroize potentially sensitive information. Array.Clear(_buffer, 0, _buffer.Length); Array.Clear(_W, 0, _W.Length); } private void InitializeState() { _count = 0; _stateSHA512[0] = 0x6a09e667f3bcc908; _stateSHA512[1] = 0xbb67ae8584caa73b; _stateSHA512[2] = 0x3c6ef372fe94f82b; _stateSHA512[3] = 0xa54ff53a5f1d36f1; _stateSHA512[4] = 0x510e527fade682d1; _stateSHA512[5] = 0x9b05688c2b3e6c1f; _stateSHA512[6] = 0x1f83d9abfb41bd6b; _stateSHA512[7] = 0x5be0cd19137e2179; } /* SHA512 block update operation. Continues an SHA message-digest operation, processing another message block, and updating the context. */ public override unsafe void HashCore(byte[] partIn, int ibStart, int cbSize) { int bufferLen; int partInLen = cbSize; int partInBase = ibStart; /* Compute length of buffer */ bufferLen = (int)(_count & 0x7f); /* Update number of bytes */ _count += (ulong)partInLen; fixed (ulong* stateSHA512 = _stateSHA512) { fixed (byte* buffer = _buffer) { fixed (ulong* expandedBuffer = _W) { if ((bufferLen > 0) && (bufferLen + partInLen >= 128)) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, 128 - bufferLen); partInBase += (128 - bufferLen); partInLen -= (128 - bufferLen); SHATransform(expandedBuffer, stateSHA512, buffer); bufferLen = 0; } /* Copy input to temporary buffer and hash */ while (partInLen >= 128) { Buffer.BlockCopy(partIn, partInBase, _buffer, 0, 128); partInBase += 128; partInLen -= 128; SHATransform(expandedBuffer, stateSHA512, buffer); } if (partInLen > 0) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen); } } } } } /* SHA512 finalization. Ends an SHA512 message-digest operation, writing the message digest. */ public override byte[] HashFinal() { byte[] pad; int padLen; ulong bitCount; byte[] hash = new byte[64]; // HashSizeValue = 512 /* Compute padding: 80 00 00 ... 00 00 <bit count> */ padLen = 128 - (int)(_count & 0x7f); if (padLen <= 16) padLen += 128; pad = new byte[padLen]; pad[0] = 0x80; // Convert count to bit count bitCount = _count * 8; // If we ever have UInt128 for bitCount, then these need to be uncommented. // Note that C# only looks at the low 6 bits of the shift value for ulongs, // so >>0 and >>64 are equal! //pad[padLen-16] = (byte) ((bitCount >> 120) & 0xff); //pad[padLen-15] = (byte) ((bitCount >> 112) & 0xff); //pad[padLen-14] = (byte) ((bitCount >> 104) & 0xff); //pad[padLen-13] = (byte) ((bitCount >> 96) & 0xff); //pad[padLen-12] = (byte) ((bitCount >> 88) & 0xff); //pad[padLen-11] = (byte) ((bitCount >> 80) & 0xff); //pad[padLen-10] = (byte) ((bitCount >> 72) & 0xff); //pad[padLen-9] = (byte) ((bitCount >> 64) & 0xff); pad[padLen - 8] = (byte)((bitCount >> 56) & 0xff); pad[padLen - 7] = (byte)((bitCount >> 48) & 0xff); pad[padLen - 6] = (byte)((bitCount >> 40) & 0xff); pad[padLen - 5] = (byte)((bitCount >> 32) & 0xff); pad[padLen - 4] = (byte)((bitCount >> 24) & 0xff); pad[padLen - 3] = (byte)((bitCount >> 16) & 0xff); pad[padLen - 2] = (byte)((bitCount >> 8) & 0xff); pad[padLen - 1] = (byte)((bitCount >> 0) & 0xff); /* Digest padding */ HashCore(pad, 0, pad.Length); /* Store digest */ SHAUtils.QuadWordToBigEndian(hash, _stateSHA512, 8); return hash; } private static readonly ulong[] _K = { 0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, 0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe, 0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235, 0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65, 0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab, 0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725, 0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed, 0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b, 0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218, 0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53, 0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373, 0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec, 0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c, 0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6, 0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817, }; private static unsafe void SHATransform(ulong* expandedBuffer, ulong* state, byte* block) { ulong a, b, c, d, e, f, g, h; ulong aa, bb, cc, dd, ee, ff, hh, gg; ulong T1; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7]; // fill in the first 16 blocks of W. SHAUtils.QuadWordFromBigEndian(expandedBuffer, 16, block); SHA512Expand(expandedBuffer); /* Apply the SHA512 compression function */ // We are trying to be smart here and avoid as many copies as we can // The perf gain with this method over the straightforward modify and shift // forward is >= 20%, so it's worth the pain for (int j = 0; j < 80;) { T1 = h + Sigma_1(e) + Ch(e, f, g) + _K[j] + expandedBuffer[j]; ee = d + T1; aa = T1 + Sigma_0(a) + Maj(a, b, c); j++; T1 = g + Sigma_1(ee) + Ch(ee, e, f) + _K[j] + expandedBuffer[j]; ff = c + T1; bb = T1 + Sigma_0(aa) + Maj(aa, a, b); j++; T1 = f + Sigma_1(ff) + Ch(ff, ee, e) + _K[j] + expandedBuffer[j]; gg = b + T1; cc = T1 + Sigma_0(bb) + Maj(bb, aa, a); j++; T1 = e + Sigma_1(gg) + Ch(gg, ff, ee) + _K[j] + expandedBuffer[j]; hh = a + T1; dd = T1 + Sigma_0(cc) + Maj(cc, bb, aa); j++; T1 = ee + Sigma_1(hh) + Ch(hh, gg, ff) + _K[j] + expandedBuffer[j]; h = aa + T1; d = T1 + Sigma_0(dd) + Maj(dd, cc, bb); j++; T1 = ff + Sigma_1(h) + Ch(h, hh, gg) + _K[j] + expandedBuffer[j]; g = bb + T1; c = T1 + Sigma_0(d) + Maj(d, dd, cc); j++; T1 = gg + Sigma_1(g) + Ch(g, h, hh) + _K[j] + expandedBuffer[j]; f = cc + T1; b = T1 + Sigma_0(c) + Maj(c, d, dd); j++; T1 = hh + Sigma_1(f) + Ch(f, g, h) + _K[j] + expandedBuffer[j]; e = dd + T1; a = T1 + Sigma_0(b) + Maj(b, c, d); j++; } state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; state[5] += f; state[6] += g; state[7] += h; } private static ulong Ch(ulong x, ulong y, ulong z) { return ((x & y) ^ ((x ^ 0xffffffffffffffff) & z)); } private static ulong Maj(ulong x, ulong y, ulong z) { return ((x & y) ^ (x & z) ^ (y & z)); } private static ulong Sigma_0(ulong x) { return (RotateRight(x, 28) ^ RotateRight(x, 34) ^ RotateRight(x, 39)); } private static ulong Sigma_1(ulong x) { return (RotateRight(x, 14) ^ RotateRight(x, 18) ^ RotateRight(x, 41)); } private static ulong sigma_0(ulong x) { return (RotateRight(x, 1) ^ RotateRight(x, 8) ^ (x >> 7)); } private static ulong sigma_1(ulong x) { return (RotateRight(x, 19) ^ RotateRight(x, 61) ^ (x >> 6)); } /* This function creates W_16,...,W_79 according to the formula W_j <- sigma_1(W_{j-2}) + W_{j-7} + sigma_0(W_{j-15}) + W_{j-16}; */ private static unsafe void SHA512Expand(ulong* x) { for (int i = 16; i < 80; i++) { x[i] = sigma_1(x[i - 2]) + x[i - 7] + sigma_0(x[i - 15]) + x[i - 16]; } } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/utils.cs private static class SHAUtils { // digits == number of DWORDs public static unsafe void DWORDFromBigEndian(uint* x, int digits, byte* block) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 4) x[i] = (uint)((block[j] << 24) | (block[j + 1] << 16) | (block[j + 2] << 8) | block[j + 3]); } // encodes x (DWORD) into block (unsigned char), most significant byte first. // digits == number of DWORDs public static void DWORDToBigEndian(byte[] block, uint[] x, int digits) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 4) { block[j] = (byte)((x[i] >> 24) & 0xff); block[j + 1] = (byte)((x[i] >> 16) & 0xff); block[j + 2] = (byte)((x[i] >> 8) & 0xff); block[j + 3] = (byte)(x[i] & 0xff); } } // digits == number of QWORDs public static unsafe void QuadWordFromBigEndian(ulong* x, int digits, byte* block) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 8) x[i] = ( (((ulong)block[j]) << 56) | (((ulong)block[j + 1]) << 48) | (((ulong)block[j + 2]) << 40) | (((ulong)block[j + 3]) << 32) | (((ulong)block[j + 4]) << 24) | (((ulong)block[j + 5]) << 16) | (((ulong)block[j + 6]) << 8) | ((ulong)block[j + 7]) ); } // encodes x (DWORD) into block (unsigned char), most significant byte first. // digits = number of QWORDS public static void QuadWordToBigEndian(byte[] block, ulong[] x, int digits) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 8) { block[j] = (byte)((x[i] >> 56) & 0xff); block[j + 1] = (byte)((x[i] >> 48) & 0xff); block[j + 2] = (byte)((x[i] >> 40) & 0xff); block[j + 3] = (byte)((x[i] >> 32) & 0xff); block[j + 4] = (byte)((x[i] >> 24) & 0xff); block[j + 5] = (byte)((x[i] >> 16) & 0xff); block[j + 6] = (byte)((x[i] >> 8) & 0xff); block[j + 7] = (byte)(x[i] & 0xff); } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.IO; using System.Diagnostics; using Internal.Cryptography; using static System.Numerics.BitOperations; namespace System.Security.Cryptography { internal sealed class SHAHashProvider : HashProvider { private int hashSizeInBytes; private SHAManagedImplementationBase impl; private MemoryStream? buffer; public SHAHashProvider(string hashAlgorithmId) { switch (hashAlgorithmId) { case HashAlgorithmNames.SHA1: impl = new SHA1ManagedImplementation(); hashSizeInBytes = 20; break; case HashAlgorithmNames.SHA256: impl = new SHA256ManagedImplementation(); hashSizeInBytes = 32; break; case HashAlgorithmNames.SHA384: impl = new SHA384ManagedImplementation(); hashSizeInBytes = 48; break; case HashAlgorithmNames.SHA512: impl = new SHA512ManagedImplementation(); hashSizeInBytes = 64; break; default: throw new CryptographicException(SR.Format(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithmId)); } } public override void AppendHashData(ReadOnlySpan<byte> data) { if (buffer == null) { buffer = new MemoryStream(1000); } buffer.Write(data); } public override int FinalizeHashAndReset(Span<byte> destination) { GetCurrentHash(destination); buffer = null; return hashSizeInBytes; } public override int GetCurrentHash(Span<byte> destination) { Debug.Assert(destination.Length >= hashSizeInBytes); impl.Initialize(); if (buffer != null) { impl.HashCore(buffer.GetBuffer(), 0, (int)buffer.Length); } impl.HashFinal().CopyTo(destination); return hashSizeInBytes; } public override int HashSizeInBytes => hashSizeInBytes; public override void Reset() { buffer = null; impl.Initialize(); } public override void Dispose(bool disposing) { } private abstract class SHAManagedImplementationBase { public abstract void Initialize(); public abstract void HashCore(byte[] partIn, int ibStart, int cbSize); public abstract byte[] HashFinal(); } private sealed class SHA1ManagedImplementation : SHAManagedImplementationBase { // It's ok to use a "non-secret purposes" hashing implementation here, as this is only // used in wasm scenarios, and as of the current release we don't make any security guarantees // about our crypto primitives in wasm environments. private Sha1ForNonSecretPurposes _state; // mutable struct - don't make readonly public override void Initialize() { _state = default; _state.Start(); } public override void HashCore(byte[] partIn, int ibStart, int cbSize) { _state.Append(partIn.AsSpan(ibStart, cbSize)); } public override byte[] HashFinal() { byte[] output = new byte[20]; _state.Finish(output); return output; } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/sha256managed.cs private sealed class SHA256ManagedImplementation : SHAManagedImplementationBase { private byte[] _buffer; private long _count; // Number of bytes in the hashed message private uint[] _stateSHA256; private uint[] _W; public SHA256ManagedImplementation() { _stateSHA256 = new uint[8]; _buffer = new byte[64]; _W = new uint[64]; InitializeState(); } public override void Initialize() { InitializeState(); // Zeroize potentially sensitive information. Array.Clear(_buffer, 0, _buffer.Length); Array.Clear(_W, 0, _W.Length); } private void InitializeState() { _count = 0; _stateSHA256[0] = 0x6a09e667; _stateSHA256[1] = 0xbb67ae85; _stateSHA256[2] = 0x3c6ef372; _stateSHA256[3] = 0xa54ff53a; _stateSHA256[4] = 0x510e527f; _stateSHA256[5] = 0x9b05688c; _stateSHA256[6] = 0x1f83d9ab; _stateSHA256[7] = 0x5be0cd19; } /* SHA256 block update operation. Continues an SHA message-digest operation, processing another message block, and updating the context. */ public override unsafe void HashCore(byte[] partIn, int ibStart, int cbSize) { int bufferLen; int partInLen = cbSize; int partInBase = ibStart; /* Compute length of buffer */ bufferLen = (int)(_count & 0x3f); /* Update number of bytes */ _count += partInLen; fixed (uint* stateSHA256 = _stateSHA256) { fixed (byte* buffer = _buffer) { fixed (uint* expandedBuffer = _W) { if ((bufferLen > 0) && (bufferLen + partInLen >= 64)) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, 64 - bufferLen); partInBase += (64 - bufferLen); partInLen -= (64 - bufferLen); SHATransform(expandedBuffer, stateSHA256, buffer); bufferLen = 0; } /* Copy input to temporary buffer and hash */ while (partInLen >= 64) { Buffer.BlockCopy(partIn, partInBase, _buffer, 0, 64); partInBase += 64; partInLen -= 64; SHATransform(expandedBuffer, stateSHA256, buffer); } if (partInLen > 0) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen); } } } } } /* SHA256 finalization. Ends an SHA256 message-digest operation, writing the message digest. */ public override byte[] HashFinal() { byte[] pad; int padLen; long bitCount; byte[] hash = new byte[32]; // HashSizeValue = 256 /* Compute padding: 80 00 00 ... 00 00 <bit count> */ padLen = 64 - (int)(_count & 0x3f); if (padLen <= 8) padLen += 64; pad = new byte[padLen]; pad[0] = 0x80; // Convert count to bit count bitCount = _count * 8; pad[padLen - 8] = (byte)((bitCount >> 56) & 0xff); pad[padLen - 7] = (byte)((bitCount >> 48) & 0xff); pad[padLen - 6] = (byte)((bitCount >> 40) & 0xff); pad[padLen - 5] = (byte)((bitCount >> 32) & 0xff); pad[padLen - 4] = (byte)((bitCount >> 24) & 0xff); pad[padLen - 3] = (byte)((bitCount >> 16) & 0xff); pad[padLen - 2] = (byte)((bitCount >> 8) & 0xff); pad[padLen - 1] = (byte)((bitCount >> 0) & 0xff); /* Digest padding */ HashCore(pad, 0, pad.Length); /* Store digest */ SHAUtils.DWORDToBigEndian(hash, _stateSHA256, 8); return hash; } private static readonly uint[] _K = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 }; private static unsafe void SHATransform(uint* expandedBuffer, uint* state, byte* block) { uint a, b, c, d, e, f, h, g; uint aa, bb, cc, dd, ee, ff, hh, gg; uint T1; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7]; // fill in the first 16 bytes of W. SHAUtils.DWORDFromBigEndian(expandedBuffer, 16, block); SHA256Expand(expandedBuffer); /* Apply the SHA256 compression function */ // We are trying to be smart here and avoid as many copies as we can // The perf gain with this method over the straightforward modify and shift // forward is >= 20%, so it's worth the pain for (int j = 0; j < 64;) { T1 = h + Sigma_1(e) + Ch(e, f, g) + _K[j] + expandedBuffer[j]; ee = d + T1; aa = T1 + Sigma_0(a) + Maj(a, b, c); j++; T1 = g + Sigma_1(ee) + Ch(ee, e, f) + _K[j] + expandedBuffer[j]; ff = c + T1; bb = T1 + Sigma_0(aa) + Maj(aa, a, b); j++; T1 = f + Sigma_1(ff) + Ch(ff, ee, e) + _K[j] + expandedBuffer[j]; gg = b + T1; cc = T1 + Sigma_0(bb) + Maj(bb, aa, a); j++; T1 = e + Sigma_1(gg) + Ch(gg, ff, ee) + _K[j] + expandedBuffer[j]; hh = a + T1; dd = T1 + Sigma_0(cc) + Maj(cc, bb, aa); j++; T1 = ee + Sigma_1(hh) + Ch(hh, gg, ff) + _K[j] + expandedBuffer[j]; h = aa + T1; d = T1 + Sigma_0(dd) + Maj(dd, cc, bb); j++; T1 = ff + Sigma_1(h) + Ch(h, hh, gg) + _K[j] + expandedBuffer[j]; g = bb + T1; c = T1 + Sigma_0(d) + Maj(d, dd, cc); j++; T1 = gg + Sigma_1(g) + Ch(g, h, hh) + _K[j] + expandedBuffer[j]; f = cc + T1; b = T1 + Sigma_0(c) + Maj(c, d, dd); j++; T1 = hh + Sigma_1(f) + Ch(f, g, h) + _K[j] + expandedBuffer[j]; e = dd + T1; a = T1 + Sigma_0(b) + Maj(b, c, d); j++; } state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; state[5] += f; state[6] += g; state[7] += h; } private static uint Ch(uint x, uint y, uint z) { return ((x & y) ^ ((x ^ 0xffffffff) & z)); } private static uint Maj(uint x, uint y, uint z) { return ((x & y) ^ (x & z) ^ (y & z)); } private static uint sigma_0(uint x) { return (RotateRight(x, 7) ^ RotateRight(x, 18) ^ (x >> 3)); } private static uint sigma_1(uint x) { return (RotateRight(x, 17) ^ RotateRight(x, 19) ^ (x >> 10)); } private static uint Sigma_0(uint x) { return (RotateRight(x, 2) ^ RotateRight(x, 13) ^ RotateRight(x, 22)); } private static uint Sigma_1(uint x) { return (RotateRight(x, 6) ^ RotateRight(x, 11) ^ RotateRight(x, 25)); } /* This function creates W_16,...,W_63 according to the formula W_j <- sigma_1(W_{j-2}) + W_{j-7} + sigma_0(W_{j-15}) + W_{j-16}; */ private static unsafe void SHA256Expand(uint* x) { for (int i = 16; i < 64; i++) { x[i] = sigma_1(x[i - 2]) + x[i - 7] + sigma_0(x[i - 15]) + x[i - 16]; } } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/sha384managed.cs private sealed class SHA384ManagedImplementation : SHAManagedImplementationBase { private byte[] _buffer; private ulong _count; // Number of bytes in the hashed message private ulong[] _stateSHA384; private ulong[] _W; public SHA384ManagedImplementation() { _stateSHA384 = new ulong[8]; _buffer = new byte[128]; _W = new ulong[80]; InitializeState(); } public override void Initialize() { InitializeState(); // Zeroize potentially sensitive information. Array.Clear(_buffer, 0, _buffer.Length); Array.Clear(_W, 0, _W.Length); } private void InitializeState() { _count = 0; _stateSHA384[0] = 0xcbbb9d5dc1059ed8; _stateSHA384[1] = 0x629a292a367cd507; _stateSHA384[2] = 0x9159015a3070dd17; _stateSHA384[3] = 0x152fecd8f70e5939; _stateSHA384[4] = 0x67332667ffc00b31; _stateSHA384[5] = 0x8eb44a8768581511; _stateSHA384[6] = 0xdb0c2e0d64f98fa7; _stateSHA384[7] = 0x47b5481dbefa4fa4; } /* SHA384 block update operation. Continues an SHA message-digest operation, processing another message block, and updating the context. */ public override unsafe void HashCore(byte[] partIn, int ibStart, int cbSize) { int bufferLen; int partInLen = cbSize; int partInBase = ibStart; /* Compute length of buffer */ bufferLen = (int)(_count & 0x7f); /* Update number of bytes */ _count += (ulong)partInLen; fixed (ulong* stateSHA384 = _stateSHA384) { fixed (byte* buffer = _buffer) { fixed (ulong* expandedBuffer = _W) { if ((bufferLen > 0) && (bufferLen + partInLen >= 128)) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, 128 - bufferLen); partInBase += (128 - bufferLen); partInLen -= (128 - bufferLen); SHATransform(expandedBuffer, stateSHA384, buffer); bufferLen = 0; } /* Copy input to temporary buffer and hash */ while (partInLen >= 128) { Buffer.BlockCopy(partIn, partInBase, _buffer, 0, 128); partInBase += 128; partInLen -= 128; SHATransform(expandedBuffer, stateSHA384, buffer); } if (partInLen > 0) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen); } } } } } /* SHA384 finalization. Ends an SHA384 message-digest operation, writing the message digest. */ public override byte[] HashFinal() { byte[] pad; int padLen; ulong bitCount; byte[] hash = new byte[48]; // HashSizeValue = 384 /* Compute padding: 80 00 00 ... 00 00 <bit count> */ padLen = 128 - (int)(_count & 0x7f); if (padLen <= 16) padLen += 128; pad = new byte[padLen]; pad[0] = 0x80; // Convert count to bit count bitCount = _count * 8; // bitCount is at most 8 * 128 = 1024. Its representation as a 128-bit number has all bits set to zero // except eventually the 11 lower bits //pad[padLen-16] = (byte) ((bitCount >> 120) & 0xff); //pad[padLen-15] = (byte) ((bitCount >> 112) & 0xff); //pad[padLen-14] = (byte) ((bitCount >> 104) & 0xff); //pad[padLen-13] = (byte) ((bitCount >> 96) & 0xff); //pad[padLen-12] = (byte) ((bitCount >> 88) & 0xff); //pad[padLen-11] = (byte) ((bitCount >> 80) & 0xff); //pad[padLen-10] = (byte) ((bitCount >> 72) & 0xff); //pad[padLen-9] = (byte) ((bitCount >> 64) & 0xff); pad[padLen - 8] = (byte)((bitCount >> 56) & 0xff); pad[padLen - 7] = (byte)((bitCount >> 48) & 0xff); pad[padLen - 6] = (byte)((bitCount >> 40) & 0xff); pad[padLen - 5] = (byte)((bitCount >> 32) & 0xff); pad[padLen - 4] = (byte)((bitCount >> 24) & 0xff); pad[padLen - 3] = (byte)((bitCount >> 16) & 0xff); pad[padLen - 2] = (byte)((bitCount >> 8) & 0xff); pad[padLen - 1] = (byte)((bitCount >> 0) & 0xff); /* Digest padding */ HashCore(pad, 0, pad.Length); /* Store digest */ SHAUtils.QuadWordToBigEndian(hash, _stateSHA384, 6); return hash; } private static readonly ulong[] _K = { 0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, 0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe, 0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235, 0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65, 0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab, 0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725, 0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed, 0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b, 0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218, 0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53, 0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373, 0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec, 0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c, 0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6, 0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817, }; private static unsafe void SHATransform(ulong* expandedBuffer, ulong* state, byte* block) { ulong a, b, c, d, e, f, g, h; ulong aa, bb, cc, dd, ee, ff, hh, gg; ulong T1; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7]; // fill in the first 16 blocks of W. SHAUtils.QuadWordFromBigEndian(expandedBuffer, 16, block); SHA384Expand(expandedBuffer); /* Apply the SHA384 compression function */ // We are trying to be smart here and avoid as many copies as we can // The perf gain with this method over the straightforward modify and shift // forward is >= 20%, so it's worth the pain for (int j = 0; j < 80;) { T1 = h + Sigma_1(e) + Ch(e, f, g) + _K[j] + expandedBuffer[j]; ee = d + T1; aa = T1 + Sigma_0(a) + Maj(a, b, c); j++; T1 = g + Sigma_1(ee) + Ch(ee, e, f) + _K[j] + expandedBuffer[j]; ff = c + T1; bb = T1 + Sigma_0(aa) + Maj(aa, a, b); j++; T1 = f + Sigma_1(ff) + Ch(ff, ee, e) + _K[j] + expandedBuffer[j]; gg = b + T1; cc = T1 + Sigma_0(bb) + Maj(bb, aa, a); j++; T1 = e + Sigma_1(gg) + Ch(gg, ff, ee) + _K[j] + expandedBuffer[j]; hh = a + T1; dd = T1 + Sigma_0(cc) + Maj(cc, bb, aa); j++; T1 = ee + Sigma_1(hh) + Ch(hh, gg, ff) + _K[j] + expandedBuffer[j]; h = aa + T1; d = T1 + Sigma_0(dd) + Maj(dd, cc, bb); j++; T1 = ff + Sigma_1(h) + Ch(h, hh, gg) + _K[j] + expandedBuffer[j]; g = bb + T1; c = T1 + Sigma_0(d) + Maj(d, dd, cc); j++; T1 = gg + Sigma_1(g) + Ch(g, h, hh) + _K[j] + expandedBuffer[j]; f = cc + T1; b = T1 + Sigma_0(c) + Maj(c, d, dd); j++; T1 = hh + Sigma_1(f) + Ch(f, g, h) + _K[j] + expandedBuffer[j]; e = dd + T1; a = T1 + Sigma_0(b) + Maj(b, c, d); j++; } state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; state[5] += f; state[6] += g; state[7] += h; } private static ulong RotateRight(ulong x, int n) { return (((x) >> (n)) | ((x) << (64 - (n)))); } private static ulong Ch(ulong x, ulong y, ulong z) { return ((x & y) ^ ((x ^ 0xffffffffffffffff) & z)); } private static ulong Maj(ulong x, ulong y, ulong z) { return ((x & y) ^ (x & z) ^ (y & z)); } private static ulong Sigma_0(ulong x) { return (RotateRight(x, 28) ^ RotateRight(x, 34) ^ RotateRight(x, 39)); } private static ulong Sigma_1(ulong x) { return (RotateRight(x, 14) ^ RotateRight(x, 18) ^ RotateRight(x, 41)); } private static ulong sigma_0(ulong x) { return (RotateRight(x, 1) ^ RotateRight(x, 8) ^ (x >> 7)); } private static ulong sigma_1(ulong x) { return (RotateRight(x, 19) ^ RotateRight(x, 61) ^ (x >> 6)); } /* This function creates W_16,...,W_79 according to the formula W_j <- sigma_1(W_{j-2}) + W_{j-7} + sigma_0(W_{j-15}) + W_{j-16}; */ private static unsafe void SHA384Expand(ulong* x) { for (int i = 16; i < 80; i++) { x[i] = sigma_1(x[i - 2]) + x[i - 7] + sigma_0(x[i - 15]) + x[i - 16]; } } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/sha512managed.cs private sealed class SHA512ManagedImplementation : SHAManagedImplementationBase { private byte[] _buffer; private ulong _count; // Number of bytes in the hashed message private ulong[] _stateSHA512; private ulong[] _W; public SHA512ManagedImplementation() { _stateSHA512 = new ulong[8]; _buffer = new byte[128]; _W = new ulong[80]; InitializeState(); } public override void Initialize() { InitializeState(); // Zeroize potentially sensitive information. Array.Clear(_buffer, 0, _buffer.Length); Array.Clear(_W, 0, _W.Length); } private void InitializeState() { _count = 0; _stateSHA512[0] = 0x6a09e667f3bcc908; _stateSHA512[1] = 0xbb67ae8584caa73b; _stateSHA512[2] = 0x3c6ef372fe94f82b; _stateSHA512[3] = 0xa54ff53a5f1d36f1; _stateSHA512[4] = 0x510e527fade682d1; _stateSHA512[5] = 0x9b05688c2b3e6c1f; _stateSHA512[6] = 0x1f83d9abfb41bd6b; _stateSHA512[7] = 0x5be0cd19137e2179; } /* SHA512 block update operation. Continues an SHA message-digest operation, processing another message block, and updating the context. */ public override unsafe void HashCore(byte[] partIn, int ibStart, int cbSize) { int bufferLen; int partInLen = cbSize; int partInBase = ibStart; /* Compute length of buffer */ bufferLen = (int)(_count & 0x7f); /* Update number of bytes */ _count += (ulong)partInLen; fixed (ulong* stateSHA512 = _stateSHA512) { fixed (byte* buffer = _buffer) { fixed (ulong* expandedBuffer = _W) { if ((bufferLen > 0) && (bufferLen + partInLen >= 128)) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, 128 - bufferLen); partInBase += (128 - bufferLen); partInLen -= (128 - bufferLen); SHATransform(expandedBuffer, stateSHA512, buffer); bufferLen = 0; } /* Copy input to temporary buffer and hash */ while (partInLen >= 128) { Buffer.BlockCopy(partIn, partInBase, _buffer, 0, 128); partInBase += 128; partInLen -= 128; SHATransform(expandedBuffer, stateSHA512, buffer); } if (partInLen > 0) { Buffer.BlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen); } } } } } /* SHA512 finalization. Ends an SHA512 message-digest operation, writing the message digest. */ public override byte[] HashFinal() { byte[] pad; int padLen; ulong bitCount; byte[] hash = new byte[64]; // HashSizeValue = 512 /* Compute padding: 80 00 00 ... 00 00 <bit count> */ padLen = 128 - (int)(_count & 0x7f); if (padLen <= 16) padLen += 128; pad = new byte[padLen]; pad[0] = 0x80; // Convert count to bit count bitCount = _count * 8; // If we ever have UInt128 for bitCount, then these need to be uncommented. // Note that C# only looks at the low 6 bits of the shift value for ulongs, // so >>0 and >>64 are equal! //pad[padLen-16] = (byte) ((bitCount >> 120) & 0xff); //pad[padLen-15] = (byte) ((bitCount >> 112) & 0xff); //pad[padLen-14] = (byte) ((bitCount >> 104) & 0xff); //pad[padLen-13] = (byte) ((bitCount >> 96) & 0xff); //pad[padLen-12] = (byte) ((bitCount >> 88) & 0xff); //pad[padLen-11] = (byte) ((bitCount >> 80) & 0xff); //pad[padLen-10] = (byte) ((bitCount >> 72) & 0xff); //pad[padLen-9] = (byte) ((bitCount >> 64) & 0xff); pad[padLen - 8] = (byte)((bitCount >> 56) & 0xff); pad[padLen - 7] = (byte)((bitCount >> 48) & 0xff); pad[padLen - 6] = (byte)((bitCount >> 40) & 0xff); pad[padLen - 5] = (byte)((bitCount >> 32) & 0xff); pad[padLen - 4] = (byte)((bitCount >> 24) & 0xff); pad[padLen - 3] = (byte)((bitCount >> 16) & 0xff); pad[padLen - 2] = (byte)((bitCount >> 8) & 0xff); pad[padLen - 1] = (byte)((bitCount >> 0) & 0xff); /* Digest padding */ HashCore(pad, 0, pad.Length); /* Store digest */ SHAUtils.QuadWordToBigEndian(hash, _stateSHA512, 8); return hash; } private static readonly ulong[] _K = { 0x428a2f98d728ae22, 0x7137449123ef65cd, 0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc, 0x3956c25bf348b538, 0x59f111f1b605d019, 0x923f82a4af194f9b, 0xab1c5ed5da6d8118, 0xd807aa98a3030242, 0x12835b0145706fbe, 0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2, 0x72be5d74f27b896f, 0x80deb1fe3b1696b1, 0x9bdc06a725c71235, 0xc19bf174cf692694, 0xe49b69c19ef14ad2, 0xefbe4786384f25e3, 0x0fc19dc68b8cd5b5, 0x240ca1cc77ac9c65, 0x2de92c6f592b0275, 0x4a7484aa6ea6e483, 0x5cb0a9dcbd41fbd4, 0x76f988da831153b5, 0x983e5152ee66dfab, 0xa831c66d2db43210, 0xb00327c898fb213f, 0xbf597fc7beef0ee4, 0xc6e00bf33da88fc2, 0xd5a79147930aa725, 0x06ca6351e003826f, 0x142929670a0e6e70, 0x27b70a8546d22ffc, 0x2e1b21385c26c926, 0x4d2c6dfc5ac42aed, 0x53380d139d95b3df, 0x650a73548baf63de, 0x766a0abb3c77b2a8, 0x81c2c92e47edaee6, 0x92722c851482353b, 0xa2bfe8a14cf10364, 0xa81a664bbc423001, 0xc24b8b70d0f89791, 0xc76c51a30654be30, 0xd192e819d6ef5218, 0xd69906245565a910, 0xf40e35855771202a, 0x106aa07032bbd1b8, 0x19a4c116b8d2d0c8, 0x1e376c085141ab53, 0x2748774cdf8eeb99, 0x34b0bcb5e19b48a8, 0x391c0cb3c5c95a63, 0x4ed8aa4ae3418acb, 0x5b9cca4f7763e373, 0x682e6ff3d6b2b8a3, 0x748f82ee5defb2fc, 0x78a5636f43172f60, 0x84c87814a1f0ab72, 0x8cc702081a6439ec, 0x90befffa23631e28, 0xa4506cebde82bde9, 0xbef9a3f7b2c67915, 0xc67178f2e372532b, 0xca273eceea26619c, 0xd186b8c721c0c207, 0xeada7dd6cde0eb1e, 0xf57d4f7fee6ed178, 0x06f067aa72176fba, 0x0a637dc5a2c898a6, 0x113f9804bef90dae, 0x1b710b35131c471b, 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c, 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817, }; private static unsafe void SHATransform(ulong* expandedBuffer, ulong* state, byte* block) { ulong a, b, c, d, e, f, g, h; ulong aa, bb, cc, dd, ee, ff, hh, gg; ulong T1; a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; f = state[5]; g = state[6]; h = state[7]; // fill in the first 16 blocks of W. SHAUtils.QuadWordFromBigEndian(expandedBuffer, 16, block); SHA512Expand(expandedBuffer); /* Apply the SHA512 compression function */ // We are trying to be smart here and avoid as many copies as we can // The perf gain with this method over the straightforward modify and shift // forward is >= 20%, so it's worth the pain for (int j = 0; j < 80;) { T1 = h + Sigma_1(e) + Ch(e, f, g) + _K[j] + expandedBuffer[j]; ee = d + T1; aa = T1 + Sigma_0(a) + Maj(a, b, c); j++; T1 = g + Sigma_1(ee) + Ch(ee, e, f) + _K[j] + expandedBuffer[j]; ff = c + T1; bb = T1 + Sigma_0(aa) + Maj(aa, a, b); j++; T1 = f + Sigma_1(ff) + Ch(ff, ee, e) + _K[j] + expandedBuffer[j]; gg = b + T1; cc = T1 + Sigma_0(bb) + Maj(bb, aa, a); j++; T1 = e + Sigma_1(gg) + Ch(gg, ff, ee) + _K[j] + expandedBuffer[j]; hh = a + T1; dd = T1 + Sigma_0(cc) + Maj(cc, bb, aa); j++; T1 = ee + Sigma_1(hh) + Ch(hh, gg, ff) + _K[j] + expandedBuffer[j]; h = aa + T1; d = T1 + Sigma_0(dd) + Maj(dd, cc, bb); j++; T1 = ff + Sigma_1(h) + Ch(h, hh, gg) + _K[j] + expandedBuffer[j]; g = bb + T1; c = T1 + Sigma_0(d) + Maj(d, dd, cc); j++; T1 = gg + Sigma_1(g) + Ch(g, h, hh) + _K[j] + expandedBuffer[j]; f = cc + T1; b = T1 + Sigma_0(c) + Maj(c, d, dd); j++; T1 = hh + Sigma_1(f) + Ch(f, g, h) + _K[j] + expandedBuffer[j]; e = dd + T1; a = T1 + Sigma_0(b) + Maj(b, c, d); j++; } state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; state[5] += f; state[6] += g; state[7] += h; } private static ulong Ch(ulong x, ulong y, ulong z) { return ((x & y) ^ ((x ^ 0xffffffffffffffff) & z)); } private static ulong Maj(ulong x, ulong y, ulong z) { return ((x & y) ^ (x & z) ^ (y & z)); } private static ulong Sigma_0(ulong x) { return (RotateRight(x, 28) ^ RotateRight(x, 34) ^ RotateRight(x, 39)); } private static ulong Sigma_1(ulong x) { return (RotateRight(x, 14) ^ RotateRight(x, 18) ^ RotateRight(x, 41)); } private static ulong sigma_0(ulong x) { return (RotateRight(x, 1) ^ RotateRight(x, 8) ^ (x >> 7)); } private static ulong sigma_1(ulong x) { return (RotateRight(x, 19) ^ RotateRight(x, 61) ^ (x >> 6)); } /* This function creates W_16,...,W_79 according to the formula W_j <- sigma_1(W_{j-2}) + W_{j-7} + sigma_0(W_{j-15}) + W_{j-16}; */ private static unsafe void SHA512Expand(ulong* x) { for (int i = 16; i < 80; i++) { x[i] = sigma_1(x[i - 2]) + x[i - 7] + sigma_0(x[i - 15]) + x[i - 16]; } } } // ported from https://github.com/microsoft/referencesource/blob/a48449cb48a9a693903668a71449ac719b76867c/mscorlib/system/security/cryptography/utils.cs private static class SHAUtils { // digits == number of DWORDs public static unsafe void DWORDFromBigEndian(uint* x, int digits, byte* block) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 4) x[i] = (uint)((block[j] << 24) | (block[j + 1] << 16) | (block[j + 2] << 8) | block[j + 3]); } // encodes x (DWORD) into block (unsigned char), most significant byte first. // digits == number of DWORDs public static void DWORDToBigEndian(byte[] block, uint[] x, int digits) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 4) { block[j] = (byte)((x[i] >> 24) & 0xff); block[j + 1] = (byte)((x[i] >> 16) & 0xff); block[j + 2] = (byte)((x[i] >> 8) & 0xff); block[j + 3] = (byte)(x[i] & 0xff); } } // digits == number of QWORDs public static unsafe void QuadWordFromBigEndian(ulong* x, int digits, byte* block) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 8) x[i] = ( (((ulong)block[j]) << 56) | (((ulong)block[j + 1]) << 48) | (((ulong)block[j + 2]) << 40) | (((ulong)block[j + 3]) << 32) | (((ulong)block[j + 4]) << 24) | (((ulong)block[j + 5]) << 16) | (((ulong)block[j + 6]) << 8) | ((ulong)block[j + 7]) ); } // encodes x (DWORD) into block (unsigned char), most significant byte first. // digits = number of QWORDS public static void QuadWordToBigEndian(byte[] block, ulong[] x, int digits) { int i; int j; for (i = 0, j = 0; i < digits; i++, j += 8) { block[j] = (byte)((x[i] >> 56) & 0xff); block[j + 1] = (byte)((x[i] >> 48) & 0xff); block[j + 2] = (byte)((x[i] >> 40) & 0xff); block[j + 3] = (byte)((x[i] >> 32) & 0xff); block[j + 4] = (byte)((x[i] >> 24) & 0xff); block[j + 5] = (byte)((x[i] >> 16) & 0xff); block[j + 6] = (byte)((x[i] >> 8) & 0xff); block[j + 7] = (byte)(x[i] & 0xff); } } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/Regression/JitBlue/Runtime_13669/Runtime_13669.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; class Program { static int Main(string[] args) { int result = 0; ReadOnlySpan<char> span = string.Empty.AsSpan(); for (int i = 0; i < 1_000; i++) { result ^= TrimSourceCopied(span).Length; } return (result == 0) ? 100 : -1; } [MethodImpl(MethodImplOptions.NoInlining)] private static ReadOnlySpan<char> TrimSourceCopied(ReadOnlySpan<char> span) { int start = 0; for (; start < span.Length; start++) { if (!char.IsWhiteSpace(span[start])) { break; } } int end = span.Length - 1; for (; end > start; end--) { if (!char.IsWhiteSpace(span[end])) { break; } } return span.Slice(start, end - start + 1); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.CompilerServices; class Program { static int Main(string[] args) { int result = 0; ReadOnlySpan<char> span = string.Empty.AsSpan(); for (int i = 0; i < 1_000; i++) { result ^= TrimSourceCopied(span).Length; } return (result == 0) ? 100 : -1; } [MethodImpl(MethodImplOptions.NoInlining)] private static ReadOnlySpan<char> TrimSourceCopied(ReadOnlySpan<char> span) { int start = 0; for (; start < span.Length; start++) { if (!char.IsWhiteSpace(span[start])) { break; } } int end = span.Length - 1; for (; end > start; end--) { if (!char.IsWhiteSpace(span[end])) { break; } } return span.Slice(start, end - start + 1); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tasks/WasmAppBuilder/EmccCompile.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; #nullable enable namespace Microsoft.WebAssembly.Build.Tasks { /// <summary> /// This is meant to *compile* source files only. It is *not* a general purpose /// `emcc` invocation task. /// /// It runs `emcc` for each source file, and with output to `%(SourceFiles.ObjectFile)` /// /// </summary> public class EmccCompile : Microsoft.Build.Utilities.Task { [NotNull] [Required] public ITaskItem[]? SourceFiles { get; set; } public ITaskItem[]? EnvironmentVariables { get; set; } public bool DisableParallelCompile { get; set; } public string Arguments { get; set; } = string.Empty; public string? WorkingDirectory { get; set; } public string OutputMessageImportance{ get; set; } = "Low"; [Output] public ITaskItem[]? OutputFiles { get; private set; } private string? _tempPath; private int _totalFiles; private int _numCompiled; public override bool Execute() { try { return ExecuteActual(); } catch (LogAsErrorException laee) { Log.LogError(laee.Message); return false; } } private bool ExecuteActual() { if (SourceFiles.Length == 0) { Log.LogError($"No SourceFiles to compile"); return false; } ITaskItem? badItem = SourceFiles.FirstOrDefault(sf => string.IsNullOrEmpty(sf.GetMetadata("ObjectFile"))); if (badItem != null) { Log.LogError($"Source file {badItem.ItemSpec} is missing ObjectFile metadata."); return false; } if (!Enum.TryParse(OutputMessageImportance, ignoreCase: true, out MessageImportance messageImportance)) { Log.LogError($"Invalid value for OutputMessageImportance={OutputMessageImportance}. Valid values: {string.Join(", ", Enum.GetNames(typeof(MessageImportance)))}"); return false; } _totalFiles = SourceFiles.Length; IDictionary<string, string> envVarsDict = GetEnvironmentVariablesDict(); ConcurrentBag<ITaskItem> outputItems = new(); try { List<(string, string)> filesToCompile = new(); foreach (ITaskItem srcItem in SourceFiles) { string srcFile = srcItem.ItemSpec; string objFile = srcItem.GetMetadata("ObjectFile"); string depMetadata = srcItem.GetMetadata("Dependencies"); string[] depFiles = string.IsNullOrEmpty(depMetadata) ? Array.Empty<string>() : depMetadata.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); if (!ShouldCompile(srcFile, objFile, depFiles, out string reason)) { Log.LogMessage(MessageImportance.Low, $"Skipping {srcFile} because {reason}."); outputItems.Add(CreateOutputItemFor(srcFile, objFile)); } else { Log.LogMessage(MessageImportance.Low, $"Compiling {srcFile} because {reason}."); filesToCompile.Add((srcFile, objFile)); } } _numCompiled = SourceFiles.Length - filesToCompile.Count; if (_numCompiled == _totalFiles) { // nothing to do! OutputFiles = outputItems.ToArray(); return !Log.HasLoggedErrors; } if (_numCompiled > 0) Log.LogMessage(MessageImportance.High, $"[{_numCompiled}/{SourceFiles.Length}] skipped unchanged files"); Log.LogMessage(MessageImportance.Low, "Using environment variables:"); foreach (var kvp in envVarsDict) Log.LogMessage(MessageImportance.Low, $"\t{kvp.Key} = {kvp.Value}"); string workingDir = Environment.CurrentDirectory; Log.LogMessage(MessageImportance.Low, $"Using working directory: {workingDir}"); _tempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); Directory.CreateDirectory(_tempPath); int allowedParallelism = DisableParallelCompile ? 1 : Math.Min(SourceFiles.Length, Environment.ProcessorCount); if (BuildEngine is IBuildEngine9 be9) allowedParallelism = be9.RequestCores(allowedParallelism); ParallelLoopResult result = Parallel.ForEach(filesToCompile, new ParallelOptions { MaxDegreeOfParallelism = allowedParallelism }, (toCompile, state) => { if (!ProcessSourceFile(toCompile.Item1, toCompile.Item2)) state.Stop(); }); if (!result.IsCompleted && !Log.HasLoggedErrors) Log.LogError("Unknown failure occured while compiling. Check logs to get more details."); if (!Log.HasLoggedErrors) { int numUnchanged = _totalFiles - _numCompiled; if (numUnchanged > 0) Log.LogMessage(MessageImportance.High, $"[{numUnchanged}/{_totalFiles}] unchanged."); } } finally { if (!string.IsNullOrEmpty(_tempPath)) Directory.Delete(_tempPath, true); } OutputFiles = outputItems.ToArray(); return !Log.HasLoggedErrors; bool ProcessSourceFile(string srcFile, string objFile) { string tmpObjFile = Path.GetTempFileName(); try { string command = $"emcc {Arguments} -c -o \"{tmpObjFile}\" \"{srcFile}\""; var startTime = DateTime.Now; // Log the command in a compact format which can be copy pasted StringBuilder envStr = new StringBuilder(string.Empty); foreach (var key in envVarsDict.Keys) envStr.Append($"{key}={envVarsDict[key]} "); Log.LogMessage(MessageImportance.Low, $"Exec: {envStr}{command}"); (int exitCode, string output) = Utils.RunShellCommand( Log, command, envVarsDict, workingDir: Environment.CurrentDirectory, logStdErrAsMessage: true, debugMessageImportance: messageImportance, label: Path.GetFileName(srcFile)); var endTime = DateTime.Now; var elapsedSecs = (endTime - startTime).TotalSeconds; if (exitCode != 0) { Log.LogError($"Failed to compile {srcFile} -> {objFile}{Environment.NewLine}{output} [took {elapsedSecs:F}s]"); return false; } if (!Utils.CopyIfDifferent(tmpObjFile, objFile, useHash: true)) Log.LogMessage(MessageImportance.Low, $"Did not overwrite {objFile} as the contents are unchanged"); else Log.LogMessage(MessageImportance.Low, $"Copied {tmpObjFile} to {objFile}"); outputItems.Add(CreateOutputItemFor(srcFile, objFile)); int count = Interlocked.Increment(ref _numCompiled); Log.LogMessage(MessageImportance.High, $"[{count}/{_totalFiles}] {Path.GetFileName(srcFile)} -> {Path.GetFileName(objFile)} [took {elapsedSecs:F}s]"); return !Log.HasLoggedErrors; } catch (Exception ex) { Log.LogError($"Failed to compile {srcFile} -> {objFile}{Environment.NewLine}{ex.Message}"); return false; } finally { File.Delete(tmpObjFile); } } ITaskItem CreateOutputItemFor(string srcFile, string objFile) { ITaskItem newItem = new TaskItem(objFile); newItem.SetMetadata("SourceFile", srcFile); return newItem; } } private bool ShouldCompile(string srcFile, string objFile, string[] depFiles, out string reason) { if (!File.Exists(srcFile)) throw new LogAsErrorException($"Could not find source file {srcFile}"); if (!File.Exists(objFile)) { reason = $"output file {objFile} doesn't exist"; return true; } if (IsNewerThanOutput(srcFile, objFile, out reason)) return true; foreach (string depFile in depFiles) { if (IsNewerThanOutput(depFile, objFile, out reason)) return true; } reason = "everything is up-to-date"; return false; bool IsNewerThanOutput(string inFile, string outFile, out string reason) { if (!File.Exists(inFile)) { reason = $"Could not find dependency file {inFile} needed for compiling {srcFile} to {outFile}"; Log.LogWarning(reason); return true; } DateTime lastWriteTimeSrc = File.GetLastWriteTimeUtc(inFile); DateTime lastWriteTimeDst = File.GetLastWriteTimeUtc(outFile); if (lastWriteTimeSrc > lastWriteTimeDst) { reason = $"{inFile} is newer than {outFile}"; return true; } else { reason = $"{inFile} is older than {outFile}"; return false; } } } private IDictionary<string, string> GetEnvironmentVariablesDict() { Dictionary<string, string> envVarsDict = new(); if (EnvironmentVariables == null) return envVarsDict; foreach (var item in EnvironmentVariables) { var parts = item.ItemSpec.Split(new char[] {'='}, 2, StringSplitOptions.None); if (parts.Length == 0) continue; string key = parts[0]; string value = parts.Length > 1 ? parts[1] : string.Empty; envVarsDict[key] = value; } return envVarsDict; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.Build.Framework; using Microsoft.Build.Utilities; #nullable enable namespace Microsoft.WebAssembly.Build.Tasks { /// <summary> /// This is meant to *compile* source files only. It is *not* a general purpose /// `emcc` invocation task. /// /// It runs `emcc` for each source file, and with output to `%(SourceFiles.ObjectFile)` /// /// </summary> public class EmccCompile : Microsoft.Build.Utilities.Task { [NotNull] [Required] public ITaskItem[]? SourceFiles { get; set; } public ITaskItem[]? EnvironmentVariables { get; set; } public bool DisableParallelCompile { get; set; } public string Arguments { get; set; } = string.Empty; public string? WorkingDirectory { get; set; } public string OutputMessageImportance{ get; set; } = "Low"; [Output] public ITaskItem[]? OutputFiles { get; private set; } private string? _tempPath; private int _totalFiles; private int _numCompiled; public override bool Execute() { try { return ExecuteActual(); } catch (LogAsErrorException laee) { Log.LogError(laee.Message); return false; } } private bool ExecuteActual() { if (SourceFiles.Length == 0) { Log.LogError($"No SourceFiles to compile"); return false; } ITaskItem? badItem = SourceFiles.FirstOrDefault(sf => string.IsNullOrEmpty(sf.GetMetadata("ObjectFile"))); if (badItem != null) { Log.LogError($"Source file {badItem.ItemSpec} is missing ObjectFile metadata."); return false; } if (!Enum.TryParse(OutputMessageImportance, ignoreCase: true, out MessageImportance messageImportance)) { Log.LogError($"Invalid value for OutputMessageImportance={OutputMessageImportance}. Valid values: {string.Join(", ", Enum.GetNames(typeof(MessageImportance)))}"); return false; } _totalFiles = SourceFiles.Length; IDictionary<string, string> envVarsDict = GetEnvironmentVariablesDict(); ConcurrentBag<ITaskItem> outputItems = new(); try { List<(string, string)> filesToCompile = new(); foreach (ITaskItem srcItem in SourceFiles) { string srcFile = srcItem.ItemSpec; string objFile = srcItem.GetMetadata("ObjectFile"); string depMetadata = srcItem.GetMetadata("Dependencies"); string[] depFiles = string.IsNullOrEmpty(depMetadata) ? Array.Empty<string>() : depMetadata.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); if (!ShouldCompile(srcFile, objFile, depFiles, out string reason)) { Log.LogMessage(MessageImportance.Low, $"Skipping {srcFile} because {reason}."); outputItems.Add(CreateOutputItemFor(srcFile, objFile)); } else { Log.LogMessage(MessageImportance.Low, $"Compiling {srcFile} because {reason}."); filesToCompile.Add((srcFile, objFile)); } } _numCompiled = SourceFiles.Length - filesToCompile.Count; if (_numCompiled == _totalFiles) { // nothing to do! OutputFiles = outputItems.ToArray(); return !Log.HasLoggedErrors; } if (_numCompiled > 0) Log.LogMessage(MessageImportance.High, $"[{_numCompiled}/{SourceFiles.Length}] skipped unchanged files"); Log.LogMessage(MessageImportance.Low, "Using environment variables:"); foreach (var kvp in envVarsDict) Log.LogMessage(MessageImportance.Low, $"\t{kvp.Key} = {kvp.Value}"); string workingDir = Environment.CurrentDirectory; Log.LogMessage(MessageImportance.Low, $"Using working directory: {workingDir}"); _tempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); Directory.CreateDirectory(_tempPath); int allowedParallelism = DisableParallelCompile ? 1 : Math.Min(SourceFiles.Length, Environment.ProcessorCount); if (BuildEngine is IBuildEngine9 be9) allowedParallelism = be9.RequestCores(allowedParallelism); ParallelLoopResult result = Parallel.ForEach(filesToCompile, new ParallelOptions { MaxDegreeOfParallelism = allowedParallelism }, (toCompile, state) => { if (!ProcessSourceFile(toCompile.Item1, toCompile.Item2)) state.Stop(); }); if (!result.IsCompleted && !Log.HasLoggedErrors) Log.LogError("Unknown failure occured while compiling. Check logs to get more details."); if (!Log.HasLoggedErrors) { int numUnchanged = _totalFiles - _numCompiled; if (numUnchanged > 0) Log.LogMessage(MessageImportance.High, $"[{numUnchanged}/{_totalFiles}] unchanged."); } } finally { if (!string.IsNullOrEmpty(_tempPath)) Directory.Delete(_tempPath, true); } OutputFiles = outputItems.ToArray(); return !Log.HasLoggedErrors; bool ProcessSourceFile(string srcFile, string objFile) { string tmpObjFile = Path.GetTempFileName(); try { string command = $"emcc {Arguments} -c -o \"{tmpObjFile}\" \"{srcFile}\""; var startTime = DateTime.Now; // Log the command in a compact format which can be copy pasted StringBuilder envStr = new StringBuilder(string.Empty); foreach (var key in envVarsDict.Keys) envStr.Append($"{key}={envVarsDict[key]} "); Log.LogMessage(MessageImportance.Low, $"Exec: {envStr}{command}"); (int exitCode, string output) = Utils.RunShellCommand( Log, command, envVarsDict, workingDir: Environment.CurrentDirectory, logStdErrAsMessage: true, debugMessageImportance: messageImportance, label: Path.GetFileName(srcFile)); var endTime = DateTime.Now; var elapsedSecs = (endTime - startTime).TotalSeconds; if (exitCode != 0) { Log.LogError($"Failed to compile {srcFile} -> {objFile}{Environment.NewLine}{output} [took {elapsedSecs:F}s]"); return false; } if (!Utils.CopyIfDifferent(tmpObjFile, objFile, useHash: true)) Log.LogMessage(MessageImportance.Low, $"Did not overwrite {objFile} as the contents are unchanged"); else Log.LogMessage(MessageImportance.Low, $"Copied {tmpObjFile} to {objFile}"); outputItems.Add(CreateOutputItemFor(srcFile, objFile)); int count = Interlocked.Increment(ref _numCompiled); Log.LogMessage(MessageImportance.High, $"[{count}/{_totalFiles}] {Path.GetFileName(srcFile)} -> {Path.GetFileName(objFile)} [took {elapsedSecs:F}s]"); return !Log.HasLoggedErrors; } catch (Exception ex) { Log.LogError($"Failed to compile {srcFile} -> {objFile}{Environment.NewLine}{ex.Message}"); return false; } finally { File.Delete(tmpObjFile); } } ITaskItem CreateOutputItemFor(string srcFile, string objFile) { ITaskItem newItem = new TaskItem(objFile); newItem.SetMetadata("SourceFile", srcFile); return newItem; } } private bool ShouldCompile(string srcFile, string objFile, string[] depFiles, out string reason) { if (!File.Exists(srcFile)) throw new LogAsErrorException($"Could not find source file {srcFile}"); if (!File.Exists(objFile)) { reason = $"output file {objFile} doesn't exist"; return true; } if (IsNewerThanOutput(srcFile, objFile, out reason)) return true; foreach (string depFile in depFiles) { if (IsNewerThanOutput(depFile, objFile, out reason)) return true; } reason = "everything is up-to-date"; return false; bool IsNewerThanOutput(string inFile, string outFile, out string reason) { if (!File.Exists(inFile)) { reason = $"Could not find dependency file {inFile} needed for compiling {srcFile} to {outFile}"; Log.LogWarning(reason); return true; } DateTime lastWriteTimeSrc = File.GetLastWriteTimeUtc(inFile); DateTime lastWriteTimeDst = File.GetLastWriteTimeUtc(outFile); if (lastWriteTimeSrc > lastWriteTimeDst) { reason = $"{inFile} is newer than {outFile}"; return true; } else { reason = $"{inFile} is older than {outFile}"; return false; } } } private IDictionary<string, string> GetEnvironmentVariablesDict() { Dictionary<string, string> envVarsDict = new(); if (EnvironmentVariables == null) return envVarsDict; foreach (var item in EnvironmentVariables) { var parts = item.ItemSpec.Split(new char[] {'='}, 2, StringSplitOptions.None); if (parts.Length == 0) continue; string key = parts[0]; string value = parts.Length > 1 ? parts[1] : string.Empty; envVarsDict[key] = value; } return envVarsDict; } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Private.Xml/src/Misc/HResults.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /* These HRESULTs are used for mapping managed exceptions to COM error codes and vice versa through COM Interop. For background on COM error codes see https://docs.microsoft.com/en-us/windows/desktop/com/com-error-codes. FACILITY_URT is defined as 0x13 (0x8013xxxx). The facility range is reserved for the .NET Framework SDK teams. Within that range, the following subranges have been allocated for different feature areas: 0x10yy for Execution Engine 0x11yy for Metadata, TypeLib Export, and CLDB 0x12yy for MetaData Validator 0x13yy for Debugger and Profiler errors 0x14yy for Security 0x15yy for BCL 0x1600 - 0x161F for Reflection 0x1620 - 0x163F for System.IO 0x1640 - 0x165F for Security 0x1660 - 0x16FF for BCL 0x17yy for shim 0x18yy for IL Verifier 0x19yy for .NET Framework 0x1Ayy for .NET Framework 0x1Byy for MetaData Validator 0x30yy for VSA errors CLR HRESULTs are defined in corerror.h. If you make any modifications to the range allocations described above, please make sure the corerror.h file gets updated. */ namespace System { using System; internal static class HResults { // Xml internal const int Xml = unchecked((int)0x80131940); internal const int XmlSchema = unchecked((int)0x80131941); internal const int XmlXslt = unchecked((int)0x80131942); internal const int XmlXPath = unchecked((int)0x80131943); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /* These HRESULTs are used for mapping managed exceptions to COM error codes and vice versa through COM Interop. For background on COM error codes see https://docs.microsoft.com/en-us/windows/desktop/com/com-error-codes. FACILITY_URT is defined as 0x13 (0x8013xxxx). The facility range is reserved for the .NET Framework SDK teams. Within that range, the following subranges have been allocated for different feature areas: 0x10yy for Execution Engine 0x11yy for Metadata, TypeLib Export, and CLDB 0x12yy for MetaData Validator 0x13yy for Debugger and Profiler errors 0x14yy for Security 0x15yy for BCL 0x1600 - 0x161F for Reflection 0x1620 - 0x163F for System.IO 0x1640 - 0x165F for Security 0x1660 - 0x16FF for BCL 0x17yy for shim 0x18yy for IL Verifier 0x19yy for .NET Framework 0x1Ayy for .NET Framework 0x1Byy for MetaData Validator 0x30yy for VSA errors CLR HRESULTs are defined in corerror.h. If you make any modifications to the range allocations described above, please make sure the corerror.h file gets updated. */ namespace System { using System; internal static class HResults { // Xml internal const int Xml = unchecked((int)0x80131940); internal const int XmlSchema = unchecked((int)0x80131941); internal const int XmlXslt = unchecked((int)0x80131942); internal const int XmlXPath = unchecked((int)0x80131943); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/HardwareIntrinsics/General/Vector128_1/op_Equality.UInt32.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_EqualityUInt32() { var test = new VectorBooleanBinaryOpTest__op_EqualityUInt32(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBooleanBinaryOpTest__op_EqualityUInt32 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(UInt32[] inArray1, UInt32[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt32>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt32, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<UInt32> _fld1; public Vector128<UInt32> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__op_EqualityUInt32 testClass) { var result = _fld1 == _fld2; testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static UInt32[] _data2 = new UInt32[Op2ElementCount]; private static Vector128<UInt32> _clsVar1; private static Vector128<UInt32> _clsVar2; private Vector128<UInt32> _fld1; private Vector128<UInt32> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__op_EqualityUInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); } public VectorBooleanBinaryOpTest__op_EqualityUInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr) == Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector128<UInt32>).GetMethod("op_Equality", new Type[] { typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = _clsVar1 == _clsVar2; ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); var result = op1 == op2; ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__op_EqualityUInt32(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = _fld1 == _fld2; ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector128<UInt32> op1, Vector128<UInt32> op2, bool result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(UInt32[] left, UInt32[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = true; for (var i = 0; i < Op1ElementCount; i++) { expectedResult &= (left[i] == right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector128)}.op_Equality<UInt32>(Vector128<UInt32>, Vector128<UInt32>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({result})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /****************************************************************************** * This file is auto-generated from a template file by the GenerateTests.csx * * script in tests\src\JIT\HardwareIntrinsics\X86\Shared. In order to make * * changes, please update the corresponding template and run according to the * * directions listed in the file. * ******************************************************************************/ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; namespace JIT.HardwareIntrinsics.General { public static partial class Program { private static void op_EqualityUInt32() { var test = new VectorBooleanBinaryOpTest__op_EqualityUInt32(); // Validates basic functionality works, using Unsafe.Read test.RunBasicScenario_UnsafeRead(); // Validates calling via reflection works, using Unsafe.Read test.RunReflectionScenario_UnsafeRead(); // Validates passing a static member works test.RunClsVarScenario(); // Validates passing a local works, using Unsafe.Read test.RunLclVarScenario_UnsafeRead(); // Validates passing the field of a local class works test.RunClassLclFldScenario(); // Validates passing an instance member of a class works test.RunClassFldScenario(); // Validates passing the field of a local struct works test.RunStructLclFldScenario(); // Validates passing an instance member of a struct works test.RunStructFldScenario(); if (!test.Succeeded) { throw new Exception("One or more scenarios did not complete as expected."); } } } public sealed unsafe class VectorBooleanBinaryOpTest__op_EqualityUInt32 { private struct DataTable { private byte[] inArray1; private byte[] inArray2; private GCHandle inHandle1; private GCHandle inHandle2; private ulong alignment; public DataTable(UInt32[] inArray1, UInt32[] inArray2, int alignment) { int sizeOfinArray1 = inArray1.Length * Unsafe.SizeOf<UInt32>(); int sizeOfinArray2 = inArray2.Length * Unsafe.SizeOf<UInt32>(); if ((alignment != 32 && alignment != 16 && alignment != 8) || (alignment * 2) < sizeOfinArray1 || (alignment * 2) < sizeOfinArray2) { throw new ArgumentException("Invalid value of alignment"); } this.inArray1 = new byte[alignment * 2]; this.inArray2 = new byte[alignment * 2]; this.inHandle1 = GCHandle.Alloc(this.inArray1, GCHandleType.Pinned); this.inHandle2 = GCHandle.Alloc(this.inArray2, GCHandleType.Pinned); this.alignment = (ulong)alignment; Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray1Ptr), ref Unsafe.As<UInt32, byte>(ref inArray1[0]), (uint)sizeOfinArray1); Unsafe.CopyBlockUnaligned(ref Unsafe.AsRef<byte>(inArray2Ptr), ref Unsafe.As<UInt32, byte>(ref inArray2[0]), (uint)sizeOfinArray2); } public void* inArray1Ptr => Align((byte*)(inHandle1.AddrOfPinnedObject().ToPointer()), alignment); public void* inArray2Ptr => Align((byte*)(inHandle2.AddrOfPinnedObject().ToPointer()), alignment); public void Dispose() { inHandle1.Free(); inHandle2.Free(); } private static unsafe void* Align(byte* buffer, ulong expectedAlignment) { return (void*)(((ulong)buffer + expectedAlignment - 1) & ~(expectedAlignment - 1)); } } private struct TestStruct { public Vector128<UInt32> _fld1; public Vector128<UInt32> _fld2; public static TestStruct Create() { var testStruct = new TestStruct(); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref testStruct._fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); return testStruct; } public void RunStructFldScenario(VectorBooleanBinaryOpTest__op_EqualityUInt32 testClass) { var result = _fld1 == _fld2; testClass.ValidateResult(_fld1, _fld2, result); } } private static readonly int LargestVectorSize = 16; private static readonly int Op1ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static readonly int Op2ElementCount = Unsafe.SizeOf<Vector128<UInt32>>() / sizeof(UInt32); private static UInt32[] _data1 = new UInt32[Op1ElementCount]; private static UInt32[] _data2 = new UInt32[Op2ElementCount]; private static Vector128<UInt32> _clsVar1; private static Vector128<UInt32> _clsVar2; private Vector128<UInt32> _fld1; private Vector128<UInt32> _fld2; private DataTable _dataTable; static VectorBooleanBinaryOpTest__op_EqualityUInt32() { for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _clsVar2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); } public VectorBooleanBinaryOpTest__op_EqualityUInt32() { Succeeded = true; for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld1), ref Unsafe.As<UInt32, byte>(ref _data1[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } Unsafe.CopyBlockUnaligned(ref Unsafe.As<Vector128<UInt32>, byte>(ref _fld2), ref Unsafe.As<UInt32, byte>(ref _data2[0]), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); for (var i = 0; i < Op1ElementCount; i++) { _data1[i] = TestLibrary.Generator.GetUInt32(); } for (var i = 0; i < Op2ElementCount; i++) { _data2[i] = TestLibrary.Generator.GetUInt32(); } _dataTable = new DataTable(_data1, _data2, LargestVectorSize); } public bool Succeeded { get; set; } public void RunBasicScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead)); var result = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr) == Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); } public void RunReflectionScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead)); var result = typeof(Vector128<UInt32>).GetMethod("op_Equality", new Type[] { typeof(Vector128<UInt32>), typeof(Vector128<UInt32>) }) .Invoke(null, new object[] { Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr), Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr) }); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, (bool)(result)); } public void RunClsVarScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario)); var result = _clsVar1 == _clsVar2; ValidateResult(_clsVar1, _clsVar2, result); } public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var op1 = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray1Ptr); var op2 = Unsafe.Read<Vector128<UInt32>>(_dataTable.inArray2Ptr); var result = op1 == op2; ValidateResult(op1, op2, result); } public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new VectorBooleanBinaryOpTest__op_EqualityUInt32(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = _fld1 == _fld2; ValidateResult(_fld1, _fld2, result); } public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = test._fld1 == test._fld2; ValidateResult(test._fld1, test._fld2, result); } public void RunStructFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario)); var test = TestStruct.Create(); test.RunStructFldScenario(this); } private void ValidateResult(Vector128<UInt32> op1, Vector128<UInt32> op2, bool result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), op1); Unsafe.WriteUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), op2); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(void* op1, void* op2, bool result, [CallerMemberName] string method = "") { UInt32[] inArray1 = new UInt32[Op1ElementCount]; UInt32[] inArray2 = new UInt32[Op2ElementCount]; Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray1[0]), ref Unsafe.AsRef<byte>(op1), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); Unsafe.CopyBlockUnaligned(ref Unsafe.As<UInt32, byte>(ref inArray2[0]), ref Unsafe.AsRef<byte>(op2), (uint)Unsafe.SizeOf<Vector128<UInt32>>()); ValidateResult(inArray1, inArray2, result, method); } private void ValidateResult(UInt32[] left, UInt32[] right, bool result, [CallerMemberName] string method = "") { bool succeeded = true; var expectedResult = true; for (var i = 0; i < Op1ElementCount; i++) { expectedResult &= (left[i] == right[i]); } succeeded = (expectedResult == result); if (!succeeded) { TestLibrary.TestFramework.LogInformation($"{nameof(Vector128)}.op_Equality<UInt32>(Vector128<UInt32>, Vector128<UInt32>): {method} failed:"); TestLibrary.TestFramework.LogInformation($" left: ({string.Join(", ", left)})"); TestLibrary.TestFramework.LogInformation($" right: ({string.Join(", ", right)})"); TestLibrary.TestFramework.LogInformation($" result: ({result})"); TestLibrary.TestFramework.LogInformation(string.Empty); Succeeded = false; } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/coreclr/tools/Common/TypeSystem/IL/Stubs/ComparerIntrinsics.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using Internal.TypeSystem; using Debug = System.Diagnostics.Debug; namespace Internal.IL.Stubs { /// <summary> /// Intrinsic support arround EqualityComparer&lt;T&gt; and Comparer&lt;T&gt;. /// </summary> public static class ComparerIntrinsics { /// <summary> /// Generates a specialized method body for Comparer`1.Create or returns null if no specialized body can be generated. /// </summary> public static MethodIL EmitComparerCreate(MethodDesc target) { return EmitComparerAndEqualityComparerCreateCommon(target, "Comparer", "IComparable`1"); } /// <summary> /// Generates a specialized method body for EqualityComparer`1.Create or returns null if no specialized body can be generated. /// </summary> public static MethodIL EmitEqualityComparerCreate(MethodDesc target) { return EmitComparerAndEqualityComparerCreateCommon(target, "EqualityComparer", "IEquatable`1"); } /// <summary> /// Gets the concrete type Comparer`1.Create returns or null if it's not known at compile time. /// </summary> public static TypeDesc GetComparerForType(TypeDesc comparand) { return GetComparerForType(comparand, "Comparer", "IComparable`1"); } /// <summary> /// Gets the concrete type EqualityComparer`1.Create returns or null if it's not known at compile time. /// </summary> public static TypeDesc GetEqualityComparerForType(TypeDesc comparand) { return GetComparerForType(comparand, "EqualityComparer", "IEquatable`1"); } private static MethodIL EmitComparerAndEqualityComparerCreateCommon(MethodDesc methodBeingGenerated, string flavor, string interfaceName) { // We expect the method to be fully instantiated Debug.Assert(!methodBeingGenerated.IsTypicalMethodDefinition); TypeDesc owningType = methodBeingGenerated.OwningType; TypeDesc comparedType = owningType.Instantiation[0]; // If the type is canonical, we use the default implementation provided by the class library. // This will rely on the type loader to load the proper type at runtime. if (comparedType.IsCanonicalSubtype(CanonicalFormKind.Any)) return null; TypeDesc comparerType = GetComparerForType(comparedType, flavor, interfaceName); Debug.Assert(comparerType != null); ILEmitter emitter = new ILEmitter(); var codeStream = emitter.NewCodeStream(); FieldDesc defaultField = owningType.GetKnownField("s_default"); TypeSystemContext context = comparerType.Context; TypeDesc objectType = context.GetWellKnownType(WellKnownType.Object); MethodDesc compareExchangeObject = context.SystemModule. GetKnownType("System.Threading", "Interlocked"). GetKnownMethod("CompareExchange", new MethodSignature( MethodSignatureFlags.Static, genericParameterCount: 0, returnType: objectType, parameters: new TypeDesc[] { objectType.MakeByRefType(), objectType, objectType })); codeStream.Emit(ILOpcode.ldsflda, emitter.NewToken(defaultField)); codeStream.Emit(ILOpcode.newobj, emitter.NewToken(comparerType.GetParameterlessConstructor())); codeStream.Emit(ILOpcode.ldnull); codeStream.Emit(ILOpcode.call, emitter.NewToken(compareExchangeObject)); codeStream.Emit(ILOpcode.pop); codeStream.Emit(ILOpcode.ldsfld, emitter.NewToken(defaultField)); codeStream.Emit(ILOpcode.ret); return emitter.Link(methodBeingGenerated); } /// <summary> /// Gets the comparer type that is suitable to compare instances of <paramref name="type"/> /// or null if such comparer cannot be determined at compile time. /// </summary> private static TypeDesc GetComparerForType(TypeDesc type, string flavor, string interfaceName) { TypeSystemContext context = type.Context; if (context.IsCanonicalDefinitionType(type, CanonicalFormKind.Any) || (type.IsRuntimeDeterminedSubtype && !type.HasInstantiation)) { // The comparer will be determined at runtime. We can't tell the exact type at compile time. return null; } else if (type.IsNullable) { TypeDesc nullableType = type.Instantiation[0]; if (context.IsCanonicalDefinitionType(nullableType, CanonicalFormKind.Universal)) { // We can't tell at compile time either. return null; } else if (ImplementsInterfaceOfSelf(nullableType, interfaceName)) { return context.SystemModule.GetKnownType("System.Collections.Generic", $"Nullable{flavor}`1") .MakeInstantiatedType(nullableType); } } else if (type.IsEnum) { // Enums have a specialized comparer that avoids boxing return context.SystemModule.GetKnownType("System.Collections.Generic", $"Enum{flavor}`1") .MakeInstantiatedType(type); } else if (ImplementsInterfaceOfSelf(type, interfaceName)) { return context.SystemModule.GetKnownType("System.Collections.Generic", $"Generic{flavor}`1") .MakeInstantiatedType(type); } return context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type); } public static TypeDesc[] GetPotentialComparersForType(TypeDesc type) { return GetPotentialComparersForTypeCommon(type, "Comparer", "IComparable`1"); } public static TypeDesc[] GetPotentialEqualityComparersForType(TypeDesc type) { return GetPotentialComparersForTypeCommon(type, "EqualityComparer", "IEquatable`1"); } /// <summary> /// Gets the set of template types needed to support loading comparers for the give canonical type at runtime. /// </summary> private static TypeDesc[] GetPotentialComparersForTypeCommon(TypeDesc type, string flavor, string interfaceName) { Debug.Assert(type.IsCanonicalSubtype(CanonicalFormKind.Any)); TypeDesc exactComparer = GetComparerForType(type, flavor, interfaceName); if (exactComparer != null) { // If we have a comparer that is exactly known at runtime, we're done. // This will typically be if type is a generic struct, generic enum, or a nullable. return new TypeDesc[] { exactComparer }; } TypeSystemContext context = type.Context; if (context.IsCanonicalDefinitionType(type, CanonicalFormKind.Universal)) { // This can be any of the comparers we have. ArrayBuilder<TypeDesc> universalComparers = new ArrayBuilder<TypeDesc>(); universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Nullable{flavor}`1") .MakeInstantiatedType(type)); if (flavor == "EqualityComparer") universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Enum{flavor}`1") .MakeInstantiatedType(type)); universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Generic{flavor}`1") .MakeInstantiatedType(type)); universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type)); return universalComparers.ToArray(); } // This mirrors exactly what GetUnknownEquatableComparer and GetUnknownComparer (in the class library) // will need at runtime. This is the general purpose code path that can be used to compare // anything. if (type.IsNullable) { TypeDesc nullableType = type.Instantiation[0]; // This should only be reachabe for universal canon code. // For specific canon, this should have been an exact match above. Debug.Assert(context.IsCanonicalDefinitionType(nullableType, CanonicalFormKind.Universal)); return new TypeDesc[] { context.SystemModule.GetKnownType("System.Collections.Generic", $"Nullable{flavor}`1") .MakeInstantiatedType(nullableType), context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type), }; } return new TypeDesc[] { context.SystemModule.GetKnownType("System.Collections.Generic", $"Generic{flavor}`1") .MakeInstantiatedType(type), context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type), }; } public static bool ImplementsIEquatable(TypeDesc type) => ImplementsInterfaceOfSelf(type, "IEquatable`1"); private static bool ImplementsInterfaceOfSelf(TypeDesc type, string interfaceName) { MetadataType interfaceType = null; foreach (TypeDesc implementedInterface in type.RuntimeInterfaces) { Instantiation interfaceInstantiation = implementedInterface.Instantiation; if (interfaceInstantiation.Length == 1 && interfaceInstantiation[0] == type) { if (interfaceType == null) interfaceType = type.Context.SystemModule.GetKnownType("System", interfaceName); if (implementedInterface.GetTypeDefinition() == interfaceType) return true; } } return false; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using Internal.TypeSystem; using Debug = System.Diagnostics.Debug; namespace Internal.IL.Stubs { /// <summary> /// Intrinsic support arround EqualityComparer&lt;T&gt; and Comparer&lt;T&gt;. /// </summary> public static class ComparerIntrinsics { /// <summary> /// Generates a specialized method body for Comparer`1.Create or returns null if no specialized body can be generated. /// </summary> public static MethodIL EmitComparerCreate(MethodDesc target) { return EmitComparerAndEqualityComparerCreateCommon(target, "Comparer", "IComparable`1"); } /// <summary> /// Generates a specialized method body for EqualityComparer`1.Create or returns null if no specialized body can be generated. /// </summary> public static MethodIL EmitEqualityComparerCreate(MethodDesc target) { return EmitComparerAndEqualityComparerCreateCommon(target, "EqualityComparer", "IEquatable`1"); } /// <summary> /// Gets the concrete type Comparer`1.Create returns or null if it's not known at compile time. /// </summary> public static TypeDesc GetComparerForType(TypeDesc comparand) { return GetComparerForType(comparand, "Comparer", "IComparable`1"); } /// <summary> /// Gets the concrete type EqualityComparer`1.Create returns or null if it's not known at compile time. /// </summary> public static TypeDesc GetEqualityComparerForType(TypeDesc comparand) { return GetComparerForType(comparand, "EqualityComparer", "IEquatable`1"); } private static MethodIL EmitComparerAndEqualityComparerCreateCommon(MethodDesc methodBeingGenerated, string flavor, string interfaceName) { // We expect the method to be fully instantiated Debug.Assert(!methodBeingGenerated.IsTypicalMethodDefinition); TypeDesc owningType = methodBeingGenerated.OwningType; TypeDesc comparedType = owningType.Instantiation[0]; // If the type is canonical, we use the default implementation provided by the class library. // This will rely on the type loader to load the proper type at runtime. if (comparedType.IsCanonicalSubtype(CanonicalFormKind.Any)) return null; TypeDesc comparerType = GetComparerForType(comparedType, flavor, interfaceName); Debug.Assert(comparerType != null); ILEmitter emitter = new ILEmitter(); var codeStream = emitter.NewCodeStream(); FieldDesc defaultField = owningType.GetKnownField("s_default"); TypeSystemContext context = comparerType.Context; TypeDesc objectType = context.GetWellKnownType(WellKnownType.Object); MethodDesc compareExchangeObject = context.SystemModule. GetKnownType("System.Threading", "Interlocked"). GetKnownMethod("CompareExchange", new MethodSignature( MethodSignatureFlags.Static, genericParameterCount: 0, returnType: objectType, parameters: new TypeDesc[] { objectType.MakeByRefType(), objectType, objectType })); codeStream.Emit(ILOpcode.ldsflda, emitter.NewToken(defaultField)); codeStream.Emit(ILOpcode.newobj, emitter.NewToken(comparerType.GetParameterlessConstructor())); codeStream.Emit(ILOpcode.ldnull); codeStream.Emit(ILOpcode.call, emitter.NewToken(compareExchangeObject)); codeStream.Emit(ILOpcode.pop); codeStream.Emit(ILOpcode.ldsfld, emitter.NewToken(defaultField)); codeStream.Emit(ILOpcode.ret); return emitter.Link(methodBeingGenerated); } /// <summary> /// Gets the comparer type that is suitable to compare instances of <paramref name="type"/> /// or null if such comparer cannot be determined at compile time. /// </summary> private static TypeDesc GetComparerForType(TypeDesc type, string flavor, string interfaceName) { TypeSystemContext context = type.Context; if (context.IsCanonicalDefinitionType(type, CanonicalFormKind.Any) || (type.IsRuntimeDeterminedSubtype && !type.HasInstantiation)) { // The comparer will be determined at runtime. We can't tell the exact type at compile time. return null; } else if (type.IsNullable) { TypeDesc nullableType = type.Instantiation[0]; if (context.IsCanonicalDefinitionType(nullableType, CanonicalFormKind.Universal)) { // We can't tell at compile time either. return null; } else if (ImplementsInterfaceOfSelf(nullableType, interfaceName)) { return context.SystemModule.GetKnownType("System.Collections.Generic", $"Nullable{flavor}`1") .MakeInstantiatedType(nullableType); } } else if (type.IsEnum) { // Enums have a specialized comparer that avoids boxing return context.SystemModule.GetKnownType("System.Collections.Generic", $"Enum{flavor}`1") .MakeInstantiatedType(type); } else if (ImplementsInterfaceOfSelf(type, interfaceName)) { return context.SystemModule.GetKnownType("System.Collections.Generic", $"Generic{flavor}`1") .MakeInstantiatedType(type); } return context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type); } public static TypeDesc[] GetPotentialComparersForType(TypeDesc type) { return GetPotentialComparersForTypeCommon(type, "Comparer", "IComparable`1"); } public static TypeDesc[] GetPotentialEqualityComparersForType(TypeDesc type) { return GetPotentialComparersForTypeCommon(type, "EqualityComparer", "IEquatable`1"); } /// <summary> /// Gets the set of template types needed to support loading comparers for the give canonical type at runtime. /// </summary> private static TypeDesc[] GetPotentialComparersForTypeCommon(TypeDesc type, string flavor, string interfaceName) { Debug.Assert(type.IsCanonicalSubtype(CanonicalFormKind.Any)); TypeDesc exactComparer = GetComparerForType(type, flavor, interfaceName); if (exactComparer != null) { // If we have a comparer that is exactly known at runtime, we're done. // This will typically be if type is a generic struct, generic enum, or a nullable. return new TypeDesc[] { exactComparer }; } TypeSystemContext context = type.Context; if (context.IsCanonicalDefinitionType(type, CanonicalFormKind.Universal)) { // This can be any of the comparers we have. ArrayBuilder<TypeDesc> universalComparers = new ArrayBuilder<TypeDesc>(); universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Nullable{flavor}`1") .MakeInstantiatedType(type)); if (flavor == "EqualityComparer") universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Enum{flavor}`1") .MakeInstantiatedType(type)); universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Generic{flavor}`1") .MakeInstantiatedType(type)); universalComparers.Add(context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type)); return universalComparers.ToArray(); } // This mirrors exactly what GetUnknownEquatableComparer and GetUnknownComparer (in the class library) // will need at runtime. This is the general purpose code path that can be used to compare // anything. if (type.IsNullable) { TypeDesc nullableType = type.Instantiation[0]; // This should only be reachabe for universal canon code. // For specific canon, this should have been an exact match above. Debug.Assert(context.IsCanonicalDefinitionType(nullableType, CanonicalFormKind.Universal)); return new TypeDesc[] { context.SystemModule.GetKnownType("System.Collections.Generic", $"Nullable{flavor}`1") .MakeInstantiatedType(nullableType), context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type), }; } return new TypeDesc[] { context.SystemModule.GetKnownType("System.Collections.Generic", $"Generic{flavor}`1") .MakeInstantiatedType(type), context.SystemModule.GetKnownType("System.Collections.Generic", $"Object{flavor}`1") .MakeInstantiatedType(type), }; } public static bool ImplementsIEquatable(TypeDesc type) => ImplementsInterfaceOfSelf(type, "IEquatable`1"); private static bool ImplementsInterfaceOfSelf(TypeDesc type, string interfaceName) { MetadataType interfaceType = null; foreach (TypeDesc implementedInterface in type.RuntimeInterfaces) { Instantiation interfaceInstantiation = implementedInterface.Instantiation; if (interfaceInstantiation.Length == 1 && interfaceInstantiation[0] == type) { if (interfaceType == null) interfaceType = type.Context.SystemModule.GetKnownType("System", interfaceName); if (implementedInterface.GetTypeDefinition() == interfaceType) return true; } } return false; } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/VoidMainWithExitCodeApp.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Reflection; using System.Threading; namespace VoidMainWithExitCodeApp { internal static class Program { static void Main(string[] args) { int exitCode = int.Parse(args[0]); int mode = int.Parse(args[1]); PropertyInfo set_ExitCode = typeof(Environment).GetTypeInfo().GetDeclaredProperty("ExitCode"); MethodInfo Exit = typeof(Environment).GetTypeInfo().GetDeclaredMethod("Exit"); switch (mode) { case 1: // set ExitCode and exit set_ExitCode.SetValue(null, exitCode); // TODO: Environment.ExitCode = exitCode; break; case 2: // set ExitCode, exit, and then set ExitCode from another foreground thread new Thread(() => // foreground thread { Thread.Sleep(1000); // time for Main to exit set_ExitCode.SetValue(null, exitCode); // TODO: Environment.ExitCode = exitCode; }).Start(); set_ExitCode.SetValue(null, exitCode - 1); // TODO: Environment.ExitCode = exitCode - 1; break; case 3: // call Environment.Exit(exitCode) Exit.Invoke(null, new object[] { exitCode }); // TODO: Environment.Exit(exitCode); break; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Reflection; using System.Threading; namespace VoidMainWithExitCodeApp { internal static class Program { static void Main(string[] args) { int exitCode = int.Parse(args[0]); int mode = int.Parse(args[1]); PropertyInfo set_ExitCode = typeof(Environment).GetTypeInfo().GetDeclaredProperty("ExitCode"); MethodInfo Exit = typeof(Environment).GetTypeInfo().GetDeclaredMethod("Exit"); switch (mode) { case 1: // set ExitCode and exit set_ExitCode.SetValue(null, exitCode); // TODO: Environment.ExitCode = exitCode; break; case 2: // set ExitCode, exit, and then set ExitCode from another foreground thread new Thread(() => // foreground thread { Thread.Sleep(1000); // time for Main to exit set_ExitCode.SetValue(null, exitCode); // TODO: Environment.ExitCode = exitCode; }).Start(); set_ExitCode.SetValue(null, exitCode - 1); // TODO: Environment.ExitCode = exitCode - 1; break; case 3: // call Environment.Exit(exitCode) Exit.Invoke(null, new object[] { exitCode }); // TODO: Environment.Exit(exitCode); break; } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/AES/AesCipherTests.Data.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Text; namespace System.Security.Cryptography.Encryption.Aes.Tests { public partial class AesCipherTests { private static readonly Encoding s_asciiEncoding = new ASCIIEncoding(); private static readonly byte[] s_helloBytes = s_asciiEncoding.GetBytes("Hello"); // This is the expected output of many decryptions. Changing this value requires re-generating test input. private static readonly byte[] s_multiBlockBytes = s_asciiEncoding.GetBytes("This is a sentence that is longer than a block, it ensures that multi-block functions work."); // A randomly generated 256-bit key. private static readonly byte[] s_aes256Key = new byte[] { 0x3E, 0x8A, 0xB2, 0x5B, 0x41, 0xF2, 0x5D, 0xEF, 0x48, 0x4E, 0x0C, 0x50, 0xBB, 0xCF, 0x89, 0xA1, 0x1B, 0x6A, 0x26, 0x86, 0x60, 0x36, 0x7C, 0xFD, 0x04, 0x3D, 0xE3, 0x97, 0x6D, 0xB0, 0x86, 0x60, }; // A randomly generated IV, for use in the AES-256CBC tests (and other cases' negative tests) private static readonly byte[] s_aes256CbcIv = new byte[] { 0x43, 0x20, 0xC3, 0xE1, 0xCA, 0x80, 0x0C, 0xD1, 0xDB, 0x74, 0xF7, 0x30, 0x6D, 0xED, 0x40, 0xF7, }; // A randomly generated 192-bit key. private static readonly byte[] s_aes192Key = new byte[] { 0xA6, 0x1E, 0xC7, 0x54, 0x37, 0x4D, 0x8C, 0xA5, 0xA4, 0xBB, 0x99, 0x50, 0x35, 0x4B, 0x30, 0x4D, 0x6C, 0xFE, 0x3B, 0x59, 0x65, 0xCB, 0x93, 0xE3, }; // A randomly generated 128-bit key. private static readonly byte[] s_aes128Key = new byte[] { 0x8B, 0x74, 0xCF, 0x71, 0x34, 0x99, 0x97, 0x68, 0x22, 0x86, 0xE7, 0x52, 0xED, 0xFC, 0x56, 0x7E, }; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Text; namespace System.Security.Cryptography.Encryption.Aes.Tests { public partial class AesCipherTests { private static readonly Encoding s_asciiEncoding = new ASCIIEncoding(); private static readonly byte[] s_helloBytes = s_asciiEncoding.GetBytes("Hello"); // This is the expected output of many decryptions. Changing this value requires re-generating test input. private static readonly byte[] s_multiBlockBytes = s_asciiEncoding.GetBytes("This is a sentence that is longer than a block, it ensures that multi-block functions work."); // A randomly generated 256-bit key. private static readonly byte[] s_aes256Key = new byte[] { 0x3E, 0x8A, 0xB2, 0x5B, 0x41, 0xF2, 0x5D, 0xEF, 0x48, 0x4E, 0x0C, 0x50, 0xBB, 0xCF, 0x89, 0xA1, 0x1B, 0x6A, 0x26, 0x86, 0x60, 0x36, 0x7C, 0xFD, 0x04, 0x3D, 0xE3, 0x97, 0x6D, 0xB0, 0x86, 0x60, }; // A randomly generated IV, for use in the AES-256CBC tests (and other cases' negative tests) private static readonly byte[] s_aes256CbcIv = new byte[] { 0x43, 0x20, 0xC3, 0xE1, 0xCA, 0x80, 0x0C, 0xD1, 0xDB, 0x74, 0xF7, 0x30, 0x6D, 0xED, 0x40, 0xF7, }; // A randomly generated 192-bit key. private static readonly byte[] s_aes192Key = new byte[] { 0xA6, 0x1E, 0xC7, 0x54, 0x37, 0x4D, 0x8C, 0xA5, 0xA4, 0xBB, 0x99, 0x50, 0x35, 0x4B, 0x30, 0x4D, 0x6C, 0xFE, 0x3B, 0x59, 0x65, 0xCB, 0x93, 0xE3, }; // A randomly generated 128-bit key. private static readonly byte[] s_aes128Key = new byte[] { 0x8B, 0x74, 0xCF, 0x71, 0x34, 0x99, 0x97, 0x68, 0x22, 0x86, 0xE7, 0x52, 0xED, 0xFC, 0x56, 0x7E, }; } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/Microsoft.Extensions.DependencyModel/tests/EnvironmentMockBuilder.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; namespace Microsoft.Extensions.DependencyModel.Tests { public class EnvironmentMockBuilder { private Dictionary<string, string> _variables = new Dictionary<string, string>(); private Dictionary<string, object> _appContextData = new Dictionary<string, object>(); private bool _isWindows; internal static IEnvironment Empty { get; } = Create().Build(); public static EnvironmentMockBuilder Create() { return new EnvironmentMockBuilder(); } public EnvironmentMockBuilder AddVariable(string name, string value) { _variables.Add(name, value); return this; } public EnvironmentMockBuilder AddAppContextData(string name, object value) { _appContextData.Add(name, value); return this; } public EnvironmentMockBuilder SetIsWindows(bool value) { _isWindows = value; return this; } internal IEnvironment Build() { return new EnvironmentMock(_variables, _appContextData, _isWindows); } private class EnvironmentMock : IEnvironment { private Dictionary<string, string> _variables; private Dictionary<string, object> _appContextData; private bool _isWindows; public EnvironmentMock(Dictionary<string, string> variables, Dictionary<string, object> appContextData, bool isWindows) { _variables = variables; _appContextData = appContextData; _isWindows = isWindows; } public string GetEnvironmentVariable(string name) { _variables.TryGetValue(name, out string value); return value; } public object GetAppContextData(string name) { _appContextData.TryGetValue(name, out object value); return value; } public bool IsWindows() { return _isWindows; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; namespace Microsoft.Extensions.DependencyModel.Tests { public class EnvironmentMockBuilder { private Dictionary<string, string> _variables = new Dictionary<string, string>(); private Dictionary<string, object> _appContextData = new Dictionary<string, object>(); private bool _isWindows; internal static IEnvironment Empty { get; } = Create().Build(); public static EnvironmentMockBuilder Create() { return new EnvironmentMockBuilder(); } public EnvironmentMockBuilder AddVariable(string name, string value) { _variables.Add(name, value); return this; } public EnvironmentMockBuilder AddAppContextData(string name, object value) { _appContextData.Add(name, value); return this; } public EnvironmentMockBuilder SetIsWindows(bool value) { _isWindows = value; return this; } internal IEnvironment Build() { return new EnvironmentMock(_variables, _appContextData, _isWindows); } private class EnvironmentMock : IEnvironment { private Dictionary<string, string> _variables; private Dictionary<string, object> _appContextData; private bool _isWindows; public EnvironmentMock(Dictionary<string, string> variables, Dictionary<string, object> appContextData, bool isWindows) { _variables = variables; _appContextData = appContextData; _isWindows = isWindows; } public string GetEnvironmentVariable(string name) { _variables.TryGetValue(name, out string value); return value; } public object GetAppContextData(string name) { _appContextData.TryGetValue(name, out object value); return value; } public bool IsWindows() { return _isWindows; } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.UnitTests/System/Runtime/InteropServices/Marshal/Common/COMWrappersImpl.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Runtime.CompilerServices; using Xunit; namespace System.Runtime.InteropServices.Tests.Common { public class ComWrappersImpl : ComWrappers { // Doesn't represent a real interface. The value is only used to support a call to QueryInterface for testing. public const string IID_TestQueryInterface = "1F906666-B388-4729-B78C-826BC5FD4245"; protected unsafe override ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count) { Assert.Equal(CreateComInterfaceFlags.None, flags); IntPtr fpQueryInterface = default; IntPtr fpAddRef = default; IntPtr fpRelease = default; ComWrappers.GetIUnknownImpl(out fpQueryInterface, out fpAddRef, out fpRelease); var vtblRaw = (IntPtr*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComWrappersImpl), IntPtr.Size * 3); vtblRaw[0] = fpQueryInterface; vtblRaw[1] = fpAddRef; vtblRaw[2] = fpRelease; var entryRaw = (ComInterfaceEntry*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComWrappersImpl), sizeof(ComInterfaceEntry)); entryRaw->IID = new Guid(IID_TestQueryInterface); entryRaw->Vtable = (IntPtr)vtblRaw; count = 1; return entryRaw; } protected override object CreateObject(IntPtr externalComObject, CreateObjectFlags flag) => throw new NotImplementedException(); protected override void ReleaseObjects(IEnumerable objects) => throw new NotImplementedException(); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections; using System.Runtime.CompilerServices; using Xunit; namespace System.Runtime.InteropServices.Tests.Common { public class ComWrappersImpl : ComWrappers { // Doesn't represent a real interface. The value is only used to support a call to QueryInterface for testing. public const string IID_TestQueryInterface = "1F906666-B388-4729-B78C-826BC5FD4245"; protected unsafe override ComInterfaceEntry* ComputeVtables(object obj, CreateComInterfaceFlags flags, out int count) { Assert.Equal(CreateComInterfaceFlags.None, flags); IntPtr fpQueryInterface = default; IntPtr fpAddRef = default; IntPtr fpRelease = default; ComWrappers.GetIUnknownImpl(out fpQueryInterface, out fpAddRef, out fpRelease); var vtblRaw = (IntPtr*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComWrappersImpl), IntPtr.Size * 3); vtblRaw[0] = fpQueryInterface; vtblRaw[1] = fpAddRef; vtblRaw[2] = fpRelease; var entryRaw = (ComInterfaceEntry*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(ComWrappersImpl), sizeof(ComInterfaceEntry)); entryRaw->IID = new Guid(IID_TestQueryInterface); entryRaw->Vtable = (IntPtr)vtblRaw; count = 1; return entryRaw; } protected override object CreateObject(IntPtr externalComObject, CreateObjectFlags flag) => throw new NotImplementedException(); protected override void ReleaseObjects(IEnumerable objects) => throw new NotImplementedException(); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Pkcs12Info.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.ObjectModel; using System.Formats.Asn1; using System.Security.Cryptography.Asn1.Pkcs12; using System.Security.Cryptography.Asn1.Pkcs7; using System.Security.Cryptography.Pkcs.Asn1; using Internal.Cryptography; namespace System.Security.Cryptography.Pkcs { public sealed class Pkcs12Info { private PfxAsn _decoded; private ReadOnlyMemory<byte> _authSafeContents; public ReadOnlyCollection<Pkcs12SafeContents> AuthenticatedSafe { get; private set; } = null!; // Initialized using object initializer public Pkcs12IntegrityMode IntegrityMode { get; private set; } private Pkcs12Info() { } public bool VerifyMac(string? password) { // This extension-method call allows null. return VerifyMac(password.AsSpan()); } public bool VerifyMac(ReadOnlySpan<char> password) { if (IntegrityMode != Pkcs12IntegrityMode.Password) { throw new InvalidOperationException( SR.Format( SR.Cryptography_Pkcs12_WrongModeForVerify, Pkcs12IntegrityMode.Password, IntegrityMode)); } return _decoded.VerifyMac(password, _authSafeContents.Span); } public static Pkcs12Info Decode( ReadOnlyMemory<byte> encodedBytes, out int bytesConsumed, bool skipCopy = false) { // Trim it to the first value int firstValueLength = PkcsHelpers.FirstBerValueLength(encodedBytes.Span); ReadOnlyMemory<byte> firstValue = encodedBytes.Slice(0, firstValueLength); ReadOnlyMemory<byte> maybeCopy = skipCopy ? firstValue : firstValue.ToArray(); PfxAsn pfx = PfxAsn.Decode(maybeCopy, AsnEncodingRules.BER); // https://tools.ietf.org/html/rfc7292#section-4 only defines version 3. if (pfx.Version != 3) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); } ReadOnlyMemory<byte> authSafeBytes = ReadOnlyMemory<byte>.Empty; Pkcs12IntegrityMode mode = Pkcs12IntegrityMode.Unknown; if (pfx.AuthSafe.ContentType == Oids.Pkcs7Data) { authSafeBytes = PkcsHelpers.DecodeOctetStringAsMemory(pfx.AuthSafe.Content); if (pfx.MacData.HasValue) { mode = Pkcs12IntegrityMode.Password; } else { mode = Pkcs12IntegrityMode.None; } } else if (pfx.AuthSafe.ContentType == Oids.Pkcs7Signed) { SignedDataAsn signedData = SignedDataAsn.Decode(pfx.AuthSafe.Content, AsnEncodingRules.BER); mode = Pkcs12IntegrityMode.PublicKey; if (signedData.EncapContentInfo.ContentType == Oids.Pkcs7Data) { authSafeBytes = signedData.EncapContentInfo.Content.GetValueOrDefault(); } if (pfx.MacData.HasValue) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); } } if (mode == Pkcs12IntegrityMode.Unknown) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); } List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>(); try { AsnValueReader authSafeReader = new AsnValueReader(authSafeBytes.Span, AsnEncodingRules.BER); AsnValueReader sequenceReader = authSafeReader.ReadSequence(); authSafeReader.ThrowIfNotEmpty(); while (sequenceReader.HasData) { ContentInfoAsn.Decode(ref sequenceReader, authSafeBytes, out ContentInfoAsn contentInfo); authSafeData.Add(contentInfo); } ReadOnlyCollection<Pkcs12SafeContents> authSafe; if (authSafeData.Count == 0) { authSafe = new ReadOnlyCollection<Pkcs12SafeContents>(Array.Empty<Pkcs12SafeContents>()); } else { Pkcs12SafeContents[] contentsArray = new Pkcs12SafeContents[authSafeData.Count]; for (int i = 0; i < contentsArray.Length; i++) { contentsArray[i] = new Pkcs12SafeContents(authSafeData[i]); } authSafe = new ReadOnlyCollection<Pkcs12SafeContents>(contentsArray); } bytesConsumed = firstValueLength; return new Pkcs12Info { AuthenticatedSafe = authSafe, IntegrityMode = mode, _decoded = pfx, _authSafeContents = authSafeBytes, }; } catch (AsnContentException e) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Collections.ObjectModel; using System.Formats.Asn1; using System.Security.Cryptography.Asn1.Pkcs12; using System.Security.Cryptography.Asn1.Pkcs7; using System.Security.Cryptography.Pkcs.Asn1; using Internal.Cryptography; namespace System.Security.Cryptography.Pkcs { public sealed class Pkcs12Info { private PfxAsn _decoded; private ReadOnlyMemory<byte> _authSafeContents; public ReadOnlyCollection<Pkcs12SafeContents> AuthenticatedSafe { get; private set; } = null!; // Initialized using object initializer public Pkcs12IntegrityMode IntegrityMode { get; private set; } private Pkcs12Info() { } public bool VerifyMac(string? password) { // This extension-method call allows null. return VerifyMac(password.AsSpan()); } public bool VerifyMac(ReadOnlySpan<char> password) { if (IntegrityMode != Pkcs12IntegrityMode.Password) { throw new InvalidOperationException( SR.Format( SR.Cryptography_Pkcs12_WrongModeForVerify, Pkcs12IntegrityMode.Password, IntegrityMode)); } return _decoded.VerifyMac(password, _authSafeContents.Span); } public static Pkcs12Info Decode( ReadOnlyMemory<byte> encodedBytes, out int bytesConsumed, bool skipCopy = false) { // Trim it to the first value int firstValueLength = PkcsHelpers.FirstBerValueLength(encodedBytes.Span); ReadOnlyMemory<byte> firstValue = encodedBytes.Slice(0, firstValueLength); ReadOnlyMemory<byte> maybeCopy = skipCopy ? firstValue : firstValue.ToArray(); PfxAsn pfx = PfxAsn.Decode(maybeCopy, AsnEncodingRules.BER); // https://tools.ietf.org/html/rfc7292#section-4 only defines version 3. if (pfx.Version != 3) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); } ReadOnlyMemory<byte> authSafeBytes = ReadOnlyMemory<byte>.Empty; Pkcs12IntegrityMode mode = Pkcs12IntegrityMode.Unknown; if (pfx.AuthSafe.ContentType == Oids.Pkcs7Data) { authSafeBytes = PkcsHelpers.DecodeOctetStringAsMemory(pfx.AuthSafe.Content); if (pfx.MacData.HasValue) { mode = Pkcs12IntegrityMode.Password; } else { mode = Pkcs12IntegrityMode.None; } } else if (pfx.AuthSafe.ContentType == Oids.Pkcs7Signed) { SignedDataAsn signedData = SignedDataAsn.Decode(pfx.AuthSafe.Content, AsnEncodingRules.BER); mode = Pkcs12IntegrityMode.PublicKey; if (signedData.EncapContentInfo.ContentType == Oids.Pkcs7Data) { authSafeBytes = signedData.EncapContentInfo.Content.GetValueOrDefault(); } if (pfx.MacData.HasValue) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); } } if (mode == Pkcs12IntegrityMode.Unknown) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding); } List<ContentInfoAsn> authSafeData = new List<ContentInfoAsn>(); try { AsnValueReader authSafeReader = new AsnValueReader(authSafeBytes.Span, AsnEncodingRules.BER); AsnValueReader sequenceReader = authSafeReader.ReadSequence(); authSafeReader.ThrowIfNotEmpty(); while (sequenceReader.HasData) { ContentInfoAsn.Decode(ref sequenceReader, authSafeBytes, out ContentInfoAsn contentInfo); authSafeData.Add(contentInfo); } ReadOnlyCollection<Pkcs12SafeContents> authSafe; if (authSafeData.Count == 0) { authSafe = new ReadOnlyCollection<Pkcs12SafeContents>(Array.Empty<Pkcs12SafeContents>()); } else { Pkcs12SafeContents[] contentsArray = new Pkcs12SafeContents[authSafeData.Count]; for (int i = 0; i < contentsArray.Length; i++) { contentsArray[i] = new Pkcs12SafeContents(authSafeData[i]); } authSafe = new ReadOnlyCollection<Pkcs12SafeContents>(contentsArray); } bytesConsumed = firstValueLength; return new Pkcs12Info { AuthenticatedSafe = authSafe, IntegrityMode = mode, _decoded = pfx, _authSafeContents = authSafeBytes, }; } catch (AsnContentException e) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); } } } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/coreclr/tools/Common/TypeSystem/Common/Utilities/LockFreeReaderHashtableOfPointers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem { /// <summary> /// A hash table which is lock free for readers and up to 1 writer at a time. /// It must be possible to compute the key's hashcode from a value. /// All values must convertable to/from an IntPtr. /// It must be possible to perform an equality check between a key and a value. /// It must be possible to perform an equality check between a value and a value. /// A LockFreeReaderKeyValueComparer must be provided to perform these operations. /// This hashtable may not store a pointer to null or (void*)1 /// </summary> public abstract class LockFreeReaderHashtableOfPointers<TKey, TValue> { private const int _initialSize = 16; private const int _fillPercentageBeforeResize = 60; /// <summary> /// _hashtable is the currently visible underlying array for the hashtable /// Any modifications to this array must be additive only, and there must /// never be a situation where the visible _hashtable has less data than /// it did at an earlier time. This value is initialized to an array of size /// 1. (That array is never mutated as any additions will trigger an Expand /// operation, but we don't use an empty array as the /// initial step, as this approach allows the TryGetValue logic to always /// succeed without needing any length or null checks.) /// </summary> private volatile IntPtr[] _hashtable = new IntPtr[_initialSize]; /// <summary> /// Tracks the hashtable being used by expansion. Used as a sentinel /// to threads trying to add to the old hashtable that an expansion is /// in progress. /// </summary> private volatile IntPtr[] _newHashTable; /// <summary> /// _count represents the current count of elements in the hashtable /// _count is used in combination with _resizeCount to control when the /// hashtable should expand /// </summary> private volatile int _count; /// <summary> /// Represents _count plus the number of potential adds currently happening. /// If this reaches _hashTable.Length-1, an expansion is required (because /// one slot must always be null for seeks to complete). /// </summary> private int _reserve; /// <summary> /// _resizeCount represents the size at which the hashtable should resize. /// While this doesn't strictly need to be volatile, having threads read stale values /// triggers a lot of unneeded attempts to expand. /// </summary> private volatile int _resizeCount = _initialSize * _fillPercentageBeforeResize / 100; /// <summary> /// Get the underlying array for the hashtable at this time. /// </summary> private IntPtr[] GetCurrentHashtable() { return _hashtable; } /// <summary> /// Set the newly visible hashtable underlying array. Used by writers after /// the new array is fully constructed. The volatile write is used to ensure /// that all writes to the contents of hashtable are completed before _hashtable /// is visible to readers. /// </summary> private void SetCurrentHashtable(IntPtr[] hashtable) { _hashtable = hashtable; } /// <summary> /// Used to ensure that the hashtable can function with /// fairly poor initial hash codes. /// </summary> public static int HashInt1(int key) { unchecked { int a = (int)0x9e3779b9 + key; int b = (int)0x9e3779b9; int c = 16777619; a -= b; a -= c; a ^= (c >> 13); b -= c; b -= a; b ^= (a << 8); c -= a; c -= b; c ^= (b >> 13); a -= b; a -= c; a ^= (c >> 12); b -= c; b -= a; b ^= (a << 16); c -= a; c -= b; c ^= (b >> 5); a -= b; a -= c; a ^= (c >> 3); b -= c; b -= a; b ^= (a << 10); c -= a; c -= b; c ^= (b >> 15); return c; } } /// <summary> /// Generate a somewhat independent hash value from another integer. This is used /// as part of a double hashing scheme. By being relatively prime with powers of 2 /// this hash function can be reliably used as part of a double hashing scheme as it /// is guaranteed to eventually probe every slot in the table. (Table sizes are /// constrained to be a power of two) /// </summary> public static int HashInt2(int key) { unchecked { int hash = unchecked((int)0xB1635D64) + key; hash += (hash << 3); hash ^= (hash >> 11); hash += (hash << 15); hash |= 0x00000001; // To make sure that this is relatively prime with power of 2 return hash; } } /// <summary> /// Create the LockFreeReaderHashtable. This hash table is designed for GetOrCreateValue /// to be a generally lock free api (unless an add is necessary) /// </summary> public LockFreeReaderHashtableOfPointers() { #if DEBUG // Ensure the initial value is a power of 2 bool foundAOne = false; for (int i = 0; i < 32; i++) { int lastBit = _initialSize >> i; if ((lastBit & 0x1) == 0x1) { Debug.Assert(!foundAOne); foundAOne = true; } } #endif // DEBUG _newHashTable = _hashtable; } /// <summary> /// The current count of elements in the hashtable /// </summary> public int Count { get { return _count; } } /// <summary> /// Gets the value associated with the specified key. /// </summary> /// <param name="key">The key of the value to get.</param> /// <param name="value">When this method returns, contains the value associated with /// the specified key, if the key is found; otherwise, the default value for the type /// of the value parameter. This parameter is passed uninitialized. This function is threadsafe, /// and wait-free</param> /// <returns>true if a value was found</returns> public bool TryGetValue(TKey key, out TValue value) { IntPtr[] hashTableLocal = GetCurrentHashtable(); Debug.Assert(hashTableLocal.Length > 0); int mask = hashTableLocal.Length - 1; int hashCode = GetKeyHashCode(key); int tableIndex = HashInt1(hashCode) & mask; IntPtr examineEntry = hashTableLocal[tableIndex]; if ((examineEntry == IntPtr.Zero) || (examineEntry == new IntPtr(1))) { value = default(TValue); return false; } TValue valTemp = ConvertIntPtrToValue(hashTableLocal[tableIndex]); if (CompareKeyToValue(key, valTemp)) { value = valTemp; return true; } int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; while ((examineEntry != IntPtr.Zero) && (examineEntry != new IntPtr(1))) { valTemp = ConvertIntPtrToValue(hashTableLocal[tableIndex]); if (CompareKeyToValue(key, valTemp)) { value = valTemp; return true; } tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; } value = default(TValue); return false; } /// <summary> /// Spin and wait for a sentinel to disappear. /// </summary> /// <param name="hashtable"></param> /// <param name="tableIndex"></param> /// <returns>The value that replaced the sentinel, or null</returns> IntPtr WaitForSentinelInHashtableToDisappear(IntPtr[] hashtable, int tableIndex) { var sw = new SpinWait(); while (true) { IntPtr value = Volatile.Read(ref hashtable[tableIndex]); if (value != new IntPtr(1)) return value; sw.SpinOnce(); } } /// <summary> /// Make the underlying array of the hashtable bigger. This function /// does not change the contents of the hashtable. This entire function locks. /// </summary> private void Expand(IntPtr[] oldHashtable) { lock (this) { // If somebody else already resized, don't try to do it based on an old table if (oldHashtable != _hashtable) { return; } // The checked statement here protects against both the hashTable size and _reserve overflowing. That does mean // the maximum size of _hashTable is 0x70000000 int newSize = checked(oldHashtable.Length * 2); // The hashtable only functions well when it has a certain minimum size const int minimumUsefulSize = 16; if (newSize < minimumUsefulSize) newSize = minimumUsefulSize; IntPtr[] newHashTable = new IntPtr[newSize]; Interlocked.Exchange(ref _newHashTable, newHashTable); int mask = newHashTable.Length - 1; for (int iEntry = 0; iEntry < _hashtable.Length; iEntry++) { IntPtr ptrValue = _hashtable[iEntry]; if (ptrValue == new IntPtr(1)) { // Entry is in the process of writing a value ptrValue = WaitForSentinelInHashtableToDisappear(oldHashtable, iEntry); } if (ptrValue == IntPtr.Zero) continue; TValue value = ConvertIntPtrToValue(ptrValue); // If there's a deadlock at this point, GetValueHashCode is re-entering Add, which it must not do. int hashCode = GetValueHashCode(value); int tableIndex = HashInt1(hashCode) & mask; // Initial probe into hashtable found empty spot if (newHashTable[tableIndex] == IntPtr.Zero) { // Add to hash newHashTable[tableIndex] = ptrValue; continue; } int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; while (newHashTable[tableIndex] != IntPtr.Zero) { tableIndex = (tableIndex + hash2) & mask; } // We've probed to find an empty spot // Add to hash newHashTable[tableIndex] = ptrValue; } _resizeCount = checked((newSize * _fillPercentageBeforeResize) / 100); SetCurrentHashtable(newHashTable); } } /// <summary> /// Grow the hashtable so that storing into the hashtable does not require any allocation /// operations. /// </summary> /// <param name="size"></param> public void Reserve(int size) { while (size >= _resizeCount) Expand(_hashtable); } /// <summary> /// Adds a value to the hashtable if it is not already present. /// Note that the key is not specified as it is implicit in the value. This function is thread-safe, /// but must only take locks around internal operations and GetValueHashCode. /// </summary> /// <param name="value">Value to attempt to add to the hashtable, must not be null</param> /// <returns>True if the value was added. False if it was already present.</returns> public bool TryAdd(TValue value) { bool addedValue; AddOrGetExistingInner(value, out addedValue); return addedValue; } /// <summary> /// Add a value to the hashtable, or find a value which is already present in the hashtable. /// Note that the key is not specified as it is implicit in the value. This function is thread-safe, /// but must only take locks around internal operations and GetValueHashCode. /// </summary> /// <param name="value">Value to attempt to add to the hashtable, its conversion to IntPtr must not result in IntPtr.Zero</param> /// <returns>Newly added value, or a value which was already present in the hashtable which is equal to it.</returns> public TValue AddOrGetExisting(TValue value) { return AddOrGetExistingInner(value, out _); } private TValue AddOrGetExistingInner(TValue value, out bool addedValue) { IntPtr ptrValue = ConvertValueToIntPtr(value); if (ptrValue == IntPtr.Zero) throw new ArgumentNullException(); // Optimistically check to see if adding this value may require an expansion. If so, expand // the table now. This isn't required to ensure space for the write, but helps keep // the ratio in a good range. if (_count >= _resizeCount) { Expand(_hashtable); } TValue result = default(TValue); bool success; do { success = TryAddOrGetExisting(value, out addedValue, ref result); } while (!success); return result; } IntPtr VolatileReadNonSentinelFromHashtable(IntPtr[] hashTable, int tableIndex) { IntPtr examineEntry = Volatile.Read(ref hashTable[tableIndex]); if (examineEntry == new IntPtr(1)) examineEntry = WaitForSentinelInHashtableToDisappear(hashTable, tableIndex); return examineEntry; } /// <summary> /// Attemps to add a value to the hashtable, or find a value which is already present in the hashtable. /// In some cases, this will fail due to contention with other additions and must be retried. /// Note that the key is not specified as it is implicit in the value. This function is thread-safe, /// but must only take locks around internal operations and GetValueHashCode. /// </summary> /// <param name="value">Value to attempt to add to the hashtable, must not be null</param> /// <param name="addedValue">Set to true if <paramref name="value"/> was added to the table. False if the value /// was already present. Not defined if adding was attempted but failed.</param> /// <param name="valueInHashtable">Newly added value if adding succeds, a value which was already present in the hashtable which is equal to it, /// or an undefined value if adding fails and must be retried.</param> /// <returns>True if the operation succeeded (either because the value was added or the value was already present).</returns> private bool TryAddOrGetExisting(TValue value, out bool addedValue, ref TValue valueInHashtable) { // The table must be captured into a local to ensure reads/writes // don't get torn by expansions IntPtr[] hashTableLocal = _hashtable; addedValue = true; int mask = hashTableLocal.Length - 1; int hashCode = GetValueHashCode(value); int tableIndex = HashInt1(hashCode) & mask; // Find an empty spot, starting with the initial tableIndex IntPtr examineEntry = VolatileReadNonSentinelFromHashtable(hashTableLocal, tableIndex); if (examineEntry != IntPtr.Zero) { TValue valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) { // Value is already present in hash, do not add addedValue = false; valueInHashtable = valTmp; return true; } int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; examineEntry = VolatileReadNonSentinelFromHashtable(hashTableLocal, tableIndex); while (examineEntry != IntPtr.Zero) { valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) { // Value is already present in hash, do not add addedValue = false; valueInHashtable = valTmp; return true; } tableIndex = (tableIndex + hash2) & mask; examineEntry = VolatileReadNonSentinelFromHashtable(hashTableLocal, tableIndex); } } // Ensure there's enough space for at least one null slot after this write if (Interlocked.Increment(ref _reserve) >= hashTableLocal.Length - 1) { Interlocked.Decrement(ref _reserve); Expand(hashTableLocal); // Since we expanded, our index won't work, restart return false; } // We've probed to find an empty spot, add to hash IntPtr ptrValue = ConvertValueToIntPtr(value); if (!TryWriteSentinelToLocation(hashTableLocal, tableIndex)) { Interlocked.Decrement(ref _reserve); return false; } // Now that we've written to the local array, find out if that array has been // replaced by expansion. If it has, we need to restart and write to the new array. if (_newHashTable != hashTableLocal) { WriteAbortNullToLocation(hashTableLocal, tableIndex); // Pulse the lock so we don't spin during an expansion lock (this) { } Interlocked.Decrement(ref _reserve); return false; } WriteValueToLocation(ptrValue, hashTableLocal, tableIndex); // If the write succeeded, increment _count Interlocked.Increment(ref _count); valueInHashtable = value; return true; } /// <summary> /// Attampts to write the Sentinel into the table. May fail if another value has been added. /// </summary> /// <returns>True if the value was successfully written</returns> private bool TryWriteSentinelToLocation(IntPtr[] hashTableLocal, int tableIndex) { // Add to hash, use a CompareExchange to ensure that // the sentinel is are fully communicated to all threads if (Interlocked.CompareExchange(ref hashTableLocal[tableIndex], new IntPtr(1), IntPtr.Zero) == IntPtr.Zero) { return true; } return false; } /// <summary> /// Writes the value into the table. Must only be used to overwrite a sentinel. /// </summary> private void WriteValueToLocation(IntPtr value, IntPtr[] hashTableLocal, int tableIndex) { // Add to hash, use a volatile write to ensure that // the contents of the value are fully published to all // threads before adding to the hashtable Volatile.Write(ref hashTableLocal[tableIndex], value); } /// <summary> /// Abandons the sentinel. Must only be used to overwrite a sentinel. /// </summary> private void WriteAbortNullToLocation(IntPtr[] hashTableLocal, int tableIndex) { // Abandon sentinel, use a volatile write to ensure that // the contents of the value are fully published to all // threads before continuing. Volatile.Write(ref hashTableLocal[tableIndex], IntPtr.Zero); } [MethodImpl(MethodImplOptions.NoInlining)] private TValue CreateValueAndEnsureValueIsInTable(TKey key) { TValue newValue = CreateValueFromKey(key); Debug.Assert(GetValueHashCode(newValue) == GetKeyHashCode(key)); return AddOrGetExisting(newValue); } /// <summary> /// Get the value associated with a key. If value is not present in dictionary, use the creator delegate passed in /// at object construction time to create the value, and attempt to add it to the table. (Create the value while not /// under the lock, but add it to the table while under the lock. This may result in a throw away object being constructed) /// This function is thread-safe, but will take a lock to perform its operations. /// </summary> /// <param name="key"></param> /// <returns></returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public TValue GetOrCreateValue(TKey key) { TValue existingValue; if (TryGetValue(key, out existingValue)) return existingValue; return CreateValueAndEnsureValueIsInTable(key); } /// <summary> /// Determine if this collection contains a value associated with a key. This function is thread-safe, and wait-free. /// </summary> public bool Contains(TKey key) { return TryGetValue(key, out _); } /// <summary> /// Determine if this collection contains a given value, and returns the value in the hashtable if found. This function is thread-safe, and wait-free. /// </summary> /// <param name="value">Value to search for in the hashtable, must not be null</param> /// <returns>Value from the hashtable if found, otherwise null.</returns> public TValue GetValueIfExists(TValue value) { if (value == null) throw new ArgumentNullException(); IntPtr[] hashTableLocal = GetCurrentHashtable(); Debug.Assert(hashTableLocal.Length > 0); int mask = hashTableLocal.Length - 1; int hashCode = GetValueHashCode(value); int tableIndex = HashInt1(hashCode) & mask; IntPtr examineEntry = hashTableLocal[tableIndex]; if ((examineEntry == IntPtr.Zero) || (examineEntry == new IntPtr(1))) return default(TValue); TValue valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) return valTmp; int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; while (examineEntry != IntPtr.Zero) { valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) return valTmp; tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; } return default(TValue); } /// <summary> /// Enumerator type for the LockFreeReaderHashtable /// This is threadsafe, but is not garaunteed to avoid torn state. /// In particular, the enumerator may report some newly added values /// but not others. All values in the hashtable as of enumerator /// creation will always be enumerated. /// </summary> public struct Enumerator : IEnumerator<TValue> { LockFreeReaderHashtableOfPointers<TKey, TValue> _hashtable; private IntPtr[] _hashtableContentsToEnumerate; private int _index; private TValue _current; /// <summary> /// Use this to get an enumerable collection from a LockFreeReaderHashtable. /// Used instead of a GetEnumerator method on the LockFreeReaderHashtable to /// reduce excess type creation. (By moving the method here, the generic dictionary for /// LockFreeReaderHashtable does not need to contain a reference to the /// enumerator type. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Enumerator Get(LockFreeReaderHashtableOfPointers<TKey, TValue> hashtable) { return new Enumerator(hashtable); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public Enumerator GetEnumerator() { return this; } internal Enumerator(LockFreeReaderHashtableOfPointers<TKey, TValue> hashtable) { _hashtable = hashtable; _hashtableContentsToEnumerate = hashtable._hashtable; _index = 0; _current = default(TValue); } public bool MoveNext() { if ((_hashtableContentsToEnumerate != null) && (_index < _hashtableContentsToEnumerate.Length)) { for (; _index < _hashtableContentsToEnumerate.Length; _index++) { IntPtr examineEntry = Volatile.Read(ref _hashtableContentsToEnumerate[_index]); if ((examineEntry != IntPtr.Zero) && (examineEntry != new IntPtr(1))) { _current = _hashtable.ConvertIntPtrToValue(examineEntry); _index++; return true; } } } _current = default(TValue); return false; } public void Dispose() { } public void Reset() { throw new NotSupportedException(); } public TValue Current { get { return _current; } } object IEnumerator.Current { get { throw new NotSupportedException(); } } } /// <summary> /// Given a key, compute a hash code. This function must be thread safe. /// </summary> protected abstract int GetKeyHashCode(TKey key); /// <summary> /// Given a value, compute a hash code which would be identical to the hash code /// for a key which should look up this value. This function must be thread safe. /// This function must also not cause additional hashtable adds. /// </summary> protected abstract int GetValueHashCode(TValue value); /// <summary> /// Compare a key and value. If the key refers to this value, return true. /// This function must be thread safe. /// </summary> protected abstract bool CompareKeyToValue(TKey key, TValue value); /// <summary> /// Compare a value with another value. Return true if values are equal. /// This function must be thread safe. /// </summary> protected abstract bool CompareValueToValue(TValue value1, TValue value2); /// <summary> /// Create a new value from a key. Must be threadsafe. Value may or may not be added /// to collection. Return value must not be null. /// </summary> protected abstract TValue CreateValueFromKey(TKey key); /// <summary> /// Convert a value to an IntPtr for storage into the hashtable /// </summary> protected abstract IntPtr ConvertValueToIntPtr(TValue value); /// <summary> /// Convert an IntPtr into a value for comparisions, or for returning. /// </summary> protected abstract TValue ConvertIntPtrToValue(IntPtr pointer); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Debug = System.Diagnostics.Debug; namespace Internal.TypeSystem { /// <summary> /// A hash table which is lock free for readers and up to 1 writer at a time. /// It must be possible to compute the key's hashcode from a value. /// All values must convertable to/from an IntPtr. /// It must be possible to perform an equality check between a key and a value. /// It must be possible to perform an equality check between a value and a value. /// A LockFreeReaderKeyValueComparer must be provided to perform these operations. /// This hashtable may not store a pointer to null or (void*)1 /// </summary> public abstract class LockFreeReaderHashtableOfPointers<TKey, TValue> { private const int _initialSize = 16; private const int _fillPercentageBeforeResize = 60; /// <summary> /// _hashtable is the currently visible underlying array for the hashtable /// Any modifications to this array must be additive only, and there must /// never be a situation where the visible _hashtable has less data than /// it did at an earlier time. This value is initialized to an array of size /// 1. (That array is never mutated as any additions will trigger an Expand /// operation, but we don't use an empty array as the /// initial step, as this approach allows the TryGetValue logic to always /// succeed without needing any length or null checks.) /// </summary> private volatile IntPtr[] _hashtable = new IntPtr[_initialSize]; /// <summary> /// Tracks the hashtable being used by expansion. Used as a sentinel /// to threads trying to add to the old hashtable that an expansion is /// in progress. /// </summary> private volatile IntPtr[] _newHashTable; /// <summary> /// _count represents the current count of elements in the hashtable /// _count is used in combination with _resizeCount to control when the /// hashtable should expand /// </summary> private volatile int _count; /// <summary> /// Represents _count plus the number of potential adds currently happening. /// If this reaches _hashTable.Length-1, an expansion is required (because /// one slot must always be null for seeks to complete). /// </summary> private int _reserve; /// <summary> /// _resizeCount represents the size at which the hashtable should resize. /// While this doesn't strictly need to be volatile, having threads read stale values /// triggers a lot of unneeded attempts to expand. /// </summary> private volatile int _resizeCount = _initialSize * _fillPercentageBeforeResize / 100; /// <summary> /// Get the underlying array for the hashtable at this time. /// </summary> private IntPtr[] GetCurrentHashtable() { return _hashtable; } /// <summary> /// Set the newly visible hashtable underlying array. Used by writers after /// the new array is fully constructed. The volatile write is used to ensure /// that all writes to the contents of hashtable are completed before _hashtable /// is visible to readers. /// </summary> private void SetCurrentHashtable(IntPtr[] hashtable) { _hashtable = hashtable; } /// <summary> /// Used to ensure that the hashtable can function with /// fairly poor initial hash codes. /// </summary> public static int HashInt1(int key) { unchecked { int a = (int)0x9e3779b9 + key; int b = (int)0x9e3779b9; int c = 16777619; a -= b; a -= c; a ^= (c >> 13); b -= c; b -= a; b ^= (a << 8); c -= a; c -= b; c ^= (b >> 13); a -= b; a -= c; a ^= (c >> 12); b -= c; b -= a; b ^= (a << 16); c -= a; c -= b; c ^= (b >> 5); a -= b; a -= c; a ^= (c >> 3); b -= c; b -= a; b ^= (a << 10); c -= a; c -= b; c ^= (b >> 15); return c; } } /// <summary> /// Generate a somewhat independent hash value from another integer. This is used /// as part of a double hashing scheme. By being relatively prime with powers of 2 /// this hash function can be reliably used as part of a double hashing scheme as it /// is guaranteed to eventually probe every slot in the table. (Table sizes are /// constrained to be a power of two) /// </summary> public static int HashInt2(int key) { unchecked { int hash = unchecked((int)0xB1635D64) + key; hash += (hash << 3); hash ^= (hash >> 11); hash += (hash << 15); hash |= 0x00000001; // To make sure that this is relatively prime with power of 2 return hash; } } /// <summary> /// Create the LockFreeReaderHashtable. This hash table is designed for GetOrCreateValue /// to be a generally lock free api (unless an add is necessary) /// </summary> public LockFreeReaderHashtableOfPointers() { #if DEBUG // Ensure the initial value is a power of 2 bool foundAOne = false; for (int i = 0; i < 32; i++) { int lastBit = _initialSize >> i; if ((lastBit & 0x1) == 0x1) { Debug.Assert(!foundAOne); foundAOne = true; } } #endif // DEBUG _newHashTable = _hashtable; } /// <summary> /// The current count of elements in the hashtable /// </summary> public int Count { get { return _count; } } /// <summary> /// Gets the value associated with the specified key. /// </summary> /// <param name="key">The key of the value to get.</param> /// <param name="value">When this method returns, contains the value associated with /// the specified key, if the key is found; otherwise, the default value for the type /// of the value parameter. This parameter is passed uninitialized. This function is threadsafe, /// and wait-free</param> /// <returns>true if a value was found</returns> public bool TryGetValue(TKey key, out TValue value) { IntPtr[] hashTableLocal = GetCurrentHashtable(); Debug.Assert(hashTableLocal.Length > 0); int mask = hashTableLocal.Length - 1; int hashCode = GetKeyHashCode(key); int tableIndex = HashInt1(hashCode) & mask; IntPtr examineEntry = hashTableLocal[tableIndex]; if ((examineEntry == IntPtr.Zero) || (examineEntry == new IntPtr(1))) { value = default(TValue); return false; } TValue valTemp = ConvertIntPtrToValue(hashTableLocal[tableIndex]); if (CompareKeyToValue(key, valTemp)) { value = valTemp; return true; } int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; while ((examineEntry != IntPtr.Zero) && (examineEntry != new IntPtr(1))) { valTemp = ConvertIntPtrToValue(hashTableLocal[tableIndex]); if (CompareKeyToValue(key, valTemp)) { value = valTemp; return true; } tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; } value = default(TValue); return false; } /// <summary> /// Spin and wait for a sentinel to disappear. /// </summary> /// <param name="hashtable"></param> /// <param name="tableIndex"></param> /// <returns>The value that replaced the sentinel, or null</returns> IntPtr WaitForSentinelInHashtableToDisappear(IntPtr[] hashtable, int tableIndex) { var sw = new SpinWait(); while (true) { IntPtr value = Volatile.Read(ref hashtable[tableIndex]); if (value != new IntPtr(1)) return value; sw.SpinOnce(); } } /// <summary> /// Make the underlying array of the hashtable bigger. This function /// does not change the contents of the hashtable. This entire function locks. /// </summary> private void Expand(IntPtr[] oldHashtable) { lock (this) { // If somebody else already resized, don't try to do it based on an old table if (oldHashtable != _hashtable) { return; } // The checked statement here protects against both the hashTable size and _reserve overflowing. That does mean // the maximum size of _hashTable is 0x70000000 int newSize = checked(oldHashtable.Length * 2); // The hashtable only functions well when it has a certain minimum size const int minimumUsefulSize = 16; if (newSize < minimumUsefulSize) newSize = minimumUsefulSize; IntPtr[] newHashTable = new IntPtr[newSize]; Interlocked.Exchange(ref _newHashTable, newHashTable); int mask = newHashTable.Length - 1; for (int iEntry = 0; iEntry < _hashtable.Length; iEntry++) { IntPtr ptrValue = _hashtable[iEntry]; if (ptrValue == new IntPtr(1)) { // Entry is in the process of writing a value ptrValue = WaitForSentinelInHashtableToDisappear(oldHashtable, iEntry); } if (ptrValue == IntPtr.Zero) continue; TValue value = ConvertIntPtrToValue(ptrValue); // If there's a deadlock at this point, GetValueHashCode is re-entering Add, which it must not do. int hashCode = GetValueHashCode(value); int tableIndex = HashInt1(hashCode) & mask; // Initial probe into hashtable found empty spot if (newHashTable[tableIndex] == IntPtr.Zero) { // Add to hash newHashTable[tableIndex] = ptrValue; continue; } int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; while (newHashTable[tableIndex] != IntPtr.Zero) { tableIndex = (tableIndex + hash2) & mask; } // We've probed to find an empty spot // Add to hash newHashTable[tableIndex] = ptrValue; } _resizeCount = checked((newSize * _fillPercentageBeforeResize) / 100); SetCurrentHashtable(newHashTable); } } /// <summary> /// Grow the hashtable so that storing into the hashtable does not require any allocation /// operations. /// </summary> /// <param name="size"></param> public void Reserve(int size) { while (size >= _resizeCount) Expand(_hashtable); } /// <summary> /// Adds a value to the hashtable if it is not already present. /// Note that the key is not specified as it is implicit in the value. This function is thread-safe, /// but must only take locks around internal operations and GetValueHashCode. /// </summary> /// <param name="value">Value to attempt to add to the hashtable, must not be null</param> /// <returns>True if the value was added. False if it was already present.</returns> public bool TryAdd(TValue value) { bool addedValue; AddOrGetExistingInner(value, out addedValue); return addedValue; } /// <summary> /// Add a value to the hashtable, or find a value which is already present in the hashtable. /// Note that the key is not specified as it is implicit in the value. This function is thread-safe, /// but must only take locks around internal operations and GetValueHashCode. /// </summary> /// <param name="value">Value to attempt to add to the hashtable, its conversion to IntPtr must not result in IntPtr.Zero</param> /// <returns>Newly added value, or a value which was already present in the hashtable which is equal to it.</returns> public TValue AddOrGetExisting(TValue value) { return AddOrGetExistingInner(value, out _); } private TValue AddOrGetExistingInner(TValue value, out bool addedValue) { IntPtr ptrValue = ConvertValueToIntPtr(value); if (ptrValue == IntPtr.Zero) throw new ArgumentNullException(); // Optimistically check to see if adding this value may require an expansion. If so, expand // the table now. This isn't required to ensure space for the write, but helps keep // the ratio in a good range. if (_count >= _resizeCount) { Expand(_hashtable); } TValue result = default(TValue); bool success; do { success = TryAddOrGetExisting(value, out addedValue, ref result); } while (!success); return result; } IntPtr VolatileReadNonSentinelFromHashtable(IntPtr[] hashTable, int tableIndex) { IntPtr examineEntry = Volatile.Read(ref hashTable[tableIndex]); if (examineEntry == new IntPtr(1)) examineEntry = WaitForSentinelInHashtableToDisappear(hashTable, tableIndex); return examineEntry; } /// <summary> /// Attemps to add a value to the hashtable, or find a value which is already present in the hashtable. /// In some cases, this will fail due to contention with other additions and must be retried. /// Note that the key is not specified as it is implicit in the value. This function is thread-safe, /// but must only take locks around internal operations and GetValueHashCode. /// </summary> /// <param name="value">Value to attempt to add to the hashtable, must not be null</param> /// <param name="addedValue">Set to true if <paramref name="value"/> was added to the table. False if the value /// was already present. Not defined if adding was attempted but failed.</param> /// <param name="valueInHashtable">Newly added value if adding succeds, a value which was already present in the hashtable which is equal to it, /// or an undefined value if adding fails and must be retried.</param> /// <returns>True if the operation succeeded (either because the value was added or the value was already present).</returns> private bool TryAddOrGetExisting(TValue value, out bool addedValue, ref TValue valueInHashtable) { // The table must be captured into a local to ensure reads/writes // don't get torn by expansions IntPtr[] hashTableLocal = _hashtable; addedValue = true; int mask = hashTableLocal.Length - 1; int hashCode = GetValueHashCode(value); int tableIndex = HashInt1(hashCode) & mask; // Find an empty spot, starting with the initial tableIndex IntPtr examineEntry = VolatileReadNonSentinelFromHashtable(hashTableLocal, tableIndex); if (examineEntry != IntPtr.Zero) { TValue valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) { // Value is already present in hash, do not add addedValue = false; valueInHashtable = valTmp; return true; } int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; examineEntry = VolatileReadNonSentinelFromHashtable(hashTableLocal, tableIndex); while (examineEntry != IntPtr.Zero) { valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) { // Value is already present in hash, do not add addedValue = false; valueInHashtable = valTmp; return true; } tableIndex = (tableIndex + hash2) & mask; examineEntry = VolatileReadNonSentinelFromHashtable(hashTableLocal, tableIndex); } } // Ensure there's enough space for at least one null slot after this write if (Interlocked.Increment(ref _reserve) >= hashTableLocal.Length - 1) { Interlocked.Decrement(ref _reserve); Expand(hashTableLocal); // Since we expanded, our index won't work, restart return false; } // We've probed to find an empty spot, add to hash IntPtr ptrValue = ConvertValueToIntPtr(value); if (!TryWriteSentinelToLocation(hashTableLocal, tableIndex)) { Interlocked.Decrement(ref _reserve); return false; } // Now that we've written to the local array, find out if that array has been // replaced by expansion. If it has, we need to restart and write to the new array. if (_newHashTable != hashTableLocal) { WriteAbortNullToLocation(hashTableLocal, tableIndex); // Pulse the lock so we don't spin during an expansion lock (this) { } Interlocked.Decrement(ref _reserve); return false; } WriteValueToLocation(ptrValue, hashTableLocal, tableIndex); // If the write succeeded, increment _count Interlocked.Increment(ref _count); valueInHashtable = value; return true; } /// <summary> /// Attampts to write the Sentinel into the table. May fail if another value has been added. /// </summary> /// <returns>True if the value was successfully written</returns> private bool TryWriteSentinelToLocation(IntPtr[] hashTableLocal, int tableIndex) { // Add to hash, use a CompareExchange to ensure that // the sentinel is are fully communicated to all threads if (Interlocked.CompareExchange(ref hashTableLocal[tableIndex], new IntPtr(1), IntPtr.Zero) == IntPtr.Zero) { return true; } return false; } /// <summary> /// Writes the value into the table. Must only be used to overwrite a sentinel. /// </summary> private void WriteValueToLocation(IntPtr value, IntPtr[] hashTableLocal, int tableIndex) { // Add to hash, use a volatile write to ensure that // the contents of the value are fully published to all // threads before adding to the hashtable Volatile.Write(ref hashTableLocal[tableIndex], value); } /// <summary> /// Abandons the sentinel. Must only be used to overwrite a sentinel. /// </summary> private void WriteAbortNullToLocation(IntPtr[] hashTableLocal, int tableIndex) { // Abandon sentinel, use a volatile write to ensure that // the contents of the value are fully published to all // threads before continuing. Volatile.Write(ref hashTableLocal[tableIndex], IntPtr.Zero); } [MethodImpl(MethodImplOptions.NoInlining)] private TValue CreateValueAndEnsureValueIsInTable(TKey key) { TValue newValue = CreateValueFromKey(key); Debug.Assert(GetValueHashCode(newValue) == GetKeyHashCode(key)); return AddOrGetExisting(newValue); } /// <summary> /// Get the value associated with a key. If value is not present in dictionary, use the creator delegate passed in /// at object construction time to create the value, and attempt to add it to the table. (Create the value while not /// under the lock, but add it to the table while under the lock. This may result in a throw away object being constructed) /// This function is thread-safe, but will take a lock to perform its operations. /// </summary> /// <param name="key"></param> /// <returns></returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public TValue GetOrCreateValue(TKey key) { TValue existingValue; if (TryGetValue(key, out existingValue)) return existingValue; return CreateValueAndEnsureValueIsInTable(key); } /// <summary> /// Determine if this collection contains a value associated with a key. This function is thread-safe, and wait-free. /// </summary> public bool Contains(TKey key) { return TryGetValue(key, out _); } /// <summary> /// Determine if this collection contains a given value, and returns the value in the hashtable if found. This function is thread-safe, and wait-free. /// </summary> /// <param name="value">Value to search for in the hashtable, must not be null</param> /// <returns>Value from the hashtable if found, otherwise null.</returns> public TValue GetValueIfExists(TValue value) { if (value == null) throw new ArgumentNullException(); IntPtr[] hashTableLocal = GetCurrentHashtable(); Debug.Assert(hashTableLocal.Length > 0); int mask = hashTableLocal.Length - 1; int hashCode = GetValueHashCode(value); int tableIndex = HashInt1(hashCode) & mask; IntPtr examineEntry = hashTableLocal[tableIndex]; if ((examineEntry == IntPtr.Zero) || (examineEntry == new IntPtr(1))) return default(TValue); TValue valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) return valTmp; int hash2 = HashInt2(hashCode); tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; while (examineEntry != IntPtr.Zero) { valTmp = ConvertIntPtrToValue(examineEntry); if (CompareValueToValue(value, valTmp)) return valTmp; tableIndex = (tableIndex + hash2) & mask; examineEntry = hashTableLocal[tableIndex]; } return default(TValue); } /// <summary> /// Enumerator type for the LockFreeReaderHashtable /// This is threadsafe, but is not garaunteed to avoid torn state. /// In particular, the enumerator may report some newly added values /// but not others. All values in the hashtable as of enumerator /// creation will always be enumerated. /// </summary> public struct Enumerator : IEnumerator<TValue> { LockFreeReaderHashtableOfPointers<TKey, TValue> _hashtable; private IntPtr[] _hashtableContentsToEnumerate; private int _index; private TValue _current; /// <summary> /// Use this to get an enumerable collection from a LockFreeReaderHashtable. /// Used instead of a GetEnumerator method on the LockFreeReaderHashtable to /// reduce excess type creation. (By moving the method here, the generic dictionary for /// LockFreeReaderHashtable does not need to contain a reference to the /// enumerator type. /// </summary> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Enumerator Get(LockFreeReaderHashtableOfPointers<TKey, TValue> hashtable) { return new Enumerator(hashtable); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public Enumerator GetEnumerator() { return this; } internal Enumerator(LockFreeReaderHashtableOfPointers<TKey, TValue> hashtable) { _hashtable = hashtable; _hashtableContentsToEnumerate = hashtable._hashtable; _index = 0; _current = default(TValue); } public bool MoveNext() { if ((_hashtableContentsToEnumerate != null) && (_index < _hashtableContentsToEnumerate.Length)) { for (; _index < _hashtableContentsToEnumerate.Length; _index++) { IntPtr examineEntry = Volatile.Read(ref _hashtableContentsToEnumerate[_index]); if ((examineEntry != IntPtr.Zero) && (examineEntry != new IntPtr(1))) { _current = _hashtable.ConvertIntPtrToValue(examineEntry); _index++; return true; } } } _current = default(TValue); return false; } public void Dispose() { } public void Reset() { throw new NotSupportedException(); } public TValue Current { get { return _current; } } object IEnumerator.Current { get { throw new NotSupportedException(); } } } /// <summary> /// Given a key, compute a hash code. This function must be thread safe. /// </summary> protected abstract int GetKeyHashCode(TKey key); /// <summary> /// Given a value, compute a hash code which would be identical to the hash code /// for a key which should look up this value. This function must be thread safe. /// This function must also not cause additional hashtable adds. /// </summary> protected abstract int GetValueHashCode(TValue value); /// <summary> /// Compare a key and value. If the key refers to this value, return true. /// This function must be thread safe. /// </summary> protected abstract bool CompareKeyToValue(TKey key, TValue value); /// <summary> /// Compare a value with another value. Return true if values are equal. /// This function must be thread safe. /// </summary> protected abstract bool CompareValueToValue(TValue value1, TValue value2); /// <summary> /// Create a new value from a key. Must be threadsafe. Value may or may not be added /// to collection. Return value must not be null. /// </summary> protected abstract TValue CreateValueFromKey(TKey key); /// <summary> /// Convert a value to an IntPtr for storage into the hashtable /// </summary> protected abstract IntPtr ConvertValueToIntPtr(TValue value); /// <summary> /// Convert an IntPtr into a value for comparisions, or for returning. /// </summary> protected abstract TValue ConvertIntPtrToValue(IntPtr pointer); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/baseservices/exceptions/regressions/V1/SEH/VJ/UserException.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading; public class UserException : Exception { public static int Main(String [] args) { int counter = 0; String str = "Done"; for (int j = 0; j < 100; j++){ try { if (j % 2 == 0) counter = j / (j % 2); else throw new UserException(); } catch ( UserException ) { counter++; continue; } catch (ArithmeticException ){ counter--; continue; } catch (Exception ){} finally { counter++; } } if (counter == 100){ Console.WriteLine( "TryCatch Test Passed" ); return 100; } else{ Console.WriteLine( "TryCatch Test Failed" ); return 1; } Console.WriteLine(str); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Threading; public class UserException : Exception { public static int Main(String [] args) { int counter = 0; String str = "Done"; for (int j = 0; j < 100; j++){ try { if (j % 2 == 0) counter = j / (j % 2); else throw new UserException(); } catch ( UserException ) { counter++; continue; } catch (ArithmeticException ){ counter--; continue; } catch (Exception ){} finally { counter++; } } if (counter == 100){ Console.WriteLine( "TryCatch Test Passed" ); return 100; } else{ Console.WriteLine( "TryCatch Test Failed" ); return 1; } Console.WriteLine(str); } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/LinuxIPv4InterfaceStatistics.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Versioning; namespace System.Net.NetworkInformation { internal sealed class LinuxIPv4InterfaceStatistics : IPv4InterfaceStatistics { private readonly LinuxIPInterfaceStatistics _statistics; public LinuxIPv4InterfaceStatistics(string name) { _statistics = new LinuxIPInterfaceStatistics(name); } public override long BytesReceived => _statistics.BytesReceived; public override long BytesSent => _statistics.BytesSent; public override long IncomingPacketsDiscarded => _statistics.IncomingPacketsDiscarded; public override long IncomingPacketsWithErrors => _statistics.IncomingPacketsWithErrors; [UnsupportedOSPlatform("linux")] public override long IncomingUnknownProtocolPackets => _statistics.IncomingUnknownProtocolPackets; public override long NonUnicastPacketsReceived => _statistics.NonUnicastPacketsReceived; [UnsupportedOSPlatform("linux")] public override long NonUnicastPacketsSent => _statistics.NonUnicastPacketsSent; public override long OutgoingPacketsDiscarded => _statistics.OutgoingPacketsDiscarded; public override long OutgoingPacketsWithErrors => _statistics.OutgoingPacketsWithErrors; public override long OutputQueueLength => _statistics.OutputQueueLength; public override long UnicastPacketsReceived => _statistics.UnicastPacketsReceived; public override long UnicastPacketsSent => _statistics.UnicastPacketsSent; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Versioning; namespace System.Net.NetworkInformation { internal sealed class LinuxIPv4InterfaceStatistics : IPv4InterfaceStatistics { private readonly LinuxIPInterfaceStatistics _statistics; public LinuxIPv4InterfaceStatistics(string name) { _statistics = new LinuxIPInterfaceStatistics(name); } public override long BytesReceived => _statistics.BytesReceived; public override long BytesSent => _statistics.BytesSent; public override long IncomingPacketsDiscarded => _statistics.IncomingPacketsDiscarded; public override long IncomingPacketsWithErrors => _statistics.IncomingPacketsWithErrors; [UnsupportedOSPlatform("linux")] public override long IncomingUnknownProtocolPackets => _statistics.IncomingUnknownProtocolPackets; public override long NonUnicastPacketsReceived => _statistics.NonUnicastPacketsReceived; [UnsupportedOSPlatform("linux")] public override long NonUnicastPacketsSent => _statistics.NonUnicastPacketsSent; public override long OutgoingPacketsDiscarded => _statistics.OutgoingPacketsDiscarded; public override long OutgoingPacketsWithErrors => _statistics.OutgoingPacketsWithErrors; public override long OutputQueueLength => _statistics.OutputQueueLength; public override long UnicastPacketsReceived => _statistics.UnicastPacketsReceived; public override long UnicastPacketsSent => _statistics.UnicastPacketsSent; } }
-1
dotnet/runtime
65,915
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer
Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
elinor-fung
"2022-02-26T01:42:58Z"
"2022-03-01T00:57:47Z"
b4c746b7712e887af066d66d1ec777be6283f6f9
d9eafd0c55ff7c3d7804c7629baf271703df91a6
Move diagnostics for invalid `GeneratedDllImportAttribute` usage to generator instead of analyzer. Make the generator emit a diagnostic for any methods marked `GeneratedDllImport` that it is going to ignore. We had diagnostics in a separate analyzer (in the same DLL), but that could be turned off independently from the generator - this makes it so that invalid usage issues can't be missed. Fixes https://github.com/dotnet/runtime/issues/62700
./src/tests/JIT/jit64/valuetypes/nullable/box-unbox/value/box-unbox-value039.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // <Area> Nullable - Box-Unbox </Area> // <Title> Nullable type with unbox box expr </Title> // <Description> // checking type of ImplementTwoInterface using is operator // </Description> // <RelatedBugs> </RelatedBugs> //<Expects Status=success></Expects> // <Code> using System.Runtime.InteropServices; using System; internal class NullableTest { private static bool BoxUnboxToNQ(ValueType o) { return Helper.Compare((ImplementTwoInterface)o, Helper.Create(default(ImplementTwoInterface))); } private static bool BoxUnboxToQ(ValueType o) { return Helper.Compare((ImplementTwoInterface?)o, Helper.Create(default(ImplementTwoInterface))); } private static int Main() { ImplementTwoInterface? s = Helper.Create(default(ImplementTwoInterface)); if (BoxUnboxToNQ(s) && BoxUnboxToQ(s)) return ExitCode.Passed; else return ExitCode.Failed; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // <Area> Nullable - Box-Unbox </Area> // <Title> Nullable type with unbox box expr </Title> // <Description> // checking type of ImplementTwoInterface using is operator // </Description> // <RelatedBugs> </RelatedBugs> //<Expects Status=success></Expects> // <Code> using System.Runtime.InteropServices; using System; internal class NullableTest { private static bool BoxUnboxToNQ(ValueType o) { return Helper.Compare((ImplementTwoInterface)o, Helper.Create(default(ImplementTwoInterface))); } private static bool BoxUnboxToQ(ValueType o) { return Helper.Compare((ImplementTwoInterface?)o, Helper.Create(default(ImplementTwoInterface))); } private static int Main() { ImplementTwoInterface? s = Helper.Create(default(ImplementTwoInterface)); if (BoxUnboxToNQ(s) && BoxUnboxToQ(s)) return ExitCode.Passed; else return ExitCode.Failed; } }
-1